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

urlopen error unknown url type: abemafresh (error occurs at Freshlive) #16381

Open
gaeaearth opened this issue May 5, 2018 · 2 comments
Open

urlopen error unknown url type: abemafresh (error occurs at Freshlive) #16381

gaeaearth opened this issue May 5, 2018 · 2 comments

Comments

@gaeaearth
Copy link

@gaeaearth gaeaearth commented May 5, 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.05.01. 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.05.01

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 ```):

SangEunui-MacBook-Pro:Downloads gaeaearth$ youtube-dl https://freshlive.tv/sakuragakuin/199585 --cookies cookies.txt -f hls-3430 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://freshlive.tv/sakuragakuin/199585', u'--cookies', u'cookies.txt', u'-f', u'hls-3430', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.05.01
[debug] Python version 2.7.10 (CPython) - Darwin-17.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0, ffprobe 4.0
[debug] Proxy map: {}
[FreshLive] 199585: Downloading webpage
[FreshLive] 199585: Downloading m3u8 information
[debug] Invoking downloader on u'https://movie.freshlive.tv/playlist/2100414.m3u8?token=199585t0512d45b173531fb715ba3b7114e33cb6510&v=4'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 1961
[download] Destination: #FRESHマンデー 「さくら学院の顔笑れ!!FRESH!マンデー」#43-199585.mp4
[download]   0.1% of ~1.36GiB at Unknown speed ETA Unknown ETAERROR: unable to download video data: <urlopen error unknown url type: abemafresh>
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1900, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1839, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 365, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 168, in real_download
    self._prepare_url(info_dict, decrypt_info['URI'])).read()
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2203, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 454, in _open
    'unknown_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1265, in unknown_open
    raise URLError('unknown url type: %s' % type)
URLError: <urlopen error unknown url type: abemafresh>

I install all the lastest version for ffmpeg and youtube-dl, and I also install pycrypto. but I obtain this error message. How can I solve this problem?
The video url is https://freshlive.tv/sakuragakuin/199585 (but it will be closed at 05/08 (because it is opened only for 1 weeks), then, I will replace into another url).
It will need cookies file, so I attach cookies file. https://www.dropbox.com/s/rempg686kkyc4j1/cookies.txt?dl=0

Please help me to solve this problem.

@gaeaearth
Copy link
Author

@gaeaearth gaeaearth commented Jul 16, 2018

I add new video url, https://freshlive.tv/sakuragakuin/219581
and cookie file, https://www.dropbox.com/s/vc1iqyt93n5ah9t/cookies.txt?dl=0
Now, My youtube-dl is lastest version, but still does not work for paid contents.
If you want, I will send my account. Please help me.

@gaeaearth
Copy link
Author

@gaeaearth gaeaearth commented Jul 16, 2018

This is log for current link.

SangEunui-MacBook-Pro:~ gaeaearth$ youtube-dl https://freshlive.tv/sakuragakuin/219581 --cookies cookies.txt -f hls-5668 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://freshlive.tv/sakuragakuin/219581', u'--cookies', u'cookies.txt', u'-f', u'hls-5668', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.10
[debug] Python version 2.7.10 (CPython) - Darwin-17.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0, ffprobe 4.0
[debug] Proxy map: {}
[FreshLive] 219581: Downloading webpage
[FreshLive] 219581: Downloading m3u8 information
[debug] Invoking downloader on u'https://movie.freshlive.tv/playlist/2291323.m3u8?token=219581t1612b0a51c401b0524431b4bb8c0cfd99271'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 612
[download] Destination: #FRESHマンデー 「さくら学院の顔笑れ!!FRESH!マンデー」#54-219581.mp4
[download] 0.2% of ~1.68GiB at Unknown speed ETA Unknown ETAERROR: unable to download video data:
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1908, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1847, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 364, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 168, in real_download
self._prepare_url(info_dict, decrypt_info['URI'])).read()
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 454, in _open
'unknown_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1265, in unknown_open
raise URLError('unknown url type: %s' % type)
URLError:

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.