[YoutubeDL] Ignore duplicates in --playlist-items
[ytdl] / youtube_dl / YoutubeDL.py
index 9036f0f94b8eb3259dcc3eb22b56e96b8371ee9c..855d6b8e52a62fd1b33cb909c25694d426452033 100755 (executable)
@@ -65,6 +65,7 @@ from .utils import (
     locked_file,
     make_HTTPS_handler,
     MaxDownloadsReached,
+    orderedSet,
     PagedList,
     parse_filesize,
     PerRequestProxyHandler,
@@ -908,7 +909,7 @@ class YoutubeDL(object):
                                 yield int(item)
                         else:
                             yield int(string_segment)
-                playlistitems = iter_playlistitems(playlistitems_str)
+                playlistitems = orderedSet(iter_playlistitems(playlistitems_str))
 
             ie_entries = ie_result['entries']