Mike Fährmann
88f94190f4
[archive] move DownloadArchive into its own module
2024-05-10 01:05:28 +02:00
Mike Fährmann
0e730ba980
[pp:mtime] do not overwrite '_mtime' for None values ( #5439 )
2024-04-07 02:33:19 +02:00
Mike Fährmann
3346a377b3
[pp:ugoira] log errors for general exceptions
2024-04-06 17:00:48 +02:00
Mike Fährmann
9a8403917a
restore LD_LIBRARY_PATH for PyInstaller builds ( #5421 )
2024-04-06 16:58:33 +02:00
Mike Fährmann
92fbf09643
remove single quotes in some logging messages ( #4908 )
...
('FileNotFoundError: [Errno 2] No such file or directory: ''')
->
(FileNotFoundError: [Errno 2] No such file or directory: '')
2023-12-11 19:13:45 +01:00
Mike Fährmann
6402f2950f
[pp:metadata] ignore non-string tag values ( #4764 )
2023-11-04 17:33:14 +01:00
Mike Fährmann
72b18d701f
represent util.NONE as 'null' in JSON output
...
was '"None"' before
2023-11-02 15:23:28 +01:00
Mike Fährmann
67ba4ee842
[pp:exec] support more replacement fields for '--exec' ( #4633 )
...
- {_directory}
- {_filename}
- {_path} (alias for {})
2023-10-09 12:50:10 +02:00
Mike Fährmann
92f98e6f5e
'sys.exit' -> 'SystemExit'
2023-08-21 23:46:39 +02:00
Mike Fährmann
c1c73c0b0e
[pp:ugoira] add '"framerate": "uniform"' ( #4421 )
2023-08-21 19:43:47 +02:00
Mike Fährmann
2a3acd318a
[pp:ugoira] fix high frame rates ( #4421 )
...
only return an output frame rate for non-uniform ugoira
when the frame delay gcd is >= 10, i.e. 100 fps
2023-08-21 19:17:14 +02:00
Mike Fährmann
70bdf32a88
[pp:ugoira] extend 'ffmpeg-output' ( #4421 )
...
- when setting this option to a string value,
pass -hide-banner and -loglevel to FFmpeg
- change default to "error"
2023-08-21 18:19:53 +02:00
Mike Fährmann
0ef1fcab20
[postprocessor] update 'finalize' events
...
Add 'finalize-error' and 'finalize-success' events that trigger
depending on whether error(s) did or did not happen.
'finalize' itself now always triggers regardless of error status.
(was supposed to have the same behavior as the new 'finalize-success')
2023-08-10 19:46:37 +02:00
Mike Fährmann
15275b3524
[postprocessor:ugoira] restore 'libx264-prevent-odd' ( #4407 )
...
was accidentally removed in commit be9547a5
2023-08-10 18:32:52 +02:00
Mike Fährmann
6c9432165e
add return value to 'PostProcessor._init_archive()'
2023-07-24 14:32:25 +02:00
Mike Fährmann
54d974deb0
add 'python' post processor
...
similar to 'exec' but calls a Python function
2023-07-24 14:06:14 +02:00
Mike Fährmann
790dd365e1
[postprocessor:exec] support tilde expansion for 'command'
...
https://github.com/mikf/gallery-dl/issues/146#issuecomment-1544733532
2023-05-12 16:34:17 +02:00
Mike Fährmann
3905f05f00
[postprocessor:metadata] support putting keys in quotes
...
for mode 'modify' and 'delete'
based on fe41a2b1
2023-04-25 14:30:18 +02:00
Mike Fährmann
7459e4abce
[postprocessor:metadata] fix traversing more than 1 level deep
...
for mode 'modify' and 'delete'
2023-04-25 14:17:25 +02:00
Mike Fährmann
00f0233b28
[postprocessor:metadata] add 'skip' option ( #3786 )
2023-03-17 23:30:11 +01:00
Gray Manley
f33ac885a6
[pixiv] fix tag write when set to original
2023-02-19 00:09:05 -06:00
Mike Fährmann
b7337d810e
[postprocessor:metadata] add 'sort' and 'separators' options
2023-02-07 18:28:14 +01:00
Mike Fährmann
3436c6b117
[postprocessor:metadata] speed up JSON encoding
2023-02-06 12:35:28 +01:00
Mike Fährmann
762a68996b
implement 'archive-pragma' option
2023-02-05 17:00:31 +01:00
Mike Fährmann
78d3960a31
[postprocessor:exec] implement archive options ( #3584 )
2023-02-01 13:57:16 +01:00
Mike Fährmann
6b97dcf2e0
[postprocessor:metadata] add 'private' option
2022-11-20 15:27:36 +01:00
Mike Fährmann
8124c16a50
split 'build_path' from 'set_filename' and 'set_extension'
...
Do not automatically build a new path
when setting file metadata or updating its extension.
2022-11-08 17:03:24 +01:00
Mike Fährmann
e2401c96ee
[postprocessor:metadata] add '"mode": "jsonl"'
2022-11-07 15:46:35 +01:00
Mike Fährmann
895f36e53b
[postprocessor:metadata] add 'open' and 'encoding' options
2022-11-07 15:37:22 +01:00
Mike Fährmann
5a0b4cfab4
[postprocessor:metadata] don't ignore mode:json
...
fixes a bug introduced in b57015cf
where {"mode": "json", "format": "foobar"}
would behave like mode:custom
2022-10-06 13:14:08 +02:00
Mike Fährmann
b57015cf0a
[postprocessor:metadata] assume 'mode: custom' when format is set
...
{"name": "metadata", "format": "foobar"}
will now implicitly use mode:custom and no longer mode:json like before
2022-10-04 22:35:26 +02:00
Mike Fährmann
b36125333f
[postprocessor:zip] implement 'files' option ( #2872 )
2022-09-09 11:41:27 +02:00
Mike Fährmann
590f2e270c
[postprocessor:metadata] fix error with '..' in directory
2022-08-14 17:44:46 +02:00
Mike Fährmann
0c73914848
[postprocessor:metadata] implement 'mode: modify' ( #2640 )
2022-07-19 12:24:26 +02:00
Mike Fährmann
f3de6b7a87
[postprocessor:metadata] implement 'mode: delete' ( #2640 )
2022-07-19 00:57:29 +02:00
Mike Fährmann
9704c04172
[postprocessor:zip] ensure target directory exists ( #2758 )
2022-07-14 11:55:39 +02:00
bradenhilton
117eeefda0
[postprocessor:mtime] add 'value' option ( #2739 )
2022-07-08 20:56:01 +02:00
Mike Fährmann
124b5c6410
[postprocessor:ugoira] enable 'mtime' by default ( #2714 )
2022-07-01 20:59:19 +02:00
Mike Fährmann
5b43faffed
[postprocessor:metadata] write to stdout by setting filename to "-"
...
(#2624 )
2022-05-30 21:17:31 +02:00
Mike Fährmann
6ca998fc2b
[postprocessor:ugoira] ensure target directory exists ( #2576 )
...
another bug created by 99cb2872
in combination with 'part-directory'
2022-05-11 15:08:17 +02:00
Mike Fährmann
d1bb7fae2d
remove 'exist_ok=True' argument from several os.makedirs calls
...
makedirs in those places is only meant to create missing directories,
anything should be considered an error
2022-05-11 15:04:47 +02:00
Mike Fährmann
dc22a47c99
[postprocessor:ugoira] report errors with ffmpeg/mkvmerge ( #2487 )
2022-04-18 18:40:28 +02:00
Mike Fährmann
24ea1398bc
[postprocessor:ugoira] do not auto-select image2 demuxer ( #2492 )
2022-04-12 21:47:47 +02:00
Mike Fährmann
3524c599b8
[postprocessor:ugoira] use compatible paths with mkvmerge ( #2487 )
2022-04-10 13:26:15 +02:00
Mike Fährmann
a164f4b91e
[postprocessor:ugoira] put '=' before mkvmerge input filename
2022-03-27 14:46:03 +02:00
Mike Fährmann
5c2d953766
[postprocessor:ugoira] auto-select demuxer by default
2022-03-26 21:10:59 +01:00
Mike Fährmann
e45792a5c4
[postprocessor:ugoira] insert extra frame
...
into files generated with the 'image2' demuxer to compensate for the
last frame not being shown for as long as it should.
This only happens for ugoira with non-uniform delays between frames and
only when 'repeat-last-frame' is enabled.
2022-03-26 18:04:12 +01:00
Mike Fährmann
e718dd7b32
[postprocessor:ugoira] support setting timecodes with mkvmerge
...
by selecting the "mkvmerge" demuxer
(#1550 )
2022-03-26 12:41:55 +01:00
Mike Fährmann
e7b30866d0
[postprocessor:mtime] fix timestamps from datetime objects ( #2307 )
...
'datetime.timestamp()', which got used to convert datetime objects to
POSIX timestamps, assumes naive datetimes represent LOCAL time, while
datetimes in 'date' metadata fields represent UTC time.
Ref: https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp
> Naive datetime instances are assumed to represent local time
> you can obtain the POSIX timestamp by … calculating the timestamp directly
2022-03-23 23:05:14 +01:00
Mike Fährmann
40ce505420
[postprocessor:ugoira] add 'mtime' option ( #2307 )
2022-03-21 10:02:29 +01:00