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

unable to download videos from ustreamtv #2670

Closed
shirishag75 opened this issue Apr 2, 2014 · 12 comments
Closed

unable to download videos from ustreamtv #2670

shirishag75 opened this issue Apr 2, 2014 · 12 comments

Comments

@shirishag75
Copy link

@shirishag75 shirishag75 commented Apr 2, 2014

Hi all,
This is on an older version of youtube-dl :-

$ youtube-dl -vv -F http://www.ustream.tv/recorded/44902811
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-vv', '-F', 'http://www.ustream.tv/recorded/44902811']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.17
[debug] Python version 2.7.6 - Linux-3.13-1-amd64-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[ustream] 44902811: Downloading webpage
[ustream] 44902811: Extracting information
[info] Available formats for 44902811:
format code extension resolution  note 
0           flv       unknown     
$

Can anybody try this and see if it works with the newer versions perhaps or it's something to do with the site itself ?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 2, 2014

It works fine here, can you post the output of youtube-dl -v http://www.ustream.tv/recorded/44902811?

@shoaib-s
Copy link

@shoaib-s shoaib-s commented Apr 2, 2014

./youtube-dl --verbose http://www.ustream.tv/recorded/44902811
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.ustream.tv/recorded/44902811']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.01.3
[debug] Python version 2.7.3 - Linux-3.2.0-23-generic-x86_64-with-LinuxMint-13-maya
[debug] Proxy map: {}
[ustream] 44902811: Downloading webpage
[ustream] 44902811: Extracting information
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 511, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 161, in extract
return self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/ustream.py", line 36, in _real_extract
webpage, 'title')
File "./youtube-dl/youtube_dl/extractor/common.py", line 369, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags)
File "./youtube-dl/youtube_dl/extractor/common.py", line 359, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

shoaib@shoaib-T420:~/Study/openSourceProjects/youtube-dl$ ./youtube-dl -U
youtube-dl is up-to-date (2014.04.01.3)

1 similar comment
@shoaib-s
Copy link

@shoaib-s shoaib-s commented Apr 2, 2014

./youtube-dl --verbose http://www.ustream.tv/recorded/44902811
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.ustream.tv/recorded/44902811']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.01.3
[debug] Python version 2.7.3 - Linux-3.2.0-23-generic-x86_64-with-LinuxMint-13-maya
[debug] Proxy map: {}
[ustream] 44902811: Downloading webpage
[ustream] 44902811: Extracting information
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 511, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 161, in extract
return self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/ustream.py", line 36, in _real_extract
webpage, 'title')
File "./youtube-dl/youtube_dl/extractor/common.py", line 369, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags)
File "./youtube-dl/youtube_dl/extractor/common.py", line 359, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

shoaib@shoaib-T420:~/Study/openSourceProjects/youtube-dl$ ./youtube-dl -U
youtube-dl is up-to-date (2014.04.01.3)

@phihag
Copy link
Contributor

@phihag phihag commented Apr 2, 2014

@shoaib1987 Thank you, we got that post the first time ;) This problem is strange, it works fine for me as well. Which ISP do you use?

Can you add --dump-intermediate-pages and post that output? Warning, it will be very verbose. And posting it once is sufficient ;)

@shirishag75
Copy link
Author

@shirishag75 shirishag75 commented Apr 2, 2014

hi all,
Sorry for not sharing. I saw this happening later .

$youtube-dl -v http://www.ustream.tv/recorded/44902811
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.ustream.tv/recorded/44902811']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.17
[debug] Python version 2.7.6 - Linux-3.13-1-amd64-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[ustream] 44902811: Downloading webpage
[ustream] 44902811: Extracting information
[download] Destination: SAFECAST - The Next Three Years, Ocean, Food, and Health Trends-44902811.flv
[download] 100% of 1.68GiB in 04:57:15

Don't know why it didn't work the first time (without the --verbose flags) and the -vv as well.

@shoaib-s
Copy link

@shoaib-s shoaib-s commented Apr 2, 2014

Sorry for posting it several times. It has happened unknowingly.

Still not working on my machine.
./youtube-dl --dump-intermediate-pages http://www.ustream.tv/recorded/44902811
[ustream] 44902811: Downloading webpage
[ustream] Dumping request to http://www.ustream.tv/recorded/44902811
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFsLy9FTiI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x0PSJXZWJzZW5zZSBMb2dvIiBzdHlsZT0iZmxvYXQ6IHJpZ2h0O2NsZWFyOiBib3RoO21hcmdpbjogMHB4IDEwcHggNnB4IDBweDsgcGFkZGluZzogMnB4IDBweDsiPgoJCTxkaXYgc3R5bGU9ImNsZWFyOiBib3RoOyBvdmVyZmxvdzogaGlkZGVuOyBoZWlnaHQ6MXB4OyI+PC9kaXY+Cgk8L2Rpdj4KPC9kaXY+CjwhLS1baWYgbHQgSUUgN10+IDwvZGl2PiA8IVtlbmRpZl0tLT4KPGRpdiBpZD0ibGlnaHQiIGNsYXNzPSJ3aGl0ZV9jb250ZW50Ij48L2Rpdj4KPGRpdiBpZD0iZmFkZSIgY2xhc3M9ImJsYWNrX292ZXJsYXkiPjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
[ustream] 44902811: Extracting information
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 2, 2014

Can you access the video on a browser from the same machine? the webpage contains:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Access to this site is blocked</title>
<link rel="stylesheet" href="/en/Default/master.css" type="text/css">

it seems that you have the access blocked.

@shoaib-s
Copy link

@shoaib-s shoaib-s commented Apr 2, 2014

No, I can't.
I didn't check that.
Access to this page is blocked and that's why I am seeing this error.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 2, 2014

Since the problem is not in youtube-dl itself, I'm closing the issue.

@jaimeMF jaimeMF closed this Apr 2, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Apr 3, 2014

Reopening, we should generate a helpful error message.

@phihag phihag reopened this Apr 3, 2014
@phihag phihag closed this in 2410c43 Apr 3, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Apr 3, 2014

I've added a check for Websense censorship. @shoaib1987 Can you update youtube-dl with youtube-dl -U and retry again? It won't work, but you should now get a much better error message. I'd appreciate if you could verify that.

@shoaib-s
Copy link

@shoaib-s shoaib-s commented Apr 3, 2014

Yes, new message seems to be more appropriate.
I verified this.
./youtube-dl -v http://www.ustream.tv/recorded/44902811
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.ustream.tv/recorded/44902811']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.03
[debug] Python version 2.7.3 - Linux-3.2.0-23-generic-x86_64-with-LinuxMint-13-maya
[debug] Proxy map: {}
[ustream] 44902811: Downloading webpage
ERROR: Access to URL http://172.20.2.7:15871/cgi-bin/blockpage.cgi?ws-session=755072550 has been blocked by Websense filtering software in your network. Visit http://172.20.2.7:15871/cgi-bin/block_message.cgi?ws-session=755072550 for more details
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 511, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 161, in extract
return self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/ustream.py", line 31, in _real_extract
webpage = self._download_webpage(url, video_id)
File "./youtube-dl/youtube_dl/extractor/common.py", line 270, in _download_webpage
res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal)
File "./youtube-dl/youtube_dl/extractor/common.py", line 264, in _download_webpage_handle
raise ExtractorError(msg, expected=True)
ExtractorError: Access to URL http://172.20.2.7:15871/cgi-bin/blockpage.cgi?ws-session=755072550 has been blocked by Websense filtering software in your network. Visit http://172.20.2.7:15871/cgi-bin/block_message.cgi?ws-session=755072550 for more details

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