1
0
Fork 0

Fix inconsistent use of report_warning

This commit is contained in:
pukkandan 2021-04-16 15:31:10 +05:30
commit 6a39ee13f7
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
14 changed files with 31 additions and 31 deletions

View file

@ -14,7 +14,7 @@ from ..utils import (
class DeezerBaseInfoExtractor(InfoExtractor):
def get_data(self, url):
if not self._downloader.params.get('test'):
self._downloader.report_warning('For now, this extractor only supports the 30 second previews. Patches welcome!')
self.report_warning('For now, this extractor only supports the 30 second previews. Patches welcome!')
mobj = re.match(self._VALID_URL, url)
data_id = mobj.group('id')