mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2026-04-16 02:21:20 -07:00
Merge pull request #449 from wagnerch/fix-retry
add break for successful attempt
This commit is contained in:
commit
7d8bbcf199
1 changed files with 3 additions and 0 deletions
|
|
@ -764,6 +764,9 @@ class VideoInfo(object):
|
|||
if attempt == 0:
|
||||
payload['context']['client']['clientName'] = 'ANDROID_EMBEDDED_PLAYER'
|
||||
continue
|
||||
|
||||
## if we get here then break out of loop as this attempt was successful
|
||||
break
|
||||
except:
|
||||
error_message = 'Failed to get player response for video_id "%s"' % video_id
|
||||
self._context.log_error(error_message + '\n' + traceback.format_exc())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue