mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-04-21 20:30:12 +00:00
error handling for playlist sub
This commit is contained in:
parent
8af7a3caf4
commit
e9eddf06fb
@ -187,6 +187,11 @@ class PlaylistSubscription:
|
||||
playlist_h = YoutubePlaylist(playlist_id)
|
||||
playlist_h.all_youtube_ids = all_youtube_ids
|
||||
playlist_h.build_json()
|
||||
if not playlist_h.json_data:
|
||||
message = f"{playlist_h.youtube_id}: failed to extract data"
|
||||
print(message)
|
||||
raise ValueError(message)
|
||||
|
||||
playlist_h.json_data["playlist_subscribed"] = subscribed
|
||||
playlist_h.upload_to_es()
|
||||
playlist_h.add_vids_to_playlist()
|
||||
|
Loading…
Reference in New Issue
Block a user