better error message on sponsorblock fail

pull/213/head
simon 2 years ago
parent 77228ccb65
commit 71c441d871
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -457,7 +457,7 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
print(f"{self.youtube_id}: get sponsorblock timestamps")
response = requests.get(url)
if not response.ok:
print(f"{self.youtube_id}: failed to get sponsorblock data")
print(f"{self.youtube_id}: sponsorblock failed: {response.text}")
return
self.json_data["sponsorblock"] = response.json()

Loading…
Cancel
Save