Преглед на файлове

Remove jellyfin and spotify from Mopidy conf

Colin Powell преди 2 години
родител
ревизия
96ab311cdf
променени са 2 файла, в които са добавени 30 реда и са изтрити 31 реда
  1. 3 3
      ansible/roles/mopidy/tasks/main.yml
  2. 27 28
      ansible/roles/mopidy/templates/mopidy.conf.j2

+ 3 - 3
ansible/roles/mopidy/tasks/main.yml

@@ -1,12 +1,12 @@
 ---
 - name: Dependencies installed
   community.general.pkgng:
-    name: py38-pip py38-sqlite3 py38-gstreamer1 avahi-daemon
+    name: py39-pip py39-sqlite3 py39-gstreamer1 avahi-app gstreamer1-plugins-flac gstreamer1-plugins-wavpack gstreamer1-plugins-mpg123 gstreamer1-libav
     state: latest
 
 - name: Dependencies installed
   apt:
-    name: mopidy,mopidy-spotify,mopidy-soundcloud,mopidy-mpd,mopidy-podcast,mopidy-tunein,mopidy-local
+    name: mopidy,mopidy-spotify,mopidy-soundcloud,mopidy-mpd,mopidy-Iris,mopidy-tunein,mopidy-local,mopidy-scrobbler
     state: latest
 
 - name: mDNS disabled
@@ -47,7 +47,7 @@
     state: directory
 
 - name: Mopidy dependencies up-to-date
-  shell: "pip3 install mopidy-iris mopidy-muse mopidy-musicbox-webclient mopidy-mowecl mopidy-mobile mopidy-party mopidy-tidal mopidy-mpd mopidy-tunein mopidy-jellyfin mopidy-bookmarks mopidy-local"
+  shell: "pip3 install mopidy-iris mopidy-muse mopidy-musicbox-webclient mopidy-mowecl mopidy-mobile mopidy-party mopidy-mpd mopidy-tunein mopidy-jellyfin mopidy-bookmarks mopidy-local"
 
 - name: Mopidy settings installed
   template:

+ 27 - 28
ansible/roles/mopidy/templates/mopidy.conf.j2

@@ -10,6 +10,9 @@ media_dirs =
     /var/lib/mopidy/media
 follow_symlinks = true
 
+[local]
+media_dir = /var/lib/mopidy/media/music
+
 [m3u]
 playlists_dir = /var/lib/mopidy/playlists
 
@@ -45,40 +48,36 @@ zeroconf = Mopidy MPD server on $hostname
 command_blacklist = listall,listallinfo
 default_playlist_scheme = m3u
 
-[jellyfin]
-hostname = jellyfin.service
-username = secstate
-password = {{mopidy_jellyfin_password}}
-libraries = Music
-albumartistsort = False (Optional: will default to True if left undefined)
-album_format = {ProductionYear} - {Name} (Optional: will default to "{Name}" if left undefined)
-
-[spotify]
-username = 1259345154
-password = {{mopidy_spotify_pass}} 
-client_id = 35a0ba20-960d-4a0d-8051-0b5616052b90
-client_secret = {{mopidy_spotify_client_secret}}
+#[jellyfin]
+#hostname = jellyfin.service:8096
+#username = secstate
+#password = {{mopidy_jellyfin_password}}
+#libraries = Music
+#albumartistsort = False (Optional: will default to True if left undefined)
+#album_format = {ProductionYear} - {Name} (Optional: will default to "{Name}" if left undefined)
 
-[spotify_web]
-client_id = 35a0ba20-960d-4a0d-8051-0b5616052b90
-client_secret = {{mopidy_spotify_client_secret}}
+#[spotify]
+#username = 1259345154
+#password = {{mopidy_spotify_pass}}
+#client_id = 35a0ba20-960d-4a0d-8051-0b5616052b90
+#client_secret = {{mopidy_spotify_client_secret}}
 
-[soundcloud]
-auth_token = {{mopidy_soundcloud_auth_token}}
-
-[podcast]
-enabled = true
-browse_root = https://gpodder.net/user/secstate/list/secstates-list.opml
-browse_order = desc
-lookup_order = asc
-cache_size = 64
-cache_ttl = 86400
-timeout = 10
+#[spotify_web]
+#client_id = 35a0ba20-960d-4a0d-8051-0b5616052b90
+#client_secret = {{mopidy_spotify_client_secret}}
 
 [musicbox_webclient]
 enabled = true
 musicbox = true
 on_track_click = ADD_THIS_BOTTOM
 
+[scrobbler]
+#api_key = {{mopidy_lastfm_api_key}}
+#api_secret = {{mopidy_lastfm_secret}}
+username = powellc
+password = {{mopidy_lastfm_password}}
+
 [audio]
-output = lamemp3enc ! shout2send async=false mount=mopidy ip=icecast1.local port=8010 password=mainr0ot
+output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=127.0.0.1
+#output = lamemp3enc ! shout2send async=false mount=mopidy ip=icecast1.local port=8010 password=mainr0ot
+#output = tee name=t ! queue ! audioresample ! audio/x-raw,rate=48000,channels=2,format =S16LE ! audioconvert ! wavenc ! filesink location=/tmp/snapfifo t. ! queue ! lamemp3enc ! shout2send async=false mount=mopidy ip=icecast1.local port=8010 password=mainr0ot