1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[pandatv] fix condition syntax

This commit is contained in:
Remita Amine 2019-03-11 15:37:19 +01:00
parent 8569058f88
commit 4993132344

View File

@ -36,7 +36,7 @@ def _real_extract(self, url):
'https://www.panda.tv/api_room_v2?roomid=%s' % video_id, video_id) 'https://www.panda.tv/api_room_v2?roomid=%s' % video_id, video_id)
error_code = config.get('errno', 0) error_code = config.get('errno', 0)
if error_code is not 0: if error_code != 0:
raise ExtractorError( raise ExtractorError(
'%s returned error %s: %s' '%s returned error %s: %s'
% (self.IE_NAME, error_code, config['errmsg']), % (self.IE_NAME, error_code, config['errmsg']),