summaryrefslogtreecommitdiffstats
path: root/gallery_dl/util.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-08-16 07:00:33 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-08-16 07:00:33 -0400
commit3d18761f620a294ea6c5bff13c5994b93b29f3ed (patch)
tree092fa6f8128bc187512be532801670417f215986 /gallery_dl/util.py
parenta6e995c093de8aae2e91a0787281bb34c0b871eb (diff)
New upstream version 1.30.3.upstream/1.30.3
Diffstat (limited to 'gallery_dl/util.py')
-rw-r--r--gallery_dl/util.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/gallery_dl/util.py b/gallery_dl/util.py
index 4027ac6..45ffc9c 100644
--- a/gallery_dl/util.py
+++ b/gallery_dl/util.py
@@ -512,15 +512,15 @@ def cookiestxt_store(fp, cookies):
value = cookie.value
domain = cookie.domain
- fp.write("\t".join((
- domain,
- "TRUE" if domain and domain[0] == "." else "FALSE",
- cookie.path,
- "TRUE" if cookie.secure else "FALSE",
- "0" if cookie.expires is None else str(cookie.expires),
- name,
- value + "\n",
- )))
+ fp.write(
+ f"{domain}\t"
+ f"{'TRUE' if domain and domain[0] == '.' else 'FALSE'}\t"
+ f"{cookie.path}\t"
+ f"{'TRUE' if cookie.secure else 'FALSE'}\t"
+ f"{'0' if cookie.expires is None else str(cookie.expires)}\t"
+ f"{name}\t"
+ f"{value}\n"
+ )
def code_to_language(code, default=None):