]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - test/test_youtube_subtitles.py
Do not re-encode / to # if / is a platform separator, and correctly handle permission...
[youtube-dl.git] / test / test_youtube_subtitles.py
index 5b3f289afeebbca005c34535a61f3fa64177465e..a123e6d72df077efc9228e75a5455d3f80624e00 100644 (file)
@@ -12,6 +12,7 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 
 from youtube_dl.InfoExtractors import YoutubeIE
 from youtube_dl.utils import *
+from youtube_dl import FileDownloader
 
 PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "parameters.json")
 with io.open(PARAMETERS_FILE, encoding='utf-8') as pf:
@@ -24,7 +25,7 @@ proxy_handler = compat_urllib_request.ProxyHandler()
 opener = compat_urllib_request.build_opener(proxy_handler, cookie_processor, YoutubeDLHandler())
 compat_urllib_request.install_opener(opener)
 
-class FakeDownloader(object):
+class FakeDownloader(FileDownloader):
     def __init__(self):
         self.result = []
         self.params = parameters