aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-03-11 15:37:19 +0100
committerRemita Amine <remitamine@gmail.com>2019-03-11 15:37:19 +0100
commit4993132344611e77e71d27cbd4803a323e7006f4 (patch)
tree62db047a7906b01494ff694f7e21901d83ec7983 /youtube_dl/extractor
parent8569058f88f2abbc8c7377439d36fc13532bdbe3 (diff)
[pandatv] fix condition syntax
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/pandatv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pandatv.py b/youtube_dl/extractor/pandatv.py
index 13a2e7efc..4219802d5 100644
--- a/youtube_dl/extractor/pandatv.py
+++ b/youtube_dl/extractor/pandatv.py
@@ -36,7 +36,7 @@ class PandaTVIE(InfoExtractor):
'https://www.panda.tv/api_room_v2?roomid=%s' % video_id, video_id)
error_code = config.get('errno', 0)
- if error_code is not 0:
+ if error_code != 0:
raise ExtractorError(
'%s returned error %s: %s'
% (self.IE_NAME, error_code, config['errmsg']),