X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fteamcoco.py;fp=youtube_dl%2Fextractor%2Fteamcoco.py;h=56be526383b590d9b00759400a269d5164beef2f;hb=12675275a1d2158fbe409361888569e4cb52ef07;hp=410eb7d3a1fa60acdc590066125a834b37f5c6e9;hpb=3a105f7b20e8a3f742ac86cc1a6b02935b831778;p=youtube-dl.git diff --git a/youtube_dl/extractor/teamcoco.py b/youtube_dl/extractor/teamcoco.py index 410eb7d3a..56be52638 100644 --- a/youtube_dl/extractor/teamcoco.py +++ b/youtube_dl/extractor/teamcoco.py @@ -62,7 +62,9 @@ class TeamcocoIE(InfoExtractor): mobj = re.match(self._VALID_URL, url) display_id = mobj.group('display_id') - webpage = self._download_webpage(url, display_id) + webpage, urlh = self._download_webpage_handle(url, display_id) + if 'src=expired' in urlh.geturl(): + raise ExtractorError('This video is expired.', expected=True) video_id = mobj.group('video_id') if not video_id: