Commit 31b7bf5b authored by Dominika Liberda's avatar Dominika Liberda 💽
Browse files

* fixes crash if signature decryption code isn't packed with artifacts

parent a0cb1b40
Pipeline #430 passed with stage
in 23 minutes
......@@ -1025,9 +1025,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
return a
def _full_signature_handling(self, sig, player_url, video_id):
signature = _decrypt_signature_protected(sig)
if re.match(self._VALID_SIG_VALUE_RE, signature):
return signature
if _decrypt_signature_protected:
signature = _decrypt_signature_protected(sig)
if re.match(self._VALID_SIG_VALUE_RE, signature):
return signature
if self._downloader.params.get('verbose'):
self.to_screen("Built-in signature decryption failed, trying dynamic")
sig_decrypt_stack = self._extract_signature_function(video_id, player_url)
......
......@@ -115,7 +115,7 @@ setup(
packages=[
'haruhi_dl',
'haruhi_dl.extractor', 'haruhi_dl.downloader',
'haruhi_dl.postprocessor'],
'haruhi_dl.postprocessor', 'haruhi_dl.extractor_artifacts'],
# Provokes warning on most systems (why?!)
# test_suite = 'nose.collector',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment