projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 2020.01.01
[youtube-dl]
/
youtube_dl
/
extractor
/
ivi.py
diff --git
a/youtube_dl/extractor/ivi.py
b/youtube_dl/extractor/ivi.py
index 52b53bfebdeebc4e3526e332665f83785c36caad..a502e88066850b14de284e6e3ec7d47ea9397f3d 100644
(file)
--- a/
youtube_dl/extractor/ivi.py
+++ b/
youtube_dl/extractor/ivi.py
@@
-1,8
+1,9
@@
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
-import re
import json
import json
+import re
+import sys
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
@@
-91,11
+92,15
@@
class IviIE(InfoExtractor):
'contentid': video_id
}
]
'contentid': video_id
}
]
- }).encode()
+ })
+
+ bundled = hasattr(sys, 'frozen')
for site in (353, 183):
for site in (353, 183):
- content_data =
data % site
+ content_data =
(data % site).encode()
if site == 353:
if site == 353:
+ if bundled:
+ continue
try:
from Cryptodome.Cipher import Blowfish
from Cryptodome.Hash import CMAC
try:
from Cryptodome.Cipher import Blowfish
from Cryptodome.Hash import CMAC
@@
-135,6
+140,10
@@
class IviIE(InfoExtractor):
extractor_msg = 'Video %s does not exist'
elif site == 353:
continue
extractor_msg = 'Video %s does not exist'
elif site == 353:
continue
+ elif bundled:
+ raise ExtractorError(
+ 'This feature does not work from bundled exe. Run youtube-dl from sources.',
+ expected=True)
elif not pycryptodomex_found:
raise ExtractorError(
'pycryptodomex not found. Please install it.',
elif not pycryptodomex_found:
raise ExtractorError(
'pycryptodomex not found. Please install it.',