Add statistics and data-consistency menus, recently-added folder
This commit is contained in:
@@ -1,27 +1,12 @@
|
||||
# systemd oneshot service for the standalone "Tipy dne" generator.
|
||||
# Runs scripts/tipy_dne.py once; schedule it with the matching tipy-dne.timer.
|
||||
#
|
||||
# Install (as root):
|
||||
# cp scripts/tipy_dne.py /opt/curator/tipy_dne.py
|
||||
# cp scripts/tipy-dne.service scripts/tipy-dne.timer /etc/systemd/system/
|
||||
# # edit User/paths below to match the server, then:
|
||||
# systemctl daemon-reload
|
||||
# systemctl enable --now tipy-dne.timer
|
||||
# systemctl start tipy-dne.service # run once now to test
|
||||
#
|
||||
# Adjust: User/Group, the script path, and --pool / --output to your server.
|
||||
|
||||
[Unit]
|
||||
Description=Generate the "Tipy dne" Filmotéka folder
|
||||
Description=Generate the "Tipy dne" Filmoteka folder
|
||||
After=local-fs.target remote-fs.target
|
||||
RequiresMountsFor=/mnt/c34a47db-0bdf-4c4c-8187-14711c022cf0
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=honza
|
||||
Group=honza
|
||||
ExecStart=/usr/bin/python3 /opt/curator/tipy_dne.py \
|
||||
--pool /mnt/RHD-SRV2/Filmoteka \
|
||||
--output /mnt/RHD-SRV2/Filmy/Filmoteka_v2 \
|
||||
--count 15
|
||||
ExecStart=/usr/bin/python3 /mnt/c34a47db-0bdf-4c4c-8187-14711c022cf0/Filmotéka/Tools/tipy_dne.py --pool /mnt/c34a47db-0bdf-4c4c-8187-14711c022cf0/Filmotéka --output /mnt/c34a47db-0bdf-4c4c-8187-14711c022cf0/Filmy --count 15
|
||||
Nice=10
|
||||
NoNewPrivileges=true
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
# systemd timer for tipy-dne.service — regenerates "Tipy dne" daily.
|
||||
# Enable with: systemctl enable --now tipy-dne.timer
|
||||
|
||||
[Unit]
|
||||
Description=Daily regeneration of the "Tipy dne" Filmotéka folder
|
||||
Description=Daily regeneration of the "Tipy dne" Filmoteka folder
|
||||
|
||||
[Timer]
|
||||
# Every day at 06:00 (server local time). Change as needed, e.g. "hourly".
|
||||
OnCalendar=*-*-* 06:00:00
|
||||
# Catch up if the machine was off at the scheduled time.
|
||||
# Kazdy den o pulnoci (mistni cas serveru = CEST/CET)
|
||||
OnCalendar=*-*-* 00:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ from pathlib import Path
|
||||
|
||||
INDEX_FILENAME = ".Curator.!index"
|
||||
GLOBAL_CONFIG_FILENAME = ".Curator.!gtag"
|
||||
DEFAULT_SUBFOLDER = "Tipy dne"
|
||||
DEFAULT_SUBFOLDER = "- Tipy dne" # "- " prefix sorts it first in DLNA/TV browsers
|
||||
DEFAULT_COUNT = 15
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user