youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 7df97fb59f7994c32ecf552ee9dfec6c6be3bb1e
parent 17f3c40a31e6667bb7b18cbe7cf24e5728d7aabd
Author: Filippo Valsorda <filippo.valsorda@gmail.com>
Date:   Fri, 22 Jun 2012 13:57:17 +0200

display a meaningful error message on rental videos (#359)

Diffstat:
Myoutube-dl | 0
Myoutube-dl.exe | 0
Myoutube_dl/InfoExtractors.py | 5+++++
3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/youtube-dl b/youtube-dl Binary files differ. diff --git a/youtube-dl.exe b/youtube-dl.exe Binary files differ. diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py @@ -311,6 +311,11 @@ class YoutubeIE(InfoExtractor): self._downloader.trouble(u'ERROR: "token" parameter not in video info for unknown reason') return + # Check for "rental" videos + if 'ypc_video_rental_bar_text' in video_info and 'author' not in video_info: + self._downloader.trouble(u'ERROR: "rental" videos not supported') + return + # Start extracting information self.report_information_extraction(video_id)