add processing error handling.

This commit is contained in:
Avi Peretz 2020-04-14 11:33:21 +03:00
parent 50c7aa32a5
commit 9a6068fdf3

View File

@ -184,6 +184,9 @@ class OdnoklassnikiIE(InfoExtractor):
movie = metadata['movie'] movie = metadata['movie']
if movie.get('status') == 'PROCESSING':
raise ExtractorError('Video is still processing', video_id=video_id)
# Some embedded videos may not contain title in movie dict (e.g. # Some embedded videos may not contain title in movie dict (e.g.
# http://ok.ru/video/62036049272859-0) thus we allow missing title # http://ok.ru/video/62036049272859-0) thus we allow missing title
# here and it's going to be extracted later by an extractor that # here and it's going to be extracted later by an extractor that