use extended format strings for archive keys

pull/2584/head
Mike Fährmann 2 years ago
parent 1c95530525
commit 61afa973b7
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -14,8 +14,8 @@
- [sexcom] add fallback for empty files ([#2485](https://github.com/mikf/gallery-dl/issues/2485))
- [twitter] improve syndication video selection ([#2354](https://github.com/mikf/gallery-dl/issues/2354))
- [twitter] fix various syndication issues ([#2499](https://github.com/mikf/gallery-dl/issues/2499), [#2354](https://github.com/mikf/gallery-dl/issues/2354))
- [weibo] fix infinite retries for deleted accounts ([#2521](https://github.com/mikf/gallery-dl/issues/2521))
- [vk] fix extraction ([#2512](https://github.com/mikf/gallery-dl/issues/2512))
- [weibo] fix infinite retries for deleted accounts ([#2521](https://github.com/mikf/gallery-dl/issues/2521))
- [postprocessor:ugoira] use compatible paths with mkvmerge ([#2487](https://github.com/mikf/gallery-dl/issues/2487))
- [postprocessor:ugoira] do not auto-select the `image2` demuxer ([#2492](https://github.com/mikf/gallery-dl/issues/2492))

@ -613,9 +613,7 @@ Type
Example
``"{id}_{offset}"``
Description
An alternative `format string`__ to build archive IDs with.
.. __: https://docs.python.org/3/library/string.html#format-string-syntax
An alternative `format string`_ to build archive IDs with.
extractor.*.archive-prefix

@ -22,7 +22,7 @@ import itertools
import urllib.parse
from http.cookiejar import Cookie
from email.utils import mktime_tz, parsedate_tz
from . import text, exception
from . import text, formatter, exception
def bencode(num, alphabet="0123456789"):
@ -700,7 +700,7 @@ class DownloadArchive():
self.close = con.close
self.cursor = con.cursor()
self.keygen = format_string.format_map
self.keygen = formatter.parse(format_string).format_map
self._cache_key = cache_key
try:

@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.21.2"
__version__ = "1.22.0-dev"

Loading…
Cancel
Save