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

National Geographic has changed their url, youtube-dl cannot detect the new link #17985

Closed
scopolamine1401 opened this issue Oct 27, 2018 · 11 comments

Comments

@scopolamine1401
Copy link

@scopolamine1401 scopolamine1401 commented Oct 27, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.10.05. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.10.05

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--write-sub', '--cookies', 'C:\\Users\\minhd\\Desktop\\cookes.txt', '-v', 'https://www.nationalgeographic.com/tv/watch/b8dab72a633e5ce69d541247248cde52/']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg N-91865-g404d21f486, ffprobe N-91865-g404d21f486
[debug] Proxy map: {}
[generic] b8dab72a633e5ce69d541247248cde52: Requesting header
WARNING: Falling back on generic information extractor.
[generic] b8dab72a633e5ce69d541247248cde52: Downloading webpage
[generic] b8dab72a633e5ce69d541247248cde52: Extracting information
ERROR: Unsupported URL: https://www.nationalgeographic.com/tv/watch/b8dab72a633e5ce69d541247248cde52/
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp5xdqinp2\build\youtube_dl\YoutubeDL.py", line 792, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp5xdqinp2\build\youtube_dl\extractor\common.py", line 507, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp5xdqinp2\build\youtube_dl\extractor\generic.py", line 3298, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.nationalgeographic.com/tv/watch/b8dab72a633e5ce69d541247248cde52/
...
<end of log>

https://www.nationalgeographic.com/tv/watch/b8dab72a633e5ce69d541247248cde52/
Above is the link of the video I want to download. However, when I try to use youtube-dl, it says "ERROR: Unsupported URL"

Thank you so much

@Bstark07
Copy link

@Bstark07 Bstark07 commented Nov 3, 2018

When you try and play the video url: https://www.nationalgeographic.com/tv/watch/b8dab72a633e5ce69d541247248cde52/

Do you get a geolocking error such as not available in this region?

@ghost
Copy link

@ghost ghost commented Nov 3, 2018

I have the same issue and I do get the following error:
Geographic Restriction
This content is not available in your location.

@scopolamine1401
Copy link
Author

@scopolamine1401 scopolamine1401 commented Nov 3, 2018

No, I live in US so that I can watch that video without VPN. No geolocking error

@tv21
Copy link

@tv21 tv21 commented Nov 8, 2018

Bstark07 you are misinterpreting the FAQ. That only applies to sites that steal other people's content and offer it illegally. In this case the content is offered on NG's own site, and they are legally allowed to distribute their own content.

Also there is already an extractor for this service, it just stopped working due to a change in format. Its site is now using a format similar to that used by fox.com, so my guess is that the extractor that works for that site could probably be easily modified to work with NG by someone who knows what they are doing.

@tv21 tv21 mentioned this issue Dec 8, 2018
4 of 9 tasks complete
@tv21
Copy link

@tv21 tv21 commented Dec 8, 2018

This and #18325 appear to be the exact same issue, if you can fix it for one you can probably use the same approach to fix the other.

@dnlzzxz
Copy link

@dnlzzxz dnlzzxz commented Jan 6, 2019

Same problem here. Says "unsupported URL".

@dnlzzxz
Copy link

@dnlzzxz dnlzzxz commented Jan 10, 2019

Help? Someone? =/

@dnlzzxz
Copy link

@dnlzzxz dnlzzxz commented Jan 10, 2019

I can provide login credentials if needed..

@ParadoxGBB
Copy link

@ParadoxGBB ParadoxGBB commented Jan 17, 2019

I just confirmed by merging the above changelist that I was able to grab "Valley of the Boom". Thanks, @remitamine!

@msgongora
Copy link

@msgongora msgongora commented Jan 26, 2019

@remitamine This is still happening with 96c186e

youtube-dl -v  --ap-mso Comcast_SSO --ap-username PRIVATE --ap-password PRIVATE "https://www.nationalgeographic.com/tv/watch/0a9a2ad6ee724495963ff14aee027df0"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--ap-mso', u'Comcast_SSO', u'--ap-username', u'PRIVATE', u'--ap-password', u'PRIVATE', u'https://www.nationalgeographic.com/tv/watch/0a9a2ad6ee724495963ff14aee027df0']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.24
[debug] Python version 2.7.15 (CPython) - Darwin-18.2.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, rtmpdump 2.4
[debug] Proxy map: {}
[FOX] 0a9a2ad6ee724495963ff14aee027df0: Downloading JSON metadata
[FOX] 0a9a2ad6ee724495963ff14aee027df0: Downloading Provider Redirect Page
ERROR: Unable to extract post url; 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 "./youtube-dl/youtube_dl/YoutubeDL.py", line 793, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 508, in extract
    ie_result = self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/fox.py", line 93, in _real_extract
    url, video_id, 'fbc-fox', resource)
  File "./youtube-dl/youtube_dl/extractor/adobepass.py", line 1448, in _extract_mvpd_auth
    self._DOWNLOADING_LOGIN_PAGE)
  File "./youtube-dl/youtube_dl/extractor/adobepass.py", line 1360, in post_form
    post_url = self._html_search_regex(r'<form[^>]+action=(["\'])(?P<url>.+?)\1', form_page, 'post url', group='url')
  File "./youtube-dl/youtube_dl/extractor/common.py", line 992, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 983, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract post url; 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.
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.