mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 19:52:40 +01:00
Remove mentions of old InfoExtractors module
This commit is contained in:
parent
c59b4aaeef
commit
0824c28c8b
@ -7,7 +7,7 @@
|
|||||||
import os
|
import os
|
||||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
from youtube_dl.InfoExtractors import YoutubeIE, YoutubePlaylistIE, YoutubeChannelIE, JustinTVIE
|
from youtube_dl.extractor import YoutubeIE, YoutubePlaylistIE, YoutubeChannelIE, JustinTVIE
|
||||||
|
|
||||||
class TestAllURLsMatching(unittest.TestCase):
|
class TestAllURLsMatching(unittest.TestCase):
|
||||||
def test_youtube_playlist_matching(self):
|
def test_youtube_playlist_matching(self):
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
import youtube_dl.FileDownloader
|
import youtube_dl.FileDownloader
|
||||||
import youtube_dl.InfoExtractors
|
import youtube_dl.extractors
|
||||||
from youtube_dl.utils import *
|
from youtube_dl.utils import *
|
||||||
|
|
||||||
DEF_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tests.json')
|
DEF_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tests.json')
|
||||||
@ -72,7 +72,7 @@ def setUp(self):
|
|||||||
def generator(test_case):
|
def generator(test_case):
|
||||||
|
|
||||||
def test_template(self):
|
def test_template(self):
|
||||||
ie = youtube_dl.InfoExtractors.get_info_extractor(test_case['name'])
|
ie = youtube_dl.extractors.get_info_extractor(test_case['name'])
|
||||||
if not ie._WORKING:
|
if not ie._WORKING:
|
||||||
print('Skipping: IE marked as not _WORKING')
|
print('Skipping: IE marked as not _WORKING')
|
||||||
return
|
return
|
||||||
@ -87,7 +87,7 @@ def test_template(self):
|
|||||||
params.update(test_case.get('params', {}))
|
params.update(test_case.get('params', {}))
|
||||||
|
|
||||||
fd = FileDownloader(params)
|
fd = FileDownloader(params)
|
||||||
for ie in youtube_dl.InfoExtractors.gen_extractors():
|
for ie in youtube_dl.extractors.gen_extractors():
|
||||||
fd.add_info_extractor(ie)
|
fd.add_info_extractor(ie)
|
||||||
finished_hook_called = set()
|
finished_hook_called = set()
|
||||||
def _hook(status):
|
def _hook(status):
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
import youtube_dl.FileDownloader
|
import youtube_dl.FileDownloader
|
||||||
import youtube_dl.InfoExtractors
|
import youtube_dl.extractor
|
||||||
from youtube_dl.utils import *
|
from youtube_dl.utils import *
|
||||||
|
|
||||||
PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "parameters.json")
|
PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "parameters.json")
|
||||||
@ -48,7 +48,7 @@ def setUp(self):
|
|||||||
self.tearDown()
|
self.tearDown()
|
||||||
|
|
||||||
def test_info_json(self):
|
def test_info_json(self):
|
||||||
ie = youtube_dl.InfoExtractors.YoutubeIE()
|
ie = youtube_dl.extractor.YoutubeIE()
|
||||||
fd = FileDownloader(params)
|
fd = FileDownloader(params)
|
||||||
fd.add_info_extractor(ie)
|
fd.add_info_extractor(ie)
|
||||||
fd.download([TEST_ID])
|
fd.download([TEST_ID])
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
import os
|
import os
|
||||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
from youtube_dl.InfoExtractors import YoutubeUserIE, YoutubePlaylistIE, YoutubeIE, YoutubeChannelIE
|
from youtube_dl.extractor import YoutubeUserIE, YoutubePlaylistIE, YoutubeIE, YoutubeChannelIE
|
||||||
from youtube_dl.utils import *
|
from youtube_dl.utils import *
|
||||||
from youtube_dl.FileDownloader import FileDownloader
|
from youtube_dl.FileDownloader import FileDownloader
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
import os
|
import os
|
||||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
from youtube_dl.InfoExtractors import YoutubeIE
|
from youtube_dl.extractor import YoutubeIE
|
||||||
from youtube_dl.utils import *
|
from youtube_dl.utils import *
|
||||||
from youtube_dl import FileDownloader
|
from youtube_dl import FileDownloader
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
import ctypes
|
import ctypes
|
||||||
|
|
||||||
from .utils import *
|
from .utils import *
|
||||||
from .InfoExtractors import get_info_extractor
|
from .extractor import get_info_extractor
|
||||||
|
|
||||||
|
|
||||||
class FileDownloader(object):
|
class FileDownloader(object):
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Legacy file for backwards compatibility, use youtube_dl.extractor instead!
|
||||||
|
|
||||||
from .extractor.common import InfoExtractor, SearchInfoExtractor
|
from .extractor.common import InfoExtractor, SearchInfoExtractor
|
||||||
from .extractor import gen_extractors, get_info_extractor
|
from .extractor import gen_extractors, get_info_extractor
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
from .update import update_self
|
from .update import update_self
|
||||||
from .version import __version__
|
from .version import __version__
|
||||||
from .FileDownloader import *
|
from .FileDownloader import *
|
||||||
from .InfoExtractors import gen_extractors
|
from .extractor import gen_extractors
|
||||||
from .PostProcessor import *
|
from .PostProcessor import *
|
||||||
|
|
||||||
def parseOpts(overrideArguments=None):
|
def parseOpts(overrideArguments=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user