- raise ExtractorError('Video %s does not exist' % video_id, expected=True)
- elif origin == 'NotAllowedError':
- raise ExtractorError('pycryptodome not found. Please install it.', expected=True)
- raise ExtractorError(
- 'Unable to download video %s: %s' % (video_id, error['message']),
- expected=True)
+ extractor_msg = 'Video %s does not exist'
+ elif message:
+ if 'недоступен для просмотра на площадке s183' in message:
+ raise ExtractorError(
+ 'pycryptodome not found. Please install it.',
+ expected=True)
+ extractor_msg += ': ' + message
+ raise ExtractorError(extractor_msg % video_id, expected=True)