multimedia: Move access tokens to dotter templating

Moved usernames and passwords into local variables in dotter
to be able to commit the files nonetheless. Thus makes use
of dotter templating for beets and mopidy.

Empty example configuration can be found in local.toml in the
dotter directory.
This commit is contained in:
Marty Oehme 2023-10-12 09:19:31 +02:00
parent 662549b6b0
commit 835acd40ab
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 15 additions and 1 deletions

View file

@ -4,3 +4,10 @@ packages = ["workstation"]
[files]
[variables]
multimedia_beets_musicbrainz_user = ""
multimedia_beets_musicbrainz_pass = ""
multimedia_mopidy_subidy_url = ""
multimedia_mopidy_subidy_user = ""
multimedia_mopidy_subidy_pass = ""

View file

@ -48,6 +48,8 @@ item_fields:
musicbrainz:
extra_tags: [year, catalognum, country, media, label]
user: {{multimedia_beets_musicbrainz_user}}
pass: {{multimedia_beets_musicbrainz_pass}}
auto: yes
remove: yes

View file

@ -146,7 +146,7 @@ enabled = false
#default_playlist_scheme = m3u
[local]
#enabled = true
enabled = false
#max_search_results = 100
media_dir = $XDG_MUSIC_DIR
scan_timeout = 5000
@ -182,6 +182,11 @@ scan_timeout = 5000
# *.jpeg
# *.png
[subidy]
url={{multimedia_mopidy_subidy_url}}
username={{multimedia_mopidy_subidy_user}}
password={{multimedia_mopidy_subidy_pass}}
[mpris]
#enabled = true
#bus_type = session