Commit Graph

354 Commits

Author SHA1 Message Date
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
8227e21257 [deviantart:tiptap] fix TypeError when 'textAlign' is null (#7639) 2025-06-07 19:06:43 +02:00
Mike Fährmann
b5c88b3d3e replace standard library 're' uses with 'util.re()' 2025-06-06 13:24:52 +02:00
Mike Fährmann
204c94ccb4 [deviantart:tag] fix 'username' (#7587) 2025-05-26 21:34:06 +02:00
Mike Fährmann
e199396872 [common] simplify 'user' extractors by using 'Dispatch' mixin 2025-05-24 18:04:53 +02:00
Mike Fährmann
b81fc5c124 replace text.rextract() with rextr() 2025-05-23 18:28:58 +02:00
Mike Fährmann
0725eab34f [deviantart] unescape \' in JSON data (#6653)
https://github.com/mikf/gallery-dl/issues/6653#issuecomment-2833783238
2025-04-28 09:42:16 +02:00
Mike Fährmann
ee1ba088b8 [deviantart:stash] extract more metadata (#7397)
- stash_id
- stash_name
- stash_description
- stash_folder
- stash_parent
2025-04-22 13:06:05 +02:00
Mike Fährmann
99afe58a6e [deviantart] fix multi-image URLs (#6653)
https://github.com/mikf/gallery-dl/issues/6653#issuecomment-2816560271
2025-04-20 21:33:45 +02:00
Mike Fährmann
03b1d42dfd [deviantart] simplify 'additionalMedia' extraction 2025-04-20 21:08:21 +02:00
Mike Fährmann
1396ea6352 [deviantart] fix "KeyError: 'has_subfolders'" (#7272) 2025-03-30 19:42:52 +02:00
Mike Fährmann
1e498a04f3 [deviantart] update
- use 'index_file' for additional file IDs
- rename 'img_count' to 'count'
- update 'archive_fmt'
2025-03-28 17:15:56 +01:00
Bishop Red
af23894911 Fixing formatting of a line that is too long 2025-03-27 21:44:36 -06:00
Bishop Red
a854d6060e Removing a test flag (is_downloadable) to true. 2025-03-27 21:41:46 -06:00
Bishop Red
3cbb88b4b5 Adding support for the Multi Image Gallery 2025-03-27 21:40:53 -06:00
Bishop Red
17c1badb78 Adding support for the Multi Image Gallery 2025-03-27 21:34:15 -06:00
Mike Fährmann
b52c21186b [deviantart] add 'subfolders' option 2025-03-23 17:58:58 +01:00
Mike Fährmann
ffdec0cc04 [deviantart] match subfolders by name 2025-03-23 17:41:42 +01:00
Mike Fährmann
9a64c3d5fd [deviantart] update code formatting 2025-03-23 17:41:26 +01:00
Bishop Red
e454ded442 Adding functionality for subfolder support from Deviant Art 2025-03-21 22:39:06 -06:00
Mike Fährmann
6532cf9075 [deviantart] match '/gallery/recommended-for-you' URLs (#7168) 2025-03-17 09:49:11 +01:00
Mike Fährmann
8bdd543935 [deviantart:stash] fix legacy sta.sh links (#7181)
follow redirect instead of rewriting them to deviantart.com/stash/…
2025-03-16 19:38:56 +01:00
Mike Fährmann
4904186b70 [deviantart] prevent crash when accessing premium_folder_data (#6873)
e.g. for inactive accounts
2025-01-24 19:08:32 +01:00
Mike Fährmann
a53ce6103c [deviantart:tiptap] smaller fixes
- fix text indentation in headings
- fix deviations formats without 'c' path
- support custom 'target' in links
2025-01-03 22:48:06 +01:00
Mike Fährmann
bd7320fb7d [deviantart:tiptap] support more content block types
- anchor
- blockquote
- da-gif
- da-video
- lists
    - listItem
    - orderedList
    - bulletList
- text indentation
2025-01-02 14:17:32 +01:00
Mike Fährmann
5c5b6d6276 [deviantart:tiptap] fix deviation embeds without 'token' 2024-12-28 19:47:05 +01:00
Mike Fährmann
6059ffccf8 [deviantart] improve 'tiptap' to HTML conversion (#6686)
- fix "KeyError: 'attrs'" for links without 'href'
- support 'strike' text markers
- support 'heading' content blocks
2024-12-20 16:45:19 +01:00
Mike Fährmann
7916c8bf77 allow passing cookies to OAuth extractors
partially revert ce54b8c04c
2024-11-09 18:06:27 +01:00
Mike Fährmann
36883e458e use 'v[0] == "c"' instead of 'v.startswith("c")' 2024-10-15 08:24:06 +02:00
Mike Fährmann
d68bb78f44 use 'True if COND else False' for bool conversions
faster than 'bool(COND)', especially on older Pythons < 3.11
2024-10-14 20:57:47 +02:00
Mike Fährmann
5dd17910d1 [deviantart] fix sta.sh folder extraction 2024-10-11 09:51:20 +02:00
Mike Fährmann
cfb7b3dd71 [deviantart] improve 'tiptap' conversion (#6207)
- support literature link embeds
- support @ mentions
- support more text styles
2024-10-09 20:59:36 +02:00
Mike Fährmann
a9671f160b [deviantart] support converting 'tiptap' markup to HTML (#6207) 2024-10-05 23:43:32 +02:00
Mike Fährmann
7dbd53e9b4 [deviantart] extract journal HTML from webpage (#6254, #6207, #6196) 2024-10-01 21:47:14 +02:00
Mike Fährmann
ed859f05ed [deviantart] fix & improve journal/literature extraction (#6254, #6207)
fetch text from HTML __INITIAL_STATE__,
since the API doesn't reliably work and is unusable for sta.sh journals
2024-10-01 14:36:49 +02:00
Mike Fährmann
bc11dc0de2 [deviantart] add 'previews' option (#3782, #6124) 2024-09-27 10:41:26 +02:00
Mike Fährmann
928e170721 [deviantart] work around OAuth API returning empty journal texts
(#6196, #6207, #5916)
2024-09-27 10:41:26 +02:00
Mike Fährmann
a9dc7a6f98 [deviantart] warn about empty journal texts (#5916)
https://github.com/mikf/gallery-dl/issues/5916#issuecomment-2351069092
2024-09-16 10:12:25 +02:00
Mike Fährmann
0b53f3d0e9 [deviantart] fix '"original": "images"' (#6124) 2024-09-02 15:15:37 +02:00
Mike Fährmann
3bffe7a8bd [deviantart] fix 'manual' cursor-based pagination (#6079) 2024-08-23 16:03:38 +02:00
Mike Fährmann
269b2808f1 [deviantart] fix "KeyError - 'category'" (#5960, #5961)
'deviation' objects returned by the OAuth API no longer include a
'category' or 'category_path' value.
2024-08-08 09:34:51 +02:00
Mike Fährmann
bb07313227 [deviantart] try to work around journal/status API changes (#5916)
The new /user/profile/posts endpoint is documented to
"return all journals & status updates for a given user in a single feed"
but it does not do this.

There are usually several or even all status updates missing.
2024-08-03 13:17:27 +02:00
Mike Fährmann
2bf76461ce [deviantart:following] use OAuth API endpoint (#2511) 2024-07-31 17:21:39 +02:00
Mike Fährmann
e17b1d5073 [deviantart] fix 2c8aa9b2 (#5696) 2024-06-08 02:00:36 +02:00
Mike Fährmann
2c8aa9b2de [deviantart] fix watching module ID extraction (#5696) 2024-06-06 15:21:04 +02:00
Mike Fährmann
141a93c8fd [docs] update docs/configuration links (#5059, #5369, #5423) 2024-04-13 02:18:44 +02:00
Mike Fährmann
925123e007 [deviantart] handle CloudFront blocks in general (#5363)
This was already done for non-OAuth requests (#655)
but CF is now blocking OAuth API requests as well.
2024-03-23 15:50:24 +01:00
Mike Fährmann
a650fd3177 [deviantart] improve 'index' extraction for stash files (#5335) 2024-03-22 02:53:54 +01:00