1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00
Commit Graph

28 Commits

Author SHA1 Message Date
Mike Fährmann
eef5beb841
[pp:metadata] fix using '..' in directories on Windows (#5942, #6094) 2024-08-27 14:38:40 +02:00
Mike Fährmann
1bdb0f7a49
[path] leave '..' segments as is (#5728) 2024-08-01 13:35:42 +02:00
Mike Fährmann
1656c9287d
[pp:metadata] fix 'directory' when file directory has conditions (#5728) 2024-07-06 22:07:17 +02:00
Mike Fährmann
ba51c1a8e4
[path] fix 1ca2cf51 2024-06-29 02:41:56 +02:00
AyluinReymaer
de61b3b546
Update path.py 2024-06-29 00:58:03 +01:00
AyluinReymaer
91a989a172
path.py - fix system cannot move file to different drive
This fixes the below error message:

OSError(18, 'The system cannot move the file to a different disk drive')
2024-06-29 00:08:53 +01:00
blankie
909830f8ea
fix filename formatting silently failing under certain circumstances 2024-02-10 21:18:57 +11:00
Mike Fährmann
9d67655397
add "ascii+" as a special 'path-restrict' value (#4371) 2023-08-01 19:33:53 +02:00
Mike Fährmann
1aae72773f
put argument init on separate lines 2023-02-10 17:05:20 +01:00
Mike Fährmann
ca4742200b
use util.NONE as 'keyword-default' default value 2022-12-06 22:27:57 +01:00
Mike Fährmann
6afb3cc766
restore paths for archived files (#3362) 2022-12-06 22:01:37 +01:00
Mike Fährmann
d0b160461a
terrible workaround for errors with 'http-metadata' (#3334) 2022-12-04 19:36:21 +01:00
Mike Fährmann
374f14c28c
fix repeating paths for skipped files (#3203)
fixing the fix from e3260293
2022-11-13 19:34:59 +01:00
Mike Fährmann
e326029355
build path when skipping archived files
fixes bug from 8124c16a
2022-11-09 10:33:09 +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
7f30a0d7a7
add 'path-extended' option (#3021) 2022-10-08 15:41:39 +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
9c8647a4fd
fix 'part-directory' (#2576)
bug introduced in 99cb2872
2022-05-10 15:55:39 +02:00
Mike Fährmann
99cb28724f
delay directory creation (#2461, #2474)
Only call os.makedirs() when an open() call
fails with a FileNotFoundError

Might cause errors with some post processors etc,
but for now I was unable to find any.
2022-05-04 17:42:53 +02:00
Mike Fährmann
7958995398
[postprocessor:metadata] implement 'mtime' option (#2307) 2022-02-22 23:02:13 +01:00
Mike Fährmann
3b7c7daa76
improve UNC path handling (#2126)
always call 'abspath()' on the directory path to handle cases when the
current working directory is UNC and 'base-directory' is relative.
2021-12-30 22:22:19 +01:00
Mike Fährmann
ac80474371
handle UNC paths (#2113) 2021-12-19 04:52:00 +01:00
Mike Fährmann
cad85640de
move 'util.PathFormat' into its own 'path' module
to prevent circular imports between 'formatter' and 'util'
2021-09-27 21:29:37 +02:00
Mike Fährmann
841fd50242
move code into util.py 2017-03-28 13:12:44 +02:00
Mike Fährmann
e87e6fbc67
change some config keys
directory_fmt     -> directory
filename_fmt      -> filename
download-original -> original
2017-02-21 22:11:02 +01:00
Mike Fährmann
4f123b8513
code adjustments according to pep8 2017-01-30 19:40:15 +01:00
Mike Fährmann
14237142d8
use 'format_map()' 2016-10-02 13:51:54 +02:00
Mike Fährmann
29692c5784
get extension from Content-Type header if not provided 2016-09-30 12:32:48 +02:00