]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[vessel] Fix pep8 issue
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 26 Mar 2015 18:51:40 +0000 (19:51 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 26 Mar 2015 18:51:40 +0000 (19:51 +0100)
youtube_dl/extractor/vessel.py

index 123d9470e55c4bb0835f21d609ee2ce075b2beaa..6215f06420554d424fa82b0a07fd51d13173dc87 100644 (file)
@@ -45,7 +45,7 @@ class VesselIE(InfoExtractor):
 
     def _check_access_rights(self, data):
         access_info = data.get('__view', {})
-        if access_info.get('allow_access') == False:
+        if not access_info.get('allow_access', True):
             err_code = access_info.get('error_code') or ''
             if err_code == 'ITEM_PAID_ONLY':
                 raise ExtractorError(