projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve URL extraction
[youtube-dl]
/
youtube_dl
/
extractor
/
keezmovies.py
diff --git
a/youtube_dl/extractor/keezmovies.py
b/youtube_dl/extractor/keezmovies.py
index d4e6f7ac17be4f19e4fdf3bff891fde0b087d006..c3eb74c1742bedc23ae125384b9ba39965f6cd95 100644
(file)
--- a/
youtube_dl/extractor/keezmovies.py
+++ b/
youtube_dl/extractor/keezmovies.py
@@
-4,16
+4,14
@@
import re
from .common import InfoExtractor
from ..aes import aes_decrypt_text
from .common import InfoExtractor
from ..aes import aes_decrypt_text
-from ..compat import (
- compat_str,
- compat_urllib_parse_unquote,
-)
+from ..compat import compat_urllib_parse_unquote
from ..utils import (
determine_ext,
ExtractorError,
int_or_none,
str_to_int,
strip_or_none,
from ..utils import (
determine_ext,
ExtractorError,
int_or_none,
str_to_int,
strip_or_none,
+ url_or_none,
)
)
@@
-55,7
+53,8
@@
class KeezMoviesIE(InfoExtractor):
encrypted = False
def extract_format(format_url, height=None):
encrypted = False
def extract_format(format_url, height=None):
- if not isinstance(format_url, compat_str) or not format_url.startswith(('http', '//')):
+ format_url = url_or_none(format_url)
+ if not format_url or not format_url.startswith(('http', '//')):
return
if format_url in format_urls:
return
return
if format_url in format_urls:
return