youtube-dl

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

commit cd08d806b1eeff1945fd91b9098421cbfdc8bbcc
parent 755ff8d22ca5607400c1232b194e20a004e4e9eb
Author: Sergey M <dstftw@gmail.com>
Date:   Mon, 26 Oct 2015 13:47:42 +0000

Merge pull request #7297 from lalinsky/vidme-deleted

[vidme] Check for deleted videos
Diffstat:
Myoutube_dl/extractor/vidme.py | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/vidme.py b/youtube_dl/extractor/vidme.py @@ -102,6 +102,10 @@ class VidmeIE(InfoExtractor): 'url': 'https://vid.me/Ox3G', 'only_matching': True, }, { + # deleted + 'url': 'https://vid.me/KTPm', + 'only_matching': True, + }, { # no formats in the API response 'url': 'https://vid.me/e5g', 'info_dict': { @@ -143,6 +147,11 @@ class VidmeIE(InfoExtractor): video = response['video'] + if video.get('state') == 'deleted': + raise ExtractorError( + 'Vidme said: Sorry, this video has been deleted.', + expected=True) + if video.get('state') in ('user-disabled', 'suspended'): raise ExtractorError( 'Vidme said: This video has been suspended either due to a copyright claim, '