Commit Graph

95 Commits

Author SHA1 Message Date
Mike Fährmann
c38856bd3f [dt] use 'parse_datetime_iso()' for ISO formats 2025-10-19 21:52:05 +02:00
Mike Fährmann
085616e0a8 [dt] replace 'text.parse_datetime()' & 'text.parse_timestamp()' 2025-10-17 17:43:06 +02:00
Mike Fährmann
0eb3c8a994 [dt] replace 'util' datetime functions 2025-10-15 21:30:38 +02:00
Mike Fährmann
4ad2596667 [patreon] add 'collection' extractor (#8286) 2025-09-24 21:29:15 +02:00
Mike Fährmann
ef4f09fab1 [patreon] support 'date-max' for '/home' URLs (#7856) 2025-07-25 00:22:55 +02:00
Mike Fährmann
da44d83438 [patreon] implement 'cursor' support (#7856) 2025-07-24 23:08:58 +02:00
Mike Fährmann
a097a373a9 simplify if statements by using walrus operators (#7671) 2025-07-22 20:57:54 +02:00
Mike Fährmann
d8ef1d693f rename 'StopExtraction' to 'AbortExtraction'
for cases where StopExtraction was used to report errors
2025-07-09 21:07:28 +02:00
Mike Fährmann
1f1a3edd3e [patreon] fix campaign_id extraction from Next.js 13 creator pages (#7773) 2025-07-04 21:41:08 +02:00
Mike Fährmann
f2a72d8d1e replace 'request(…).json()' with 'request_json(…)' 2025-06-29 17:50:19 +02:00
Mike Fährmann
41ae7695c4 [patreon] update code to 3.8 2025-06-25 07:54:55 +02:00
Mike Fährmann
bd410fab03 [patreon] extract more metadata for paywalled posts (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3002275572
2025-06-25 07:18:59 +02:00
Mike Fährmann
52ca441dc2 [patreon] yield metadata for paywalled posts as well (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-2998535431
2025-06-24 09:09:52 +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
5ebea85bd1 [patreon] send 'Referer' when downloading m3u8 videos (#7571) 2025-05-26 17:35:49 +02:00
Mike Fährmann
88f1541a83 [common] add 'request_location()' convenience function 2025-04-19 16:45:05 +02:00
Mike Fährmann
070b75aa82 [patreon] do not match '/messages' URLs as creators (#7187) 2025-03-18 22:07:44 +01:00
Mike Fährmann
d4915900ed [patreon] include subdomains in 'session_id' cookie check (#7188) 2025-03-18 15:00:48 +01:00
Mike Fährmann
1cf2870f81 [patreon] extract 'campaign' metadata (#6989) 2025-02-13 14:13:43 +01:00
Mike Fährmann
6c2b6d50cc [patreon] support '/profile/creators' URLs 2025-02-09 15:52:54 +01:00
Mike Fährmann
1ae3ac5e39 [common] add '_extract_nextdata' method 2025-01-12 11:48:36 +01:00
Mike Fährmann
a526a3d00d [patreon] add 'format-images' option (#6569) 2024-12-04 21:38:01 +01:00
Mike Fährmann
1e013d1af6 [patreon] allow overriding default User-Agent header
continuation of 5412b22dae
2024-11-30 22:20:05 +01:00
Mike Fährmann
24408cd450 [patreon] use legacy mobile UA when no 'session_id' is set 2024-10-31 17:26:33 +01:00
Mike Fährmann
eacd4479a2 [patreon] support '/c/' before creator name in URLs (#6348)
and avoid '/CREATOR/posts' redirects
2024-10-21 14:11:19 +02:00
Mike Fährmann
1824267447 [dl:ytdl] implement explicit HLS/DASH handling
add '_ytdl_manifest' to specify a manifest type to process
2024-10-16 15:16:21 +02:00
Mike Fährmann
aa31c153e3 [patreon] include 'attachments_media' in API results (#6268)
continuation of fb6be2dd34
2024-10-03 10:24:05 +02:00
Mike Fährmann
fb6be2dd34 [patreon] extract 'attachments_media' files (#6241)
https://github.com/mikf/gallery-dl/issues/6241#issuecomment-2386343160
2024-10-01 20:28:30 +02:00
Mike Fährmann
3d4191fc0d [patreon] handle exception for suspended accounts 2024-10-01 08:22:50 +02:00
Mike Fährmann
319c3a4c9b [patreon] use 'self.groups' to access matched URL values 2024-10-01 08:22:50 +02:00
Mike Fährmann
321161c769 [patreon] use mobile UA (#6241, #6239, #6140) 2024-10-01 08:22:16 +02:00
Mike Fährmann
bc25636e63 [patreon] fix bootstrap data extraction (#5624)
again
2024-05-22 00:17:49 +02:00
Mike Fährmann
67c99b1366 [patreon] prevent HttpError for stream.mux.com URLs 2024-01-21 22:50:40 +01:00
Mike Fährmann
2dcfb012ea [patreon] download 'm3u8' manifests with ytdl 2024-01-12 02:33:27 +01:00
Mike Fährmann
1c68b7df01 [patreon] fix KeyError (#5048) 2024-01-11 17:56:47 +01:00
Mike Fährmann
6cd5e6adad [patreon] fix bootstrap data extraction (#4904) 2023-12-15 18:24:52 +01:00
Tobi823
66cbe9da41 - fix style check failure "line to long" 2023-12-10 16:24:00 +01:00
Tobi823
244444b194 - adapt code to current code style 2023-12-10 16:22:32 +01:00
Tobi823
fd06255f93 - reformat and refactor to pass tests 2023-12-10 16:17:34 +01:00
Tobi823
5ff7106d4f - add code for the situation when Patreon is using window.patreon = wrapInProxy({"bootstrap":' to store metadata
- refactor code to make it more readable
- output page content when the HTML structure is unknown (to make debugging easier)
2023-12-10 16:10:46 +01:00
Mike Fährmann
007c433677 [patreon] support 'id:<campaign_id>' in place of a user name
https://patreon.com/id:12345
… and remove 'campaign-id' config option
2023-11-04 00:17:41 +01:00
Mike Fährmann
4730de163f [patreon] refactor _extract_bootstrap() 2023-10-29 15:57:21 +01:00
Tobias Hellmann
28ada11cba Try to parse newer HTTP response from Patreon 2023-10-28 22:27:26 +02:00
Mike Fährmann
12a800ce21 [patreon] improve 'campaign_id' handling (#4699, #4715)
- add ways to directly specify a 'campaign_id'
  - 'campaign-id' config option
  - 'c' or 'campaign_id' URL query parameter
- more descriptive error messages
- show 'campaign_id' value in debug log
2023-10-25 17:18:06 +02:00
Mike Fährmann
63db54b905 [patreon] update 'campaign_id' path (#4639) 2023-10-09 09:41:38 +02:00
Mike Fährmann
7592c5e566 [patreon] fix extraction (#4547) 2023-09-19 13:18:47 +02:00
Mike Fährmann
3ecb512722 send Referer headers by default 2023-09-19 00:02:04 +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
d97b8c2fba consistent cookie-related names
- rename every cookie variable or method to 'cookies_*'
- simplify '.session.cookies' to just '.cookies'
- more consistent 'login()' structure
2023-07-22 01:20:50 +02:00