Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tizyoutubeproxy: allow for retries as a workaround for SSLEOFErrors while retrieving youtube stream URLs #315

Closed
juanrubio opened this issue May 18, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@juanrubio
Copy link
Collaborator

commented May 18, 2017

tizyoutubeproxy uses worker process to retrieve the youtube stream urls. When an SSL error occurs, the particular video id does not get its URL retrieved and this is non-recoverable. Which leads to a playlist with fewer items than expected. The worker process should implement some simple re-try mechanism to avoid giving up on first error.

[Youtube] [Connected] : 'sting fields of gold'.
   StingVEVO : Sting - Englishman In New York
     YouTube Id : d27gTrPPAyk
     Duration : 00:04:28
     File Format : webm
     Bitrate : 160k
     Size : 4 MiB
     View Count : 73129213
     Description : Music video by Sting performing Englishman In New York. (C) 1987 A&M Records
     Published : 2011-01-11 17:34:19
     Opus Stream : 2 Ch, 48000 Hz
     2 Ch, 48 KHz, 16:s:l 
ERROR: Unable to download webpage: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> (caused by URLError(SSLEOFError(8, u'EOF occurred in violation of protocol (_ssl.c:590)'),))
ERROR: Unable to download webpage: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> (caused by URLError(SSLEOFError(8, u'EOF occurred in violation of protocol (_ssl.c:590)'),))
[YouTube] Could not retrieve the audio stream URL for 'n4RjJKxsamQ'
ERROR: Unable to download webpage: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> (caused by URLError(SSLEOFError(8, u'EOF occurred in violation of protocol (_ssl.c:590)'),))
[YouTube] Could not retrieve the audio stream URL for '7km4EHgkQiw'
[YouTube] Could not retrieve the audio stream URL for 'FTQbiNvZqaY'

@juanrubio juanrubio added the bug label May 18, 2017

@juanrubio juanrubio added this to the v.0.8.0 milestone May 18, 2017

@juanrubio juanrubio self-assigned this May 18, 2017

@juanrubio juanrubio changed the title tizyoutubeproxy: allow for retries to woraround SSLEOFErrors tizyoutubeproxy: allow for retries to workaround SSLEOFErrors while retrieving youtube stream URLs May 18, 2017

@juanrubio juanrubio changed the title tizyoutubeproxy: allow for retries to workaround SSLEOFErrors while retrieving youtube stream URLs tizyoutubeproxy: allow for retries as a workaround for SSLEOFErrors while retrieving youtube stream URLs May 18, 2017

@juanrubio juanrubio closed this in 6a3a19f May 18, 2017

juanrubio added a commit that referenced this issue Aug 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.