Compare commits
No commits in common. "c147b56747f3afe18cf521960b2087c32933fe04" and "86339a88e4ccdbd00f028f9141f7a0d21982b142" have entirely different histories.
c147b56747
...
86339a88e4
2
.gitignore
vendored
2
.gitignore
vendored
@ -238,5 +238,3 @@ cython_debug/
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
|
||||
# ---> kodi-nfo-feeder
|
||||
config.ini
|
17
config.ini
Normal file
17
config.ini
Normal file
@ -0,0 +1,17 @@
|
||||
[DEFAULT]
|
||||
self_name = kodi-nfo-feeder
|
||||
ignored_target_file_exts = .jpg, .jpeg, .png, .nfo
|
||||
title_regex_search =
|
||||
title_regex_replace =
|
||||
do_seasons = yes
|
||||
|
||||
[maus]
|
||||
watch_dir = /var/lib/kodi-nfo-feeder/watch
|
||||
output_dir = /var/lib/kodi-nfo-feeder/output
|
||||
title_regex_search =
|
||||
title_regex_replace =
|
||||
do_seasons = yes
|
||||
run_cmd =
|
||||
kodi_jsonrpc_address = http://localhost:8080/jsonrpc
|
||||
kodi_jsonrpc_username =
|
||||
kodi_jsonrpc_password =
|
@ -1,17 +0,0 @@
|
||||
[DEFAULT]
|
||||
self_name = kodi-nfo-feeder
|
||||
ignored_target_file_exts = .jpg, .jpeg, .png, .nfo
|
||||
title_regex_search =
|
||||
title_regex_replace =
|
||||
do_seasons = yes
|
||||
|
||||
[maus]
|
||||
watch_dir = /tmp/kodi-nfo-feeder/maus
|
||||
output_dir = /srv/kodi/tv-shows/scraper-local/Die Sendung mit der Maus (1971)
|
||||
title_regex_search = (\w)-(\s)
|
||||
title_regex_replace = \1 -\2
|
||||
do_seasons = yes
|
||||
run_cmd = touch /srv/kodi/latest-state-change
|
||||
kodi_jsonrpc_address = http://localhost:8080/jsonrpc
|
||||
kodi_jsonrpc_username = username
|
||||
kodi_jsonrpc_password = password
|
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=NFO feeder service for Kodi's "local" scraper
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
Environment='PATH=/usr/local/sbin:/usr/local/bin:/usr/bin'
|
||||
ExecStart=/opt/miniconda3/envs/kodi-nfo-feeder/bin/python /opt/python/kodi-nfo-feeder/dev/kodi-nfo-feeder.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -91,7 +91,7 @@ p = inflect.engine()
|
||||
ini_defaults = []
|
||||
internal_defaults = {default["key"]: default["value"] for default in CONST.CFG_KNOWN_DEFAULTS}
|
||||
config = ConfigParser(defaults=internal_defaults)
|
||||
config.read(CONST.CFG_DEFAULT_ABS_PATH)
|
||||
config.read(CONST.CFG_DEFAULT_FILENAME)
|
||||
ignored_target_file_exts_str = config.get(config.default_section, "ignored_target_file_exts")
|
||||
ignored_target_file_exts = re.split(r""",\s?|\s""", ignored_target_file_exts_str)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user