Commit Graph

16 Commits

Author SHA1 Message Date
Mike Fährmann
f2a72d8d1e replace 'request(…).json()' with 'request_json(…)' 2025-06-29 17:50:19 +02:00
Mike Fährmann
9dbe33b6de replace old %-formatted and .format(…) strings with f-strings (#7671)
mostly using flynt
https://github.com/ikamensh/flynt
2025-06-29 17:50:19 +02:00
Mike Fährmann
41191bb60a 'match.group(N)' -> 'match[N]' (#7671)
2.5x faster
2025-06-18 13:05:58 +02:00
Mike Fährmann
e08ec7e083 update copyright notices 2025-06-13 00:03:41 +02:00
Mike Fährmann
811b665e33 remove @staticmethod decorators
There might have been a time when calling a static method was faster
than a regular method, but that is no longer the case. According to
micro-benchmarks, it is 70% slower in CPython 3.13 and it also makes
executing the code of a class definition slower.
2025-06-12 22:50:52 +02:00
Mike Fährmann
482f002e1f [nsfwalbum] detect '/error.jpg' images (#4598) 2023-10-02 15:38:22 +02:00
Mike Fährmann
eb230e4b77 [nsfwalbum] disable Referer headers by default (#4598) 2023-10-01 13:55:17 +02:00
Mike Fährmann
a453335a9f remove test results in extractor modules
and add generic example URLs
2023-09-11 16:30:55 +02:00
Mike Fährmann
82a12d6126 [nsfwalbum] detect placeholder images
patch by an anonymous contributor
2023-05-17 15:18:10 +02:00
Mike Fährmann
c37c2818fb [nsfwalbum] retry all requests when extracting image URLs
(#1733, fixes #1271)
2021-07-30 00:23:04 +02:00
Mike Fährmann
4e95cef6d2 [nsfwalbum] retry backend requests (fixes #1733) 2021-07-29 15:29:37 +02:00
Mike Fährmann
23ff936d46 [nsfwalbum] use fallback for deleted content (fixes #1259) 2021-01-29 23:35:20 +01:00
Mike Fährmann
1693d97bd3 update extractor class hierarchies
- let the GalleryExtractor class inherit directly from Extractor
- make ChapterExtractor a subclass of GalleryExtractor
- change enumeration field names of GalleryExtractors to 'num'
2019-10-16 18:15:29 +02:00
Mike Fährmann
de4e2029d1 [nsfwalbum] update test album
the old one is no longer available
2019-09-28 20:48:15 +02:00
Mike Fährmann
e314621366 [nsfwalbum] fix default directory_fmt (#287) 2019-06-24 18:29:54 +02:00
Mike Fährmann
f0c5093812 [nsfwalbum] add album extractor (closes #287) 2019-06-23 22:45:07 +02:00