aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/dailymotion.py
diff options
context:
space:
mode:
authorIsmael Mejia <iemejia@gmail.com>2013-08-08 11:20:56 +0200
committerIsmael Mejia <iemejia@gmail.com>2013-08-08 11:20:56 +0200
commit69df680b973841b61594c246a9cf4a708f09cb17 (patch)
tree58a12050fed6c135573ea444c049d73298180003 /youtube_dl/extractor/dailymotion.py
parent447591e1aea39f3100b66a7b94337bf67546663f (diff)
[subtitles] Improved docs + new class for servers who don't support
auto-caption
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r--youtube_dl/extractor/dailymotion.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py
index 97003ee35..8fab16005 100644
--- a/youtube_dl/extractor/dailymotion.py
+++ b/youtube_dl/extractor/dailymotion.py
@@ -3,7 +3,7 @@ import json
import socket
from .common import InfoExtractor
-from .subtitles import SubtitlesIE
+from .subtitles import NoAutoSubtitlesIE
from ..utils import (
compat_http_client,
@@ -17,7 +17,7 @@ from ..utils import (
)
-class DailyMotionSubtitlesIE(SubtitlesIE):
+class DailyMotionSubtitlesIE(NoAutoSubtitlesIE):
def _get_available_subtitles(self, video_id):
request = compat_urllib_request.Request('https://api.dailymotion.com/video/%s/subtitles?fields=id,language,url' % video_id)
@@ -33,11 +33,6 @@ class DailyMotionSubtitlesIE(SubtitlesIE):
self._downloader.report_warning(u'video doesn\'t have subtitles')
return {}
- def _request_automatic_caption(self, video_id, webpage):
- self._downloader.report_warning(u'Automatic Captions not supported by this server')
- return {}
-
-
class DailymotionIE(DailyMotionSubtitlesIE):
"""Information Extractor for Dailymotion"""