Add test on bluesky and note on why it doesn't work

This commit is contained in:
Patrick Robertson
2025-01-15 18:31:20 +01:00
parent 3ff7a9444d
commit 5626bba815

View File

@@ -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"
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)