mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
display a meaningful error message on rental videos (#359)
This commit is contained in:
parent
17f3c40a31
commit
7df97fb59f
BIN
youtube-dl
BIN
youtube-dl
Binary file not shown.
BIN
youtube-dl.exe
BIN
youtube-dl.exe
Binary file not shown.
@ -311,6 +311,11 @@ class YoutubeIE(InfoExtractor):
|
|||||||
self._downloader.trouble(u'ERROR: "token" parameter not in video info for unknown reason')
|
self._downloader.trouble(u'ERROR: "token" parameter not in video info for unknown reason')
|
||||||
return
|
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
|
# Start extracting information
|
||||||
self.report_information_extraction(video_id)
|
self.report_information_extraction(video_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user