Skip to content

Commit 4402698

Browse files
committed
Use jeena peertube instance to avoid Youtube and Vimeo 403
1 parent a9b8c54 commit 4402698

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/download/test_download.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def test_large_download_https(tmp_path, valid_https_url):
167167
@pytest.mark.parametrize(
168168
"url,video_id",
169169
[
170-
("https://vimeo.com/619427082", "619427082"),
171-
("https://vimeo.com/619427082", "619427082"),
170+
("https://tube.jeena.net/w/tyekuoPZqb7BtkyNPwVHJL", "tyekuoPZqb7BtkyNPwVHJL"),
171+
("https://tube.jeena.net/w/tyekuoPZqb7BtkyNPwVHJL", "tyekuoPZqb7BtkyNPwVHJL"),
172172
],
173173
)
174174
def test_youtube_download_serial(url, video_id, tmp_path):
@@ -186,7 +186,7 @@ def test_youtube_download_serial(url, video_id, tmp_path):
186186
def test_youtube_download_nowait(tmp_path):
187187
with YoutubeDownloader(threads=1) as yt_downloader:
188188
future = yt_downloader.download(
189-
"https://vimeo.com/619427082",
189+
"https://tube.jeena.net/w/tyekuoPZqb7BtkyNPwVHJL",
190190
BestMp4.get_options(target_dir=tmp_path),
191191
wait=False,
192192
)
@@ -212,10 +212,11 @@ def test_youtube_download_error():
212212
def test_youtube_download_contextmanager(tmp_path):
213213
with YoutubeDownloader(threads=1) as yt_downloader:
214214
yt_downloader.download(
215-
"https://vimeo.com/619427082", BestWebm.get_options(target_dir=tmp_path)
215+
"https://tube.jeena.net/w/tyekuoPZqb7BtkyNPwVHJL",
216+
BestWebm.get_options(target_dir=tmp_path),
216217
)
217218
assert yt_downloader.executor._shutdown
218-
assert tmp_path.joinpath("video.mp4").exists() # videmo doesn't offer webm
219+
assert tmp_path.joinpath("video.mp4").exists() # jeena doesn't offer webm
219220

220221

221222
@pytest.fixture

0 commit comments

Comments
 (0)