From 5626bba8159d8c645b5a7cb66c6f5df7538da514 Mon Sep 17 00:00:00 2001 From: Patrick Robertson Date: Wed, 15 Jan 2025 18:31:20 +0100 Subject: [PATCH] Add test on bluesky and note on why it doesn't work --- tests/archivers/test_youtubedl_archiver.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/archivers/test_youtubedl_archiver.py b/tests/archivers/test_youtubedl_archiver.py index f9f1d76..35c791d 100644 --- a/tests/archivers/test_youtubedl_archiver.py +++ b/tests/archivers/test_youtubedl_archiver.py @@ -54,4 +54,10 @@ class TestYoutubeDLArchiver(TestArchiverBase): assert result.get('description') == "Buy NEW Keyboard Cat Merch! https://keyboardcat.creator-spring.com\n\nxo Keyboard Cat memes make your day better!\nhttp://www.keyboardcatstore.com/\nhttps://www.facebook.com/thekeyboardcat\nhttp://www.charlieschmidt.com/" assert len(result.media) == 2 assert Path(result.media[0].filename).name == "J---aiyznGQ.webm" - assert Path(result.media[1].filename).name == "hqdefault.jpg" \ No newline at end of file + assert Path(result.media[1].filename).name == "hqdefault.jpg" + + @pytest.mark.skip("ytdlp supports bluesky, but there's currently no way to extract info from pages without videos") + @pytest.mark.download + def test_download_bluesky_with_images(self, make_item): + item = make_item("https://bsky.app/profile/colborne.bsky.social/post/3lec2bqjc5s2y") + result = self.archiver.download(item) \ No newline at end of file