mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-18 12:39:26 +01:00
[extractor/common] Make ie_key and IE_NAME return unicode string
This commit is contained in:
parent
ae12bc3ebb
commit
dc519b5421
@ -310,11 +310,11 @@ class InfoExtractor(object):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def ie_key(cls):
|
def ie_key(cls):
|
||||||
"""A string for getting the InfoExtractor with get_info_extractor"""
|
"""A string for getting the InfoExtractor with get_info_extractor"""
|
||||||
return cls.__name__[:-2]
|
return compat_str(cls.__name__[:-2])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def IE_NAME(self):
|
def IE_NAME(self):
|
||||||
return type(self).__name__[:-2]
|
return compat_str(type(self).__name__[:-2])
|
||||||
|
|
||||||
def _request_webpage(self, url_or_request, video_id, note=None, errnote=None, fatal=True):
|
def _request_webpage(self, url_or_request, video_id, note=None, errnote=None, fatal=True):
|
||||||
""" Returns the response handle """
|
""" Returns the response handle """
|
||||||
|
Loading…
Reference in New Issue
Block a user