projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[downloader/http] Retry download when urlopen times out (#26603) (refs #10935)
[youtube-dl]
/
youtube_dl
/
extractor
/
rentv.py
diff --git
a/youtube_dl/extractor/rentv.py
b/youtube_dl/extractor/rentv.py
index 8bcf87126b18dd82f4c08bc7a9c586b0f99f112e..7c8909d95377b38f5e9bbc3a204337f1f8b540a6 100644
(file)
--- a/
youtube_dl/extractor/rentv.py
+++ b/
youtube_dl/extractor/rentv.py
@@
-6,6
+6,7
@@
from ..compat import compat_str
from ..utils import (
determine_ext,
int_or_none,
from ..utils import (
determine_ext,
int_or_none,
+ url_or_none,
)
)
@@
-37,8
+38,8
@@
class RENTVIE(InfoExtractor):
title = config['title']
formats = []
for video in config['src']:
title = config['title']
formats = []
for video in config['src']:
- src =
video.get('src'
)
- if not src
or not isinstance(src, compat_str)
:
+ src =
url_or_none(video.get('src')
)
+ if not src:
continue
ext = determine_ext(src)
if ext == 'm3u8':
continue
ext = determine_ext(src)
if ext == 'm3u8':