Fix inconsistent use of report_warning

This commit is contained in:
pukkandan
2021-04-16 15:31:10 +05:30
parent 33245766ab
commit 6a39ee13f7
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')