[ie/youtube] Fix minor issues (#17060)

Authored by: doe1080
This commit is contained in:
doe1080
2026-06-26 22:33:21 +00:00
committed by GitHub
parent 25a05fc0e2
commit 57528faa36
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -233,8 +233,8 @@ class EJSBaseJCP(JsChallengeProvider):
self.logger.debug('Clearing outdated cached script')
self.ie.cache.store(self._CACHE_SECTION, script_type.value, None)
continue
script_hashes = self._ALLOWED_HASHES[script.type].get(script.variant, [])
if script_hashes and script.hash not in script_hashes:
expected_hash = self._ALLOWED_HASHES[script.type].get(script.variant)
if expected_hash and script.hash != expected_hash:
self.logger.warning(
f'Hash mismatch on challenge solver {script.type.value} script '
f'(source: {script.source.value}, variant: {script.variant}, hash: {script.hash})!{provider_bug_report_message(self)}')