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

FranceTV: No video formats found #22561

Closed
manu3l opened this issue Sep 30, 2019 · 9 comments · Fixed by #27047
Closed

FranceTV: No video formats found #22561

manu3l opened this issue Sep 30, 2019 · 9 comments · Fixed by #27047

Comments

@manu3l
Copy link

manu3l commented Sep 30, 2019

Checklist

  • [ x] I'm reporting a broken site support
  • [ x] I've verified that I'm running youtube-dl version 2019.09.28
  • [ x] I've checked that all provided URLs are alive and playable in a browser
  • [ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ x] I've searched the bugtracker for similar issues including closed ones

Verbose log

$  youtube-dl --verbose https://www.france.tv/france-5/echappees-belles/echappees-belles-saison-13/1066323-l-alsace-de-village-en-village.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.france.tv/france-5/echappees-belles/echappees-belles-saison-13/1066323-l-alsace-de-village-en-village.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.28
[debug] Python version 2.7.16 (CPython) - Linux-5.2.16
[debug] exe versions: ffmpeg 4.1.4, ffprobe 4.1.4
[debug] Proxy map: {}
[FranceTVSite] 1066323-l-alsace-de-village-en-village: Downloading webpage
[FranceTV] 18d23407-e217-4e76-a031-97da56c43e3f: Downloading video JSON
[FranceTV] 18d23407-e217-4e76-a031-97da56c43e3f: Downloading geo restriction info
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/francetv.py", line 209, in _real_extract
    return self._extract_video(video_id, catalog)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/francetv.py", line 169, in _extract_video
    self._sort_formats(formats)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1327, in _sort_formats
    raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Download is impossible while https://www.france.tv/france-5/echappees-belles/echappees-belles-saison-13/1057401-grece-etape-en-macedoine.html available on the same page works.
I'm in France with a local connexion.

@Europe57
Copy link

Europe57 commented Oct 3, 2019

Confirm, sownload is impossible on adress https://www.france.tv/france-5/echappees-belles/echappees-belles-saison-13/1066323-l-alsace-de-village-en-village.html

PS: You're link in description is false : https://www.france.tv/france-5/echappees-belles/echappees-belles-saison-13/1057401-grece-etape-en-macedoine.html

@rogues32
Copy link

Checklist

  • [ X] I'm reporting a broken site support issue
  • [ X] I've verified that I'm running youtube-dl version 2019.10.16
  • [ X] I've checked that all provided URLs are alive and playable in a browser
  • [ X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ X] I've searched the bugtracker for similar bug reports including closed ones
  • [ X] I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.france.tv/documentaires/histoire/1074473-la-france-d-avant-1914.html', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.16
[debug] Python version 2.7.10 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[FranceTVSite] 1074473-la-france-d-avant-1914: Downloading webpage
[FranceTV] 2196355e-78a1-427f-bc23-b45e836f4562: Downloading video JSON
[FranceTV] 2196355e-78a1-427f-bc23-b45e836f4562: Downloading geo restriction info
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/francetv.py", line 209, in _real_extract
return self._extract_video(video_id, catalog)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/francetv.py", line 169, in _extract_video
self._sort_formats(formats)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1327, in _sort_formats
raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I have the same issue as above but using a different URL. Added here to avoid duplicates. I am also in France with a local connection.

@louisabraham
Copy link

I encountered two bugs. The first was

  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/youtube_dl/extractor/francetv.py", line 103, in _extract_video
    allowed_countries = info['videos'][0].get('geoblocage')
IndexError: list index out of range

I think this is incorrect to assume info['videos'] is not empty.

The second error was

ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

and was fixed by bad5288

Thank you very much @gdouezangrard!

@manikbh
Copy link

manikbh commented Apr 26, 2020

Same problem, it is unfortunate that the fix which works perfectly is not integrated into the release yet...

@djibux
Copy link

djibux commented Sep 7, 2020

Hello, I can confirm that bad5288 fixes the issue #26505.
It seems the commit doesn't belong to any branch. How can it be merged into master?

@gdzx
Copy link
Contributor

gdzx commented Sep 7, 2020

@djibux On the contrary, it belongs to the master branch in my fork of the repo.

Also if you have some examples of videos that the main release fails to download, please post them!

@djibux
Copy link

djibux commented Sep 7, 2020

My bad, I got confused by the message This commit does not belong to any branch on this repository..
Maybe you could submit a PR in this repository?

@liamengland1
Copy link

Maybe you could submit a PR in this repository?

.... #23000

@djibux
Copy link

djibux commented Sep 7, 2020

OK maybe I just need to go to bed ;)
Sorry for the trouble. Hope the PR gets accepted.

gdzx added a commit to gdzx/ytdl that referenced this issue Nov 17, 2020
Fallback on another API endpoint when no video formats are found.

Closes ytdl-org#22561
gdzx added a commit to gdzx/ytdl that referenced this issue Nov 17, 2020
Fallback on another API endpoint when no video formats are found.

Closes ytdl-org#22561
gdzx added a commit to gdzx/ytdl that referenced this issue Nov 17, 2020
Fallback on another API endpoint when no video formats are found.

Closes ytdl-org#22561
gdzx added a commit to gdzx/ytdl that referenced this issue Nov 17, 2020
Fallback on another API endpoint when no video formats are found.

Closes ytdl-org#22561
gdzx added a commit to gdzx/ytdl that referenced this issue Nov 17, 2020
Fallback on another API endpoint when no video formats are found.

Closes ytdl-org#22561
remitamine pushed a commit that referenced this issue Nov 17, 2020
Fallback on another API endpoint when no video formats are found.

Closes #22561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants