[extractor/generic] use compat_str
This commit is contained in:
parent
89474a4317
commit
355e63eba1
@ -12,6 +12,7 @@ from ..compat import (
|
|||||||
compat_urllib_request,
|
compat_urllib_request,
|
||||||
compat_urlparse,
|
compat_urlparse,
|
||||||
compat_xml_parse_error,
|
compat_xml_parse_error,
|
||||||
|
compat_str,
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
determine_ext,
|
||||||
@ -1823,7 +1824,7 @@ class GenericIE(InfoExtractor):
|
|||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for video_urls in found:
|
for video_urls in found:
|
||||||
if isinstance(video_urls, str):
|
if isinstance(video_urls, compat_str):
|
||||||
video_urls = [video_urls]
|
video_urls = [video_urls]
|
||||||
|
|
||||||
video_id = compat_urllib_parse_unquote(os.path.basename(url))
|
video_id = compat_urllib_parse_unquote(os.path.basename(url))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user