diff --git a/tasks/media/scrobbling.yml b/tasks/media/scrobbling.yml index 789d362..581f356 100644 --- a/tasks/media/scrobbling.yml +++ b/tasks/media/scrobbling.yml @@ -13,6 +13,11 @@ src: templates/scrobbling/lastfm.json.j2 dest: "{{ data_dir }}/scrobbling/multi-scrobbler/lastfm.json" +- name: Create Scrobbler Client Configuration + template: + src: templates/scrobbling/koito.json.j2 + dest: "{{ data_dir }}/scrobbling/multi-scrobbler/koito.json" + - name: Deploy Kotio include_role: name: docker diff --git a/templates/scrobbling/koito.json.j2 b/templates/scrobbling/koito.json.j2 new file mode 100644 index 0000000..a397802 --- /dev/null +++ b/templates/scrobbling/koito.json.j2 @@ -0,0 +1,13 @@ +[ + { + "id": "koitoClient", + "name": "koito", + "enable": true, + "configureAs": "client", + "data": { + "token": "{{ SCROBBLER_KOITO_TOKEN }}", + "username": "{{ SCROBBLER_KOITO_USER }}", + "url": "{{ SCROBBLER_KOITO_URL }}" + } + } +] \ No newline at end of file diff --git a/templates/scrobbling/lastfm.json.j2 b/templates/scrobbling/lastfm.json.j2 index e3fd48d..7cc87ea 100644 --- a/templates/scrobbling/lastfm.json.j2 +++ b/templates/scrobbling/lastfm.json.j2 @@ -1,5 +1,6 @@ [ { + "id": "lastFmSource", "name": "lastFm", "enable": true, "configureAs": "source",