Generalize md5 hash comment

This commit is contained in:
Kyle 2019-07-21 18:32:53 +09:00
parent 17fa2ad22c
commit 9a638de694

View File

@ -688,7 +688,7 @@ class YahooJapanNewsIE(InfoExtractor):
content_id = self._search_regex( content_id = self._search_regex(
r'<script[^>]+class=["\']yvpub-player["\'][^>]+contentid=(?P<contentid>[^&"\']+)', r'<script[^>]+class=["\']yvpub-player["\'][^>]+contentid=(?P<contentid>[^&"\']+)',
webpage, 'contentid', group='contentid') webpage, 'contentid', group='contentid')
# md5 hash of space_id + '_headlines.yahoo.co.jp' # md5 hash of space_id + '_' + host
ak = hashlib.md5('_'.join((space_id, host)).encode()).hexdigest() ak = hashlib.md5('_'.join((space_id, host)).encode()).hexdigest()
json_data = self._download_json( json_data = self._download_json(