diff options
| author | 2024-01-08 03:22:24 -0500 | |
|---|---|---|
| committer | 2024-01-08 03:22:24 -0500 | |
| commit | e949aaf6f6ac93896947d5b736e48e7911926efb (patch) | |
| tree | b73090d78cd83dee0f85b385a25dcf623ac12f2d /gallery_dl/extractor/rule34us.py | |
| parent | 4d7a4f1ecef2c96269f3590335d2834ebcdd50bf (diff) | |
New upstream version 1.26.6.upstream/1.26.6
Diffstat (limited to 'gallery_dl/extractor/rule34us.py')
| -rw-r--r-- | gallery_dl/extractor/rule34us.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/rule34us.py b/gallery_dl/extractor/rule34us.py index 6439a22..cf70ccc 100644 --- a/gallery_dl/extractor/rule34us.py +++ b/gallery_dl/extractor/rule34us.py @@ -38,7 +38,11 @@ class Rule34usExtractor(BooruExtractor): "height" : extr(' x ', 'h'), "file_url": extr(' src="', '"'), } - post["md5"] = post["file_url"].rpartition("/")[2].partition(".")[0] + + url = post["file_url"] + if "//video-cdn1." in url: + post["_fallback"] = (url.replace("//video-cdn1.", "//video."),) + post["md5"] = url.rpartition("/")[2].partition(".")[0] tags = collections.defaultdict(list) for tag_type, tag_name in self._find_tags(page): |
