summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jackson@jacksontaylor.xyz>2021-11-10 14:02:35 -0500
committerJackson Taylor <jackson@jacksontaylor.xyz>2022-04-05 16:51:59 -0400
commit5f36cecd2d8b058939a3a5d8025d0679d494c1bf (patch)
treed3a1b2f1d013edf0dd56283799b929b664b68eea
parentd239f21654d35484e311dfc38f47ed398054e619 (diff)
Handle download errors temporarily
-rwxr-xr-xjamos8
1 files changed, 6 insertions, 2 deletions
diff --git a/jamos b/jamos
index 15209b8..309ad6c 100755
--- a/jamos
+++ b/jamos
@@ -140,8 +140,12 @@ if __name__ == "__main__":
# Get the playlist url from the command line
playlist_url = get_playlist_url()
- # Download the songs
- download_song(playlist_url)
+ try:
+ # TODO: make this continue downloading if a song fails
+ download_song(playlist_url)
+ except Exception as ex:
+ # TODO: Handle this a different way
+ print(ex)
files = get_all_files(MUSIC_DIRECTORY)