diff --git a/MultiMate_Player.py b/MultiMate_Player.py index 520c374..65f6598 100644 --- a/MultiMate_Player.py +++ b/MultiMate_Player.py @@ -782,7 +782,12 @@ def set_position(): ui.timer.start(100) def playmusic(url, name, author): - video = pafy.new(url) + video = None + while video is None: + try: + video = pafy.new(url) + except: + print("Cannot create translation link, I will try once more") best = video.getbest() playurl = best.url