ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.96k stars 10.01k forks source link

Support for http://www.andtv.com/ #8873

Open nigamankit7 opened 8 years ago

nigamankit7 commented 8 years ago

URL Tested: http://www.andtv.com/shows/bhabi-ji-ghar-par-hai/video/bhabi-ji-ghar-par-hain-episode-272-march-15-2016-full-episode.html

[debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'--verbose', u'http://www.andtv.com/shows/bhabi-ji-ghar-par-hai/video/bhabi-ji-ghar-par-hain-episode-272-march-15-2016-full-episode.html'] [debug] Encodings: locale cp1252, fs mbcs, out None, pref cp1252 [debug] youtube-dl version 2016.03.14 [debug] Python version 2.7.10 - Windows-8-6.2.9200 [debug] exe versions: ffmpeg N-73189-g7728d23, ffprobe N-73189-g7728d23 [debug] Proxy map: {} WARNING: Falling back on generic information extractor. ERROR: unable to download video data: HTTP Error 403: Forbidden Traceback (most recent call last): File "youtube_dl\YoutubeDL.pyo", line 1627, in process_info File "youtube_dl\YoutubeDL.pyo", line 1569, in dl File "youtube_dl\downloader\common.pyo", line 344, in download File "youtube_dl\downloader\http.pyo", line 58, in real_download File "youtube_dl\YoutubeDL.pyo", line 1929, in urlopen File "urllib2.pyo", line 437, in open File "urllib2.pyo", line 550, in http_response File "urllib2.pyo", line 475, in error File "urllib2.pyo", line 409, in _call_chain File "urllib2.pyo", line 558, in http_error_default HTTPError: HTTP Error 403: Forbidden

yan12125 commented 8 years ago

This video is an embedded YouTube video. You can download it via:

youtube-dl "https://www.youtube.com/watch?v=Mvm-HDQrdXs"
nigamankit7 commented 8 years ago

Thanks for the response @yan12125. However tested link contains full episode of 30 min but the embedded YouTube link you shared contains only 5 min. of promo.

yan12125 commented 8 years ago

On the webpage I see only one 5-min YouTube video. There's a button "Click here to watch full", while it leads me to the original page with the same YouTube video. Could you point out where the full video is?

nigamankit7 commented 8 years ago

Video is right there on the Web page - http://www.andtv.com/shows/bhabi-ji-ghar-par-hai/video/bhabi-ji-ghar-par-hain-episode-272-march-15-2016-full-episode.html

Wondering if video is blocked on region level. If possible you may check it via Indian proxy.

Will share the screen shot shortly.

nigamankit7 commented 8 years ago

Mobile Screenshot -http://pho.to/A4nrS

yan12125 commented 8 years ago

No luck with either mobile browsers or India proxies.

nigamankit7 commented 8 years ago

Is there anything else I can share to fix this. Like HTML source or YouTubedl log etc.

EnginePod commented 8 years ago

Not familiar with the site, but I can confirm that the video on the page is 14 minutes while the YT video is 5 mins (I'm not in India btw).

yan12125 commented 8 years ago

An excerpt from the source code of this video:

var region = ['in', 'pk', 'bd', 'my', 'np', 'us'];

The full video is available in these regions only. I guess the first one is India and the last one is United States. Sometimes I can watch the full video with a US proxy, while it's not stable enough for me to analyze its network traffic - will try more.

nigamankit7 commented 8 years ago

Thanks for pointing that out @yan12125. in = India pk = Pakistan bd = Bangladesh my = Malaysia np = Nepal us = United States

List - http://www.worldatlas.com/aatlas/ctycodes.htm