diff options
author | Pccode66 <49125134+Pccode66@users.noreply.github.com> | 2021-02-24 15:45:56 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 00:15:56 +0530 |
commit | 7a5c1cfe93924351387b44919b3c0b2f66c4b883 (patch) | |
tree | 6da63f3d7b16cf7d4b9fdb29b029125cab8bd0d3 /test/test_download.py | |
parent | c4218ac3f1146daac20308439cdc374e3561101a (diff) | |
download | hypervideo-pre-7a5c1cfe93924351387b44919b3c0b2f66c4b883.tar.lz hypervideo-pre-7a5c1cfe93924351387b44919b3c0b2f66c4b883.tar.xz hypervideo-pre-7a5c1cfe93924351387b44919b3c0b2f66c4b883.zip |
Completely change project name to yt-dlp (#85)
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account
Co-authored-by: Pccode66
Co-authored-by: pukkandan
Diffstat (limited to 'test/test_download.py')
-rw-r--r-- | test/test_download.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_download.py b/test/test_download.py index bcd3b4041..5559b4d6f 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -24,24 +24,24 @@ import io import json import socket -import youtube_dlc.YoutubeDL -from youtube_dlc.compat import ( +import yt_dlp.YoutubeDL +from yt_dlp.compat import ( compat_http_client, compat_urllib_error, compat_HTTPError, ) -from youtube_dlc.utils import ( +from yt_dlp.utils import ( DownloadError, ExtractorError, format_bytes, UnavailableVideoError, ) -from youtube_dlc.extractor import get_info_extractor +from yt_dlp.extractor import get_info_extractor RETRIES = 3 -class YoutubeDL(youtube_dlc.YoutubeDL): +class YoutubeDL(yt_dlp.YoutubeDL): def __init__(self, *args, **kwargs): self.to_stderr = self.to_screen self.processed_info_dicts = [] @@ -92,7 +92,7 @@ class TestDownload(unittest.TestCase): def generator(test_case, tname): def test_template(self): - ie = youtube_dlc.extractor.get_info_extractor(test_case['name'])() + ie = yt_dlp.extractor.get_info_extractor(test_case['name'])() other_ies = [get_info_extractor(ie_key)() for ie_key in test_case.get('add_ie', [])] is_playlist = any(k.startswith('playlist') for k in test_case) test_cases = test_case.get( |