[subtitles] rename SubitlesIE to SubtitlesInfoExtractor
Otherwise it can be automatically detected as a IE ready for use.
This commit is contained in:
parent
de7f3446e0
commit
54d39d8b2f
3 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ import itertools
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from .subtitles import NoAutoSubtitlesIE
|
from .subtitles import NoAutoSubtitlesInfoExtractor
|
||||||
|
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
compat_http_client,
|
compat_http_client,
|
||||||
|
@ -18,7 +18,7 @@ from ..utils import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class DailymotionIE(NoAutoSubtitlesIE):
|
class DailymotionIE(NoAutoSubtitlesInfoExtractor):
|
||||||
"""Information Extractor for Dailymotion"""
|
"""Information Extractor for Dailymotion"""
|
||||||
|
|
||||||
_VALID_URL = r'(?i)(?:https?://)?(?:www\.)?dailymotion\.[a-z]{2,3}/(?:embed/)?video/([^/]+)'
|
_VALID_URL = r'(?i)(?:https?://)?(?:www\.)?dailymotion\.[a-z]{2,3}/(?:embed/)?video/([^/]+)'
|
||||||
|
|
|
@ -10,7 +10,7 @@ from ..utils import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class SubtitlesIE(InfoExtractor):
|
class SubtitlesInfoExtractor(InfoExtractor):
|
||||||
|
|
||||||
def _list_available_subtitles(self, video_id):
|
def _list_available_subtitles(self, video_id):
|
||||||
""" outputs the available subtitles for the video """
|
""" outputs the available subtitles for the video """
|
||||||
|
@ -72,7 +72,7 @@ class SubtitlesIE(InfoExtractor):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class NoAutoSubtitlesIE(SubtitlesIE):
|
class NoAutoSubtitlesInfoExtractor(SubtitlesInfoExtractor):
|
||||||
""" A subtitle class for the servers that don't support auto-captions"""
|
""" A subtitle class for the servers that don't support auto-captions"""
|
||||||
|
|
||||||
def _request_automatic_caption(self, video_id, webpage):
|
def _request_automatic_caption(self, video_id, webpage):
|
||||||
|
|
|
@ -7,7 +7,7 @@ import socket
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
from .common import InfoExtractor, SearchInfoExtractor
|
from .common import InfoExtractor, SearchInfoExtractor
|
||||||
from .subtitles import SubtitlesIE
|
from .subtitles import SubtitlesInfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
compat_http_client,
|
compat_http_client,
|
||||||
compat_parse_qs,
|
compat_parse_qs,
|
||||||
|
|
Loading…
Reference in a new issue