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

HOw to download videos which are played in chrome but not supported by youtube-dl #15895

Closed
sant527 opened this issue Mar 17, 2018 · 3 comments
Closed

Comments

@sant527
Copy link

@sant527 sant527 commented Mar 17, 2018

I want to know how to extract the m3u8 from the following url: "http://www.channeleye.lk/index.php?option=com_content&view=article&id=1847:nidahas-trophy-6th-match-sri-vs-ban-mp4&catid=61:cricket&Itemid=209"

When i tried

$ youtube-dl --verbose --no-mtime --restrict-filenames --no-part --verbose --age-limit 50 --get-filename -f 'worst[height>=360][ext*=mp4]/worst/bestvideo[height>=360][ext=mp4]' -o '%(title)s_fmt_%(format_id)s.%(ext)s' 'http://www.channeleye.lk/index.php?option=com_content&view=article&id=1847:nidahas-trophy-6th-match-sri-vs-ban-mp4&catid=61:cricket&Itemid=209'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--no-mtime', '--restrict-filenames', '--no-part', '--verbose', '--age-limit', '50', '--get-filename', '-f', 'worst[height>=360][ext*=mp4]/worst/bestvideo[height>=360][ext=mp4]', '-o', '%(title)s_fmt_%(format_id)s.%(ext)s', 'http://www.channeleye.lk/index.php?option=com_content&view=article&id=1847:nidahas-trophy-6th-match-sri-vs-ban-mp4&catid=61:cricket&Itemid=209']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Python version 3.6.0 (CPython) - Linux-4.10.2-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: http://www.channeleye.lk/index.php?option=com_content&view=article&id=1847:nidahas-trophy-6th-match-sri-vs-ban-mp4&catid=61:cricket&Itemid=209
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 440, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/generic.py", line 3127, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.channeleye.lk/index.php?option=com_content&view=article&id=1847:nidahas-trophy-6th-match-sri-vs-ban-mp4&catid=61:cricket&Itemid=209

Later i went to chrome and i was able to watch the video. So from the network i found the url:
"http://dammikartmp.tulix.tv/dvod/_definst_/cds/eye_programmes/cricket/6th%20match.mp4/chunklist_w533292373.m3u8"

With this url i was able to download the video.

youtube-dl "http://dammikartmp.tulix.tv/dvod/_definst_/cds/eye_programmes/cricket/6th%20match.mp4/chunklist_w533292373.m3u8"

Is there any way I can get the m3u8 urls if its not directly supported by youtube-dl

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 17, 2018

By going to browser's network tools as you already did.

@dstftw dstftw closed this Mar 17, 2018
@sant527
Copy link
Author

@sant527 sant527 commented Mar 17, 2018

but how youtube-dl does it for other sites. How does it search the network urls

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 17, 2018

Particular site's extractor handles extraction for this site.

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
2 participants
You can’t perform that action at this time.