* fixes crash if signature decryption code isn't packed with artifacts
parent
23a00ac4b8
commit
0872e0c334
|
@ -1025,9 +1025,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
return a
|
return a
|
||||||
|
|
||||||
def _full_signature_handling(self, sig, player_url, video_id):
|
def _full_signature_handling(self, sig, player_url, video_id):
|
||||||
signature = _decrypt_signature_protected(sig)
|
if _decrypt_signature_protected:
|
||||||
if re.match(self._VALID_SIG_VALUE_RE, signature):
|
signature = _decrypt_signature_protected(sig)
|
||||||
return signature
|
if re.match(self._VALID_SIG_VALUE_RE, signature):
|
||||||
|
return signature
|
||||||
if self._downloader.params.get('verbose'):
|
if self._downloader.params.get('verbose'):
|
||||||
self.to_screen("Built-in signature decryption failed, trying dynamic")
|
self.to_screen("Built-in signature decryption failed, trying dynamic")
|
||||||
sig_decrypt_stack = self._extract_signature_function(video_id, player_url)
|
sig_decrypt_stack = self._extract_signature_function(video_id, player_url)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -115,7 +115,7 @@ setup(
|
||||||
packages=[
|
packages=[
|
||||||
'haruhi_dl',
|
'haruhi_dl',
|
||||||
'haruhi_dl.extractor', 'haruhi_dl.downloader',
|
'haruhi_dl.extractor', 'haruhi_dl.downloader',
|
||||||
'haruhi_dl.postprocessor'],
|
'haruhi_dl.postprocessor', 'haruhi_dl.extractor_artifacts'],
|
||||||
|
|
||||||
# Provokes warning on most systems (why?!)
|
# Provokes warning on most systems (why?!)
|
||||||
# test_suite = 'nose.collector',
|
# test_suite = 'nose.collector',
|
||||||
|
|
Loading…
Reference in New Issue