Debug 1711211607:
YouTube deleted dislikes, so Pafy works incorrectly some times. Added skip of exception and retrying
This commit is contained in:
@@ -782,7 +782,12 @@ def set_position():
|
|||||||
ui.timer.start(100)
|
ui.timer.start(100)
|
||||||
|
|
||||||
def playmusic(url, name, author):
|
def playmusic(url, name, author):
|
||||||
|
video = None
|
||||||
|
while video is None:
|
||||||
|
try:
|
||||||
video = pafy.new(url)
|
video = pafy.new(url)
|
||||||
|
except:
|
||||||
|
print("Cannot create translation link, I will try once more")
|
||||||
best = video.getbest()
|
best = video.getbest()
|
||||||
playurl = best.url
|
playurl = best.url
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user