Skip to content

Commit b064c8b

Browse files
committed
Allow commas in title, but filter them by default
Commas are no good on Windows, so we keep the default in the sample config to filtered
1 parent 81916fe commit b064c8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

autoTatort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def checkForHDFile(url):
234234
if quality == -1 and "960" in mediaURL:
235235
mediaURL = checkForHDFile(mediaURL)
236236

237-
fileName = "".join([x if x.isalnum() or x in "- " else "" for x in title])
237+
fileName = "".join([x if x.isalnum() or x in ",- " else "" for x in title])
238238

239239
if titlePrependItemDate == 1:
240240
fileName = str(itemDate) + " - " + fileName

config.json.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
}
3737
],
3838
"titleFilters": [
39+
{
40+
"replace": ","
41+
},
3942
{
4043
"replace": " (Video tgl. ab 22 Uhr)"
4144
},

0 commit comments

Comments
 (0)