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