From c6f9d1e6177158d691e59d4d8b15bcf397d97575 Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Sat, 7 Feb 2026 12:29:55 -0500 Subject: [PATCH] Update .gitignore and settings configuration: add archived directory and settings template --- .gitignore | 3 +- settings/tvsync_settings.cfg | 2 +- settings/tvsync_settings.cfg.template | 86 +++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 settings/tvsync_settings.cfg.template diff --git a/.gitignore b/.gitignore index 778b868..96b66b3 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ dbsync.log.* /temp/post_tvmaze_updates.json.* /temp/tvmaze_updates.json /temp.skip_ids.txt -/archived \ No newline at end of file +/archived +/settings/tvsync_settings.cfg \ No newline at end of file diff --git a/settings/tvsync_settings.cfg b/settings/tvsync_settings.cfg index cafbc24..633f231 100644 --- a/settings/tvsync_settings.cfg +++ b/settings/tvsync_settings.cfg @@ -5,7 +5,7 @@ loglevel=info sqlserver_driver=ODBC Driver 13 for SQL Server hostname=192.168.128.3 mghostname=192.168.128.24 -dbname=media_dbsync2 +dbname=media_dbsync mgdbname=tvdata mysqlusername=root pgsqlusername=postgres diff --git a/settings/tvsync_settings.cfg.template b/settings/tvsync_settings.cfg.template new file mode 100644 index 0000000..633f231 --- /dev/null +++ b/settings/tvsync_settings.cfg.template @@ -0,0 +1,86 @@ +[global] +loglevel=info + +[dbsettings] +sqlserver_driver=ODBC Driver 13 for SQL Server +hostname=192.168.128.3 +mghostname=192.168.128.24 +dbname=media_dbsync +mgdbname=tvdata +mysqlusername=root +pgsqlusername=postgres +mssqlusername=sa +mysqlpassword=Optimus0329 +pgsqlpassword=Optimus0329 +mssqlpassword=Optimus0329 +pgsqlport=5432 +mysqlport=3306 +mssqlport=1433 +mgport=27017 + +[api] +type=tvmaze + +[json] +seriesapi=http://api.tvmaze.com/shows?page= +showapi=http://api.tvmaze.com/shows/ +episodeapi=http://api.tvmaze.com/shows//episodes +aliasapi=http://api.tvmaze.com/shows//akas +castapi=http://api.tvmaze.com/shows//cast +crewapi=http://api.tvmaze.com/shows//crew +creditsapi=http://api.tvmaze.com/people//castcredits +updatesapi=http://api.tvmaze.com/updates/shows + +[database] +dbtype=pgsql +updateschema=updates +initialize=0 +initload=0 + +[updatetype] +#valid values are: daily, weekly, monthly, full, custom +type=full +full=full +monthly=1219200 +weekly=604800 +daily=86400 +12h=23200 +6h = 16600 +# If settype = custom set below line to the number of seconds you want updates for. +custom=4150 +cacheskip = 1 +refreshcache = 0 + +# Field names for series insert query +# field01: nextepisode, +# field02: previousepisode, +# field03: mazeurl, +# field04: tvdbid, +# field05: tvrageid, +# field06: genres, +# field07: tvmazeid, +# field08: mediumimage, +# field09: originalimage, +# field10: showlanguage, +# field11: seriesname, +# field12: webchannelcountrycode, +# field13: webchannelcountryname, +# field14: webchannelcountrytimezone, +# field15: webchannelid, +# field16: webchannelname, +# field17: networkcountrycode, +# field18: networkcountryname, +# field19: networkcountrytimezone, +# field20: networkid, +# field21: networkname, +# field22: premierdate, +# field23: showrating, +# field24: showruntime, +# field25: airdays, +# field26: scheduletime, +# field27: showstatus, +# field28: showoverview, +# field29: showtype, +# field30: showupdated, +# field31: apilink, +# field32: showweight