From 19ae6f3fc40ee9afc8f151212ebb7bd24780550d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 22 Feb 2020 02:59:56 +0100 Subject: [PATCH] update test results - twitter: Don't test the whole kwdict, only the actual content, since the keyword hash changes whenever that user changes his display name. - khinsider: Download host changed --- gallery_dl/extractor/khinsider.py | 6 +++--- gallery_dl/extractor/twitter.py | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/khinsider.py b/gallery_dl/extractor/khinsider.py index 417fe190..822a7431 100644 --- a/gallery_dl/extractor/khinsider.py +++ b/gallery_dl/extractor/khinsider.py @@ -23,9 +23,9 @@ class KhinsiderSoundtrackExtractor(AsynchronousMixin, Extractor): root = "https://downloads.khinsider.com" test = (("https://downloads.khinsider.com" "/game-soundtracks/album/horizon-riders-wii"), { - "pattern": r"https?://\d+\.\d+\.\d+\.\d+/ost/horizon-riders-wii/[^/]+" - r"/Horizon%20Riders%20Wii%20-%20Full%20Soundtrack\.mp3", - "keyword": "b6bf8444ad77307c03212e91e73b1563338bd079", + "pattern": r"https?://vgmdownloads.com/soundtracks/horizon-riders-wii/" + r"[^/]+/Horizon%20Riders%20Wii%20-%20Full%20Soundtrack.mp3", + "keyword": "5b2c35cce638c326cab2a4f7a79f245d008d62ff", }) def __init__(self, match): diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 8c32aeb5..9db23dd4 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -356,7 +356,11 @@ class TwitterTweetExtractor(TwitterExtractor): # content with emoji, newlines, hashtags (#338) ("https://twitter.com/yumi_san0112/status/1151144618936823808", { "options": (("content", True),), - "keyword": "0b7a3d05607b480c1412dfd85f8606478313e7bf", + "keyword": {"content": ( + "re:晴、お誕生日おめでとう🎉!\n実は下の名前が同じなので結構親近感ある" + "アイドルです✨\n今年の晴ちゃんめちゃくちゃ可愛い路線攻めてるから、そろ" + "そろまたかっこいい晴が見たいですねw\n#結城晴生誕祭2019\n#結城晴生誕祭" + )}, }), # Reply to another tweet (#403) ("https://twitter.com/tyson_hesse/status/1103767554424598528", {