Skip to content

Commit

Permalink
fix(ytdl): add db update after downloading a song
Browse files Browse the repository at this point in the history
mbaraa authored May 24, 2024
1 parent 0b5ea68 commit 51fefd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ytdl/main.py
Original file line number Diff line number Diff line change
@@ -182,6 +182,7 @@ def download_song(id: str) -> int:
currently_downloading_queue.add(id)
res = download_yt_song(id)
currently_downloading_queue.remove(id)
update_song_status(id)
if res != 0:
print(f"error: {YT_ERROR[res]} when downloading {id}")
return res

0 comments on commit 51fefd7

Please sign in to comment.