From 8e63a2886df902108f51e06e20e6716fa333ba77 Mon Sep 17 00:00:00 2001 From: Fyssion Date: Fri, 18 Oct 2024 13:44:39 -0500 Subject: [PATCH] Clean up TODOs --- playlist_sync/playlist.py | 4 ---- playlist_sync/services/ytmusic.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/playlist_sync/playlist.py b/playlist_sync/playlist.py index 2906a15..b6be288 100644 --- a/playlist_sync/playlist.py +++ b/playlist_sync/playlist.py @@ -29,10 +29,6 @@ def fetch_from(cls, service: BaseService, url: str) -> Self: def sync_to(self, service: BaseService, url: str): log.info(f'Syncing playlist to {url} on {service}') - # TODO: remove after finishing actual syncing logic below - # log.info(f'Clearing playlist {url} on {service}') - # service.clear_playlist(url) - tracks = service.fetch_playlist(url) diff = set(self.tracks) ^ set(tracks) diff --git a/playlist_sync/services/ytmusic.py b/playlist_sync/services/ytmusic.py index 494232e..356fd88 100644 --- a/playlist_sync/services/ytmusic.py +++ b/playlist_sync/services/ytmusic.py @@ -34,7 +34,7 @@ def fetch_playlist(self, url: str, *, cache_metadata: bool = True) -> list[Track artists = ', '.join(a['name'] for a in yt_track['artists']) track = Track( title=yt_track['title'], artist=artists, service=str(self), metadata=yt_track if cache_metadata else None - ) # TODO: artist + ) tracks.append(track) return tracks