Skip to content

Commit

Permalink
Clean up TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyssion committed Oct 18, 2024
1 parent 0af0b41 commit 8e63a28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions playlist_sync/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion playlist_sync/services/ytmusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e63a28

Please sign in to comment.