Skip to content

Commit

Permalink
[tumblr] add a test for 'gifv' fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ClosedPort22 committed Dec 29, 2022
1 parent 5668436 commit d8196c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gallery_dl/extractor/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,16 @@ class TumblrPostExtractor(TumblrExtractor):
"count": 2, # high-quality images (#1344)
"content": "6bc19a42787e46e1bba2ef4aeef5ca28fcd3cd34",
}),
# wrong extension returned by api (#3095)
# note that the regex ends with 'gif' rather than 'gifv'
# this test should fail if tumblr fixes the bug
("https://k-eke.tumblr.com/post/185341184856/be-proud", {
"options": (("fallback", True),),
"pattern": r"^https://\d+\.media\.tumblr\.com"
r"/5e9d760aba24c65beaf0e72de5aae4dd"
r"/tumblr_psj5yaqV871t1ig6no1_1280.gif$",
"content": "f1eca966272cb22fcad17c99b0309e82272b2495",
}),
("https://mikf123.tumblr.com/image/689860196535762944", {
"pattern": r"^https://\d+\.media\.tumblr\.com"
r"/134791621559a79793563b636b5fe2c6"
Expand Down

0 comments on commit d8196c4

Please sign in to comment.