diff --git a/YouTube.py b/YouTube.py index 396ac03..b9fde2a 100644 --- a/YouTube.py +++ b/YouTube.py @@ -4,6 +4,7 @@ import re import argparse import difflib +from collections import OrderedDict from SpotifyExport import Spotify import settings @@ -82,7 +83,7 @@ def search_songs(self, tracks): return videoIds def add_playlist_items(self, playlistId, videoIds): - videoIds = set(videoIds) + videoIds = OrderedDict.fromkeys(videoIds) self.api.add_playlist_items(playlistId, videoIds) def get_playlist_id(self, name):