1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[wat] Make geolock a warning (Fixes #3579)

This commit is contained in:
Philipp Hagemeister 2014-08-24 15:19:21 +02:00
parent 5f90042bd6
commit 92a17d28ac

View file

@ -47,7 +47,8 @@ class WatIE(InfoExtractor):
video_info = self.download_video_info(real_id) video_info = self.download_video_info(real_id)
if video_info.get('geolock'): if video_info.get('geolock'):
raise ExtractorError('This content is not available in your area', expected=True) self.report_warning(
'This content is marked as not available in your area. Trying anyway ..')
chapters = video_info['chapters'] chapters = video_info['chapters']
first_chapter = chapters[0] first_chapter = chapters[0]