diff options
| author | 2025-03-29 07:20:04 -0400 | |
|---|---|---|
| committer | 2025-03-29 07:20:04 -0400 | |
| commit | 5ea6cce4fb40d2cc4f1d7849e44e6825ac2f3a73 (patch) | |
| tree | 2d7040d732323306b2227682068ed5c9e12d4bf0 /gallery_dl/extractor/arcalive.py | |
| parent | 68863e88e0e0d8c08a8631831c05c302527627b1 (diff) | |
| parent | 662e5ac868a5c1a3e7bc95b37054b3a0ca4db74f (diff) | |
Update upstream source from tag 'upstream/1.29.3'
Update to upstream version '1.29.3'
with Debian dir 131b9b3bdbc67af5fe84f139a5b499a550f7c22b
Diffstat (limited to 'gallery_dl/extractor/arcalive.py')
| -rw-r--r-- | gallery_dl/extractor/arcalive.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gallery_dl/extractor/arcalive.py b/gallery_dl/extractor/arcalive.py index 8e832fe..8c44256 100644 --- a/gallery_dl/extractor/arcalive.py +++ b/gallery_dl/extractor/arcalive.py @@ -41,7 +41,9 @@ class ArcalivePostExtractor(ArcaliveExtractor): def items(self): self.emoticons = self.config("emoticons", False) - self.gifs = self.config("gifs", True) + self.gifs = gifs = self.config("gifs", True) + if gifs: + self.gifs_fallback = (gifs != "check") post = self.api.post(self.groups[0]) files = self._extract_files(post) @@ -90,11 +92,15 @@ class ArcalivePostExtractor(ArcaliveExtractor): url = path + "." + orig elif video and self.gifs: url_gif = url.rpartition(".")[0] + ".gif" - response = self.request( - url_gif + "?type=orig", method="HEAD", fatal=False) - if response.status_code < 400: + if self.gifs_fallback: fallback = (url + "?type=orig",) url = url_gif + else: + response = self.request( + url_gif + "?type=orig", method="HEAD", fatal=False) + if response.status_code < 400: + fallback = (url + "?type=orig",) + url = url_gif files.append({ "url" : url + "?type=orig", |
