mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[tests] fix 'invalid escape sequence' warnings
This commit is contained in:
parent
27d5fc3697
commit
7aa1c9671b
@ -12,7 +12,7 @@ __tests__ = (
|
||||
"#url" : "https://archive.4plebs.org/tg/thread/54059290",
|
||||
"#category": ("foolfuuka", "4plebs", "thread"),
|
||||
"#class" : foolfuuka.FoolfuukaThreadExtractor,
|
||||
"#pattern" : "https://i\.4pcdn\.org/tg/1[34]\d{11}\.(jpg|png|gif)",
|
||||
"#pattern" : r"https://i\.4pcdn\.org/tg/1[34]\d{11}\.(jpg|png|gif)",
|
||||
"#count" : 30,
|
||||
},
|
||||
|
||||
|
@ -21,7 +21,7 @@ __tests__ = (
|
||||
"album_id" : "i5PggF",
|
||||
"album_name" : "British Scrap Book",
|
||||
"extension" : "jpg",
|
||||
"id" : "re:^\w{7}$",
|
||||
"id" : r"re:^\w{7}$",
|
||||
"title" : str,
|
||||
"url" : r"re:https://i\.ibb\.co/\w{7}/[\w-]+\.jpg",
|
||||
"user" : "folkie",
|
||||
|
@ -12,7 +12,7 @@ __tests__ = (
|
||||
"#url" : "https://rule34.paheal.net/post/list/Ayane_Suzuki/1",
|
||||
"#category": ("shimmie2", "paheal", "tag"),
|
||||
"#class" : paheal.PahealTagExtractor,
|
||||
"#pattern" : "https://[^.]+\.paheal\.net/_images/\w+/\d+%20-%20|https://r34i\.paheal-cdn\.net/[0-9a-f]{2}/[0-9a-f]{2}/[0-9a-f]{32}$",
|
||||
"#pattern" : r"https://[^.]+\.paheal\.net/_images/\w+/\d+%20-%20|https://r34i\.paheal-cdn\.net/[0-9a-f]{2}/[0-9a-f]{2}/[0-9a-f]{32}$",
|
||||
"#count" : range(70, 200),
|
||||
|
||||
"date" : "type:datetime",
|
||||
|
@ -21,7 +21,7 @@ __tests__ = (
|
||||
"#category": ("postmill", "raddle.me", "forum"),
|
||||
"#class" : postmill.PostmillForumExtractor,
|
||||
"#count" : 1,
|
||||
"#pattern" : "^https://raddle\.me/f/traa/156646/click-here-to-go-to-f-traaaaaaannnnnnnnnns$",
|
||||
"#pattern" : r"^https://raddle\.me/f/traa/156646/click-here-to-go-to-f-traaaaaaannnnnnnnnns$",
|
||||
},
|
||||
|
||||
{
|
||||
@ -97,7 +97,7 @@ __tests__ = (
|
||||
"#comment" : "Link + text post (with text disabled)",
|
||||
"#category": ("postmill", "raddle.me", "post"),
|
||||
"#class" : postmill.PostmillPostExtractor,
|
||||
"#pattern" : "^https://fantasyanime\.com/anime/neo-tokyo-dub$",
|
||||
"#pattern" : r"^https://fantasyanime\.com/anime/neo-tokyo-dub$",
|
||||
"#count" : 1,
|
||||
},
|
||||
|
||||
|
@ -12,7 +12,7 @@ __tests__ = (
|
||||
"#url" : "https://www.wikiart.org/en/thomas-cole",
|
||||
"#category": ("", "wikiart", "artist"),
|
||||
"#class" : wikiart.WikiartArtistExtractor,
|
||||
"#pattern" : "https://uploads\d+\.wikiart\.org/(\d+/)?images/thomas-cole/[\w()-]+\.(jpg|png)",
|
||||
"#pattern" : r"https://uploads\d+\.wikiart\.org/(\d+/)?images/thomas-cole/[\w()-]+\.(jpg|png)",
|
||||
"#count" : "> 100",
|
||||
|
||||
"albums" : None,
|
||||
|
Loading…
Reference in New Issue
Block a user