···11+---
22+title: Azuracast
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import AzuracastConfig from '!!raw-loader!@site/../config/azuracast.json.example';
1111+import ShouldScrobble from "@site/src/components/snippets/_should-scrobble.mdx"
1212+1313+:::tip[Scrobbling Threshold]
1414+1515+Azuracast may not correctly report track length or position. If this is the case you should reduce the "listened to" **duration** using [Scrobble Thresholds](#scrobble-thresholds) so that multi-scrobbler scrobbles correctly.
1616+1717+:::
1818+1919+The Azuracast server should have **Use High-Performance Now Playing Updates** enabled in _Administration -> System Settings_
2020+2121+#### URL
2222+2323+The URL used by MS to connect to Azuracast has the syntax:
2424+2525+```
2626+[ws|wss]://HOST:[PORT]
2727+```
2828+2929+MS will automatically add the path required for websockets, [`/api/live/nowplaying/websocket`](https://www.azuracast.com/docs/developers/now-playing-data/#websockets), to your URL if none is provided. If you use a reverse proxy with a path-based URL or otherwise need a custom path to access the websockets path correctly then explicitly provide it. Examples:
3030+3131+```
3232+URL From Config => MS Uses
3333+3434+'ws://192.168.0.101' => ws://192.168.0.101/api/live/nowplaying/websocket
3535+'ws://azura.mydomain.com' => ws://azura.mydomain.com.com/api/live/nowplaying/websocket
3636+'wss://mydomain.com/custom/azura/ws' => wss://mydomain.com/custom/azura/ws
3737+```
3838+3939+#### Scrobble Behavior
4040+4141+:::info
4242+4343+<ShouldScrobble filename="azuracast"/>
4444+4545+:::
4646+4747+Multi-scrobbler will set the default **scrobbling behavior** based on if either of these settings is configured:
4848+4949+* live status (`AZURA_LIVE` or `monitorWhenLive`) or
5050+* listener count (`AZURA_LISTENERS_NUM` or `monitorWhenListeners`)
5151+5252+If either is configured then MS will automatically scrobble based on when these conditions are met.
5353+5454+If neither is configured automatic scrobble defaults to **off** and you should either manually initiate it or explicitly set the default behavior.
5555+5656+## Configuration
5757+5858+<Tabs groupId="configType" queryString>
5959+ <TabItem value="env" label="ENV">
6060+ | Environmental Variable | Required? | Default | Description |
6161+ | :--------------------- | :-------- | :------ | ---------------------------------------------------------------------------------------------- |
6262+ | `AZ_URL` | Yes | | Azuracast URL *without station name* |
6363+ | `AZ_STATION` | Yes | | The station name shown on the public page |
6464+ | `AZURA_LIVE` | No | Yes | Only scrobble when station status is ONLINE |
6565+ | `AZURA_LISTENERS_NUM` | No | `true` | Only scrobble if station has any listeners (`true`) or listeners are equal-to/greater-than `X` |
6666+ </TabItem>
6767+ <TabItem value="file" label="File">
6868+6969+ <CodeBlock title="CONFIG_DIR/azuracast.json" language="json5">{AzuracastConfig}</CodeBlock>
7070+7171+7272+ or <SchemaLink lower objectName="AzuracastSourceConfig"/>
7373+ </TabItem>
7474+ <TabItem value="aio" label="AIO">
7575+7676+ <AIOExample data={AzuracastConfig} name="azuracast"/>
7777+7878+7979+ or <SchemaLink lower objectName="AzuracastSourceConfig"/>
8080+ </TabItem>
8181+</Tabs>
8282+
+153
docsite/docs/configuration/sources/deezer.mdx
···11+---
22+title: Deezer
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import DeezerConfig from '!!raw-loader!@site/../config/deezer.json.example';
1111+import DeezerDeprecatedConfig from '!!raw-loader!@site/../config/deezer-deprecated.json.example';
1212+1313+<Tabs groupId="deezerSource" queryString>
1414+ <TabItem value="arl" label="Unofficial ARL">
1515+ :::warning
1616+1717+ This Source uses unofficial methods to access Deezer data that are likely in violation of Deezer's TOS. Deezer may change or remove these methods at any time, breaking functionality. Use this Source at your own risk.
1818+1919+ :::
2020+2121+ :::info
2222+2323+ This Source will work only if you have a **Premium** Deezer account.
2424+2525+ :::
2626+2727+ ### Retrieve ARL
2828+2929+ The `arl` is a browser cookie that Deezer uses to store your login information. Multi-scrobbler uses the `arl` value to make authorized requests to Deezer's API where it can retrieve listening history.
3030+3131+ **After logging into Deezer**, use one of the methods below to retrieve the `arl` cookie value:
3232+3333+ <Tabs groupId="arlRetrival">
3434+ <TabItem value="chrome" label="Chrome">
3535+ 1. On deezer.com, press F12 to open the Developer Tools window.
3636+ 2. Go to the Applications tab. Press the '>>' More tabs icon if it's hidden.
3737+ 3. Under the Cookies Filter, click deezer.com, then the text bar name `arl`.
3838+ 4. Copy all the contents shown in the **Cookie Value** pane.
3939+ </TabItem>
4040+ <TabItem value="firefox" label="Firefox">
4141+ 1. On deezer.com, hit Ctrl+Shift+I to open Developer Tools
4242+ 2. Go to the Storage Tab, then expand Cookies in the sidebar and select deezer.com
4343+ 3. Find the row with `arl` as the name, then double click the Value column and right click -> copy the value
4444+ </TabItem>
4545+ </Tabs>
4646+4747+ ## Configuration
4848+4949+ <Tabs groupId="configType" queryString>
5050+ <TabItem value="env" label="ENV">
5151+ | Environmental Variable | Required? | Default | Description |
5252+ | :--------------------- | --------- | ------- | ------------------------------------------------ |
5353+ | `DEEZER_ARL` | Yes | | The ARL cookie value retrieved from your browser |
5454+ </TabItem>
5555+ <TabItem value="file" label="File">
5656+5757+ <CodeBlock title="CONFIG_DIR/deezer.json" language="json5">{DeezerConfig}</CodeBlock>
5858+5959+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
6060+ </TabItem>
6161+ <TabItem value="aio" label="AIO">
6262+6363+ <AIOExample data={DeezerConfig} name="deezer"/>
6464+6565+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
6666+ </TabItem>
6767+ </Tabs>
6868+6969+ ### Duplicate detection
7070+7171+ Third party integrations with Deezer (Sonos) may cause Deezer to [report the same track many times in listening history.](https://github.com/FoxxMD/multi-scrobbler/pull/296#issuecomment-2922374738) If you experience this issue modify your Deezer Source config (file-based only) to include the option `"fuzzyDiscoveryIgnore": "aggressive"`
7272+7373+ <details>
7474+7575+ <summary>deezer.json example</summary>
7676+7777+ ```json title="deezer.json"
7878+ [
7979+ {
8080+ "name": "MyDeezer",
8181+ "data": {
8282+ "arl": "UOsRPjT3U5Dhaaup3x...",
8383+ },
8484+ "options": {
8585+ "fuzzyDiscoveryIgnore": "aggressive"
8686+ }
8787+ }
8888+ ]
8989+ ```
9090+ </details>
9191+9292+ This option comes with some trade-offs: MS will aggressively detect repeated tracks within a window of time that should eliminate all duplicates. However, this will also prevent *intentionally* repeated tracks from being scrobbled. See [this thread](https://github.com/FoxxMD/multi-scrobbler/pull/296#issuecomment-2970417070) for more information on how this works.
9393+9494+ </TabItem>
9595+ <TabItem value="official" label="Official API">
9696+9797+ :::warning
9898+9999+ **This Source is DEPRECATED because Deezer has dropped official API support.** This Source will **not** be removed but no further support or fixes will be given. [See this issue for more discussion.](https://github.com/FoxxMD/multi-scrobbler/issues/175#issuecomment-2296776625)
100100+101101+ Users cannot create new applications on Deezer Developers and there is no guarantee existing applications will continue to work.
102102+103103+ As a workaround consider:
104104+105105+ * Using the alternative [Deezer Source that uses unofficial, internal API via ARL](./?deezerSource=arl#deezer)
106106+ * Connect Deezer with Last.fm and then use [Last.fm as a Source](#lastfm-source)
107107+108108+ :::
109109+110110+ Create a new application at [Deezer Developers](https://developers.deezer.com/myapps)
111111+112112+ * Application Domain must be the same as your multi-scrobbler domain. Default is `localhost:9078`
113113+ * Redirect URL must end in `deezer/callback`
114114+ * Default would be `http://localhost:9078/deezer/callback`
115115+116116+ After application creation you should have credentials displayed in the "My Apps" dashboard. You will need:
117117+118118+ * **Application ID**
119119+ * **Secret Key**
120120+ * **Redirect URL** (if not the default)
121121+122122+ **If no access token is provided...**
123123+124124+ After starting multi-scrobbler with credentials in-place open the dashboard (`http://localhost:9078`) and find your Deezer source. Click **(Re)authenticate and (re)start polling** to start the login process. After login is complete polling will begin automatically.
125125+126126+ ###### Configuration
127127+128128+ <Tabs groupId="configType" queryString>
129129+ <TabItem value="env" label="ENV">
130130+ | Environmental Variable | Required? | Default | Description |
131131+ |------------------------|-----------|-----------------------------------------|-----------------------------------|
132132+ | `DEEZER_CLIENT_ID` | Yes | | Your **Application ID** |
133133+ | `DEEZER_CLIENT_SECRET` | Yes | | Your **Secret Key** |
134134+ | `DEEZER_REDIRECT_URI` | No | `http://localhost:9078/deezer/callback` | URI must end in `deezer/callback` |
135135+ </TabItem>
136136+ <TabItem value="file" label="File">
137137+138138+ <CodeBlock title="CONFIG_DIR/deezer.json" language="json5">{DeezerDeprecatedConfig}</CodeBlock>
139139+140140+141141+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
142142+ </TabItem>
143143+ <TabItem value="aio" label="AIO">
144144+145145+ <AIOExample data={DeezerDeprecatedConfig} name="deezer"/>
146146+147147+148148+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
149149+ </TabItem>
150150+ </Tabs>
151151+152152+ </TabItem>
153153+</Tabs>
···11+---
22+title: Google Cast (Chromecast)
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import ChromecastConfig from '!!raw-loader!@site/../config/chromecast.json.example';
1111+1212+If your media device can be **Cast** to using this button  on your phone/computer then multi-scrobbler can monitor it in order to scrobble music you play.
1313+1414+1515+:::note
1616+1717+Google Cast support is **experimental**. You may experience crashes and errors while using this Source. Please open an issue if you experience problems and include all information detailed in the issue template to help debug your issue.
1818+1919+:::
2020+2121+:::note
2222+2323+This source relies on common, **basic** music data provided by the cast device which will always be less exhaustive than data parsed from full source integrations. If there is an existing [Source](#source-configurations) it is recommended to configure for it and blacklist the app on Google Cast, rather than relying solely on Google Cast for scrobbling.
2424+2525+:::
2626+2727+#### Connecting Devices
2828+2929+Cast devices can be manually configured using file-based configuration OR automatically discovered using **mDNS.**
3030+3131+###### mDNS Discovery
3232+3333+The host machine running multi-scrobbler must be configured to allow [mDNS traffic on port 5353/UDP](https://book.hacktricks.xyz/network-services-pentesting/5353-udp-multicast-dns-mdns).
3434+3535+<details>
3636+3737+ <summary>OS Specific Instructions</summary>
3838+3939+<Tabs>
4040+ <TabItem value="linux" label="Linux">
4141+ **Docker**
4242+4343+ The host machine must have [avahi-daemon](https://avahi.org/) running to circumvent limitations with DNS resolution due to musl in Alpine. Most major linux distributions package avahi and many have it built-in. Once avahi is running you must pass D-Bus and the avahi daemon socket to your container like so:
4444+4545+ ```
4646+ docker run ... -v /var/run/dbus:/var/run/dbus -v /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket ... foxxmd/multi-scrobbler
4747+ ```
4848+4949+ **Flatpak/Nodejs**
5050+5151+ No additional steps are required.
5252+ </TabItem>
5353+ <TabItem value="windows" label="Windows">
5454+ **Docker**
5555+5656+ Unsupported at this time.
5757+5858+ **Nodejs**
5959+6060+ No additional steps are required.
6161+ </TabItem>
6262+</Tabs>
6363+6464+</details>
6565+6666+#### What Media Does MS Scrobble?
6767+6868+Cast devices report what type of media the current activity is [(see `metadata` property here)](https://developers.google.com/cast/docs/media/messages#MediaInformation). The reported type is dependent on the application playing the media to correctly report it, the cast device does not magically know what the media is. If an application does not report a type it is always classified as `unknown`.
6969+7070+**By default, MS will only track media that is reported as `MusicTrack`.**
7171+7272+##### Allow Unknown Media Type
7373+7474+Media with an Unknown (`Generic`) media type can be explicitly allowed by setting `"allowUnknownMedia": true` in the file-based configuration. This can also be configured to only allow unknown media types for specific applications by using a list of application names.
7575+7676+<details>
7777+7878+ <summary>Example</summary>
7979+8080+ ```json5 title="chromecast.json"
8181+ [
8282+ {
8383+ "name": "MyCast",
8484+ "type": "chromecast",
8585+ "data": {
8686+ // only allow unknown if app name contains any of these phrases
8787+ "allowUnknownMedia": ["smarttube", "default media receiver"]
8888+ },
8989+ }
9090+ ]
9191+ ```
9292+9393+</details>
9494+9595+##### Forcing Media Tracking
9696+9797+MS can be forced to track media from an application regardless of media type. This is useful if an application incorrectly reports a media type you are sure should be music. Set `"forceMediaRecognitionOn"` in the file-based configuration to a list of application names that should always be tracked.
9898+9999+<details>
100100+101101+ <summary>Example</summary>
102102+103103+ ```json5 title="chromecast.json"
104104+ [
105105+ {
106106+ "name": "MyCast",
107107+ "type": "chromecast",
108108+ "data": {
109109+ // media from applications that contains these phrases will always be tracked, regardless of media type reported
110110+ "forceMediaRecognitionOn": ["smarttube", "default media receiver"]
111111+ },
112112+ }
113113+ ]
114114+ ```
115115+116116+</details>
117117+118118+#### Cast Troubleshooting
119119+120120+Please include any/all logs with raw output if there are any errors encountered as this is critical to diagnosing issues.
121121+122122+To diagnose bad/incomplete track information or strange MS player behavior please turn on **payload logging** and include log output of the source running to help diagnose this issue. Either enable in config using the below example OR enable [Debug Mode.](#debug-mode)
123123+124124+<details>
125125+126126+ <summary>Example</summary>
127127+128128+ ```json5 title="chromecast.json"
129129+ [
130130+ {
131131+ "name": "MyCast",
132132+ "type": "chromecast",
133133+ "data": {
134134+ //...
135135+ },
136136+ "options": {
137137+ "logPayload": true
138138+ }
139139+ }
140140+ ]
141141+ ```
142142+143143+</details>
144144+145145+## Configuration
146146+147147+<Tabs groupId="configType" queryString>
148148+ <TabItem value="env" label="ENV">
149149+ :::note
150150+ [Manually configuring cast device connections](#connecting-devices) is only available through file-based config.
151151+ :::
152152+153153+ | Environmental Variable | Required? | Default | Description |
154154+ |------------------------|-----------|---------|--------------------------------------------------------------------------------------|
155155+ | CC_ENABLE | No | | Set to 'true' to enable Cast monitoring without needing to define other ENVs |
156156+ | CC_WHITELIST_DEVICES | No | | Only scrobble from these Cast devices. Comma-delimited list. EX mini-home, family-tv |
157157+ | CC_BLACKLIST_DEVICES | No | | Do not scrobble from these Cast devices. Comma-delimited list |
158158+ | CC_WHITELIST_APPS | No | | Only scrobble from these casted Apps. Comma-delimited list. EX spotify, pandora |
159159+ | CC_BLACKLIST_APPS | No | | Do not scrobble from these casted Apps. Comma-delimited list |
160160+ </TabItem>
161161+ <TabItem value="file" label="File">
162162+163163+ <details>
164164+165165+ <summary>Example</summary>
166166+167167+ <CodeBlock title="CONFIG_DIR/chromecast.json" language="json5">{ChromecastConfig}</CodeBlock>
168168+169169+ </details>
170170+171171+ or <SchemaLink lower objectName="ChromecastSourceConfig"/>
172172+ </TabItem>
173173+ <TabItem value="aio" label="AIO">
174174+ <details>
175175+176176+ <summary>Example</summary>
177177+178178+ <AIOExample data={ChromecastConfig} name="chromecast"/>
179179+180180+ </details>
181181+182182+ or <SchemaLink lower objectName="ChromecastSourceConfig"/>
183183+ </TabItem>
184184+</Tabs>
+97
docsite/docs/configuration/sources/icecast.mdx
···11+---
22+title: Icecast
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import IcecastConfig from '!!raw-loader!@site/../config/icecast.json.example';
1111+import ShouldScrobble from "@site/src/components/snippets/_should-scrobble.mdx"
1212+1313+Parse metadata from any Icecast Station (streams) to use for scrobbling.
1414+1515+:::note
1616+1717+There is no standard format for presenting track information in an Icecast stream and the majority of streams that do include metadata only use a single string (`StreamTitle`) from which metadata can be parsed.
1818+1919+Multi-scrobbler will do its best to parse Artist/Album/Track information from this data but the quality and consistency for this is solely based on how the Icecast broadcaster chooses to format their tracks.
2020+2121+:::
2222+2323+:::note[Scrobbling Behavior]
2424+2525+Multi-scrobbler cannot automatically determine if you are listening to a Station. Therefore, **automatic scrobbling for Icecast Sources is off by default.**
2626+2727+Use [Should Scrobble Behavior](/configuration/sources/overview#should-scrobble-behavior) to initiate scrobbling or configure automatic scrobble.
2828+2929+:::
3030+3131+:::tip[Scrobbling Threshold]
3232+3333+Icecast does not report track lengths so multi-scrobbler cannot determine if it should scrobble based on percent played. You should instead set a shorter "listened to" **duration** using [Scrobble Thresholds.](/configuration/sources/overview#scrobble-thresholds)
3434+3535+:::
3636+3737+3838+#### URL and Sources
3939+4040+The URL should be the URL you would use to stream audio.
4141+4242+Additional sources are supported based on those found in [`icecast-metadata-stats`](https://github.com/eshaz/icecast-metadata-js/tree/main/src/icecast-metadata-stats#supported-status-apis). To use these with automatic parsing [based on the regular URL](https://github.com/eshaz/icecast-metadata-js/tree/main/src/icecast-metadata-stats#options) include a `sources` array in your config the same way as shown in `icecast-metadata-stats`:
4343+4444+<details>
4545+4646+ <summary>Example</summary>
4747+4848+```json5 title="config.json"
4949+[
5050+ {
5151+ "name": "myIcy",
5252+ "enable": true,
5353+ "data": {
5454+ "url": "http://myIcecast.com/radio",
5555+ "sources": ["icy", "ogg", "sevenhtml"]
5656+ }
5757+ }
5858+ ]
5959+6060+```
6161+</details>
6262+6363+To manually set these sources include the same [`*Endpoint` options](https://github.com/eshaz/icecast-metadata-js/tree/main/src/icecast-metadata-stats#options) found in `icecast-metadata-stats`.
6464+6565+If no `sources` are configured for multi-scrobbler it will automatically try to use `icy` and `ogg`.
6666+6767+## Configuration
6868+6969+<Tabs groupId="configType" queryString>
7070+ <TabItem value="env" label="ENV">
7171+ | Environmental Variable | Required? | Default | Description |
7272+ | :--------------------- | :-------- | :------ | ----------- |
7373+ | `ICECAST_URL` | Yes | | Icecast URL |
7474+ </TabItem>
7575+ <TabItem value="file" label="File">
7676+ <details>
7777+7878+ <summary>Example</summary>
7979+8080+ <CodeBlock title="CONFIG_DIR/icecast.json" language="json5">{IcecastConfig}</CodeBlock>
8181+8282+ </details>
8383+8484+ or <SchemaLink lower objectName="IcecastSourceConfig"/>
8585+ </TabItem>
8686+ <TabItem value="aio" label="AIO">
8787+ <details>
8888+8989+ <summary>Example</summary>
9090+9191+ <AIOExample data={IcecastConfig} name="icecast"/>
9292+9393+ </details>
9494+9595+ or <SchemaLink lower objectName="IcecastSourceConfig"/>
9696+ </TabItem>
9797+</Tabs>
+67
docsite/docs/configuration/sources/jellyfin.mdx
···11+---
22+title: Jellyfin
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JellyfinConfig from '!!raw-loader!@site/../config/jellyfin.json.example';
1111+1212+Must be using Jellyfin 10.7 or greater
1313+1414+* Create an **API Key** for multi-scrobbler
1515+ * In the Jellyfin desktop web UI Navigate to -> Administration -> Dashboard -> API Keys (`http://YOUR_JELLYIN_URL/web/index.html#!/apikeys.html`)
1616+ * Click `+` button and create a new key with **App name** `multi-scrobbler`
1717+ * Copy the created API Key value for use in configuration below
1818+1919+2020+It is **recommended** to use API Key + username but if you are not an admin for your Jellyfin instance you can also authenticate with your Jellyfin username and **password.**
2121+2222+:::tip[Important Defaults]
2323+2424+By default...
2525+2626+* multi-scrobbler will **only** scrobble for the user authenticated with the API.
2727+ * Allowed Users (`usersAllow` or `JELLYFIN_USERS_ALLOW`) are only necessary if you want to scrobble for additional users.
2828+* multi-scrobbler will **only** scrobble media found in Jellyfin libraries that were labelled as **Music.**
2929+ * `librariesAllow` or `JELLYFIN_LIBRARIES_ALLOW` will override this
3030+ * OR use `additionalAllowedLibraryTypes` to allow more types (like `mixed` or `book` for audiobooks)
3131+* multi-scrobbler will **only** scrobble media Jellyfin detects as **Audio.**
3232+ * To force multi-scrobbler to scrobble when media is detected as **Unknown** use `"allowUnknown": true` in file/aio configuration.
3333+3434+:::
3535+3636+#### Configuration
3737+3838+<Tabs groupId="configType" queryString>
3939+ <TabItem value="env" label="ENV">
4040+ | Environmental Variable | Required? | Default | Description |
4141+ | -------------------------- | --------- | ------- | ------------------------------------------------------------------------------------------ |
4242+ | `JELLYFIN_URL` | **Yes** | | The URL of the Jellyfin server IE `http://localhost:8096` |
4343+ | `JELLYFIN_USER` | **Yes** | | The user to authenticate with the API |
4444+ | `JELLYFIN_APIKEY` | No | | The API Key to use for authentication **(Must provide either apikey or password)** |
4545+ | `JELLYFIN_PASSWORD` | No | | The password of the user to authenticate for. **(Must provide either apikey or password)** |
4646+ | `JELLYFIN_USERS_ALLOW` | No | | Comma-separated list of usernames (from Jellyfin) to scrobble for |
4747+ | `JELLYFIN_USERS_BLOCK` | No | | Comma-separated list of usernames (from Jellyfin) to disallow scrobble for |
4848+ | `JELLYFIN_DEVICES_ALLOW` | No | | Comma-separated list of devices to scrobble from |
4949+ | `JELLYFIN_DEVICES_BLOCK` | No | | Comma-separated list of devices to disallow scrobbles from |
5050+ | `JELLYFIN_LIBRARIES_ALLOW` | No | | Comma-separated list of libraries to allow scrobbles from |
5151+ | `JELLYFIN_LIBRARIES_BLOCK` | No | | Comma-separated list of libraries to disallow scrobbles from |
5252+ </TabItem>
5353+ <TabItem value="file" label="File">
5454+5555+ <CodeBlock title="CONFIG_DIR/jellyfin.json" language="json5">{JellyfinConfig}</CodeBlock>
5656+5757+ or <SchemaLink lower objectName="JellyApiSourceConfig"/>
5858+5959+ </TabItem>
6060+ <TabItem value="aio" label="AIO">
6161+6262+ <AIOExample data={JellyfinConfig} name="jellyfin"/>
6363+6464+6565+ or <SchemaLink lower objectName="JellyApiSourceConfig"/>
6666+ </TabItem>
6767+</Tabs>
+76
docsite/docs/configuration/sources/jriver.mdx
···11+---
22+title: JRiver
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JriverConfig from '!!raw-loader!@site/../config/jriver.json.example';
1111+1212+In order for multi-scrobbler to communicate with JRiver you must have [Web Server Interface](https://wiki.jriver.com/index.php/Web_Service_Interface#Documentation_of_Functions) enabled. This can can be in the JRiver GUI:
1313+1414+* Tools -> Options -> Media Network
1515+ * Check `Use Media Network to share this library...`
1616+ * If you have `Authentication` checked you will need to provide the **Username** and **Password** in the ENV/File configuration below.
1717+1818+### URL
1919+2020+The URL used to connect to JRiver, set in your [file config as `url`.](#jriver-config) The URL used to connect ultimately must be formed like this:
2121+2222+```
2323+Syntax => [protocol]://[hostname]:[port]/[path]
2424+Default => http://localhost:52199/MCWS/v1/
2525+```
2626+2727+If any part of this URL is missing multi-scrobbler will use a default value. This also means that if any part of your URL is **not** standard you must explicitly define it.
2828+2929+:::tip[Jriver Settings]
3030+3131+* Make sure the port number matches what is found in `Advanced` section in the [Media Network](#jriver) options.
3232+* If your installation is on the same machine but you cannot connect using `localhost` try `0.0.0.0` instead.
3333+3434+:::
3535+3636+<details>
3737+ <summary>URL Transform Examples</summary>
3838+3939+ Examples of a given `url` in your file config and the final URL multi-scrobbler will use to connect to JRiver:
4040+4141+ | `url` | Transformed URL |
4242+ |------------------------------------------|---------------------------------------------|
4343+ | (none set) | `http://localhost:52199/MCWS/v1/` |
4444+ | `jriver.mydomain.com` | `http://jriver.mydomain.com:52199/MCWS/v1/` |
4545+ | `192.168.0.101:3456` | `http://192.168.0.101:3456/MCWS/v1/` |
4646+ | `mydomain.com:80/jriverReverse/MCWS/v1/` | `mydomain.com:80/jriverReverse/MCWS/v1/` |
4747+4848+</details>
4949+5050+## Configuration
5151+5252+<Tabs groupId="configType" queryString>
5353+ <TabItem value="env" label="ENV">
5454+ <EnvType>
5555+ | Environmental Variable | Required | Default | Description |
5656+ |------------------------|----------|---------------------------------|------------------------------------------------|
5757+ | JRIVER_URL | Yes | http://localhost:52199/MCWS/v1/ | The URL of the JRiver server |
5858+ | JRIVER_USERNAME | No | | If authentication is enabled, the username set |
5959+ | JRIVER_PASSWORD | No | | If authenticated is enabled, the password set |
6060+ </EnvType>
6161+ </TabItem>
6262+ <TabItem value="file" label="File">
6363+ <FileType>
6464+ <CodeBlock title="CONFIG_DIR/jriver.json" language="json5">{JriverConfig}</CodeBlock>
6565+6666+ or <SchemaLink lower objectName="JRiverSourceConfig"/>
6767+ </FileType>
6868+ </TabItem>
6969+ <TabItem value="aio" label="AIO">
7070+ <AIOType>
7171+ <AIOExample data={JriverConfig} name="jriver"/>
7272+7373+ or <SchemaLink lower objectName="JRiverSourceConfig"/>
7474+ </AIOType>
7575+ </TabItem>
7676+</Tabs>
+59
docsite/docs/configuration/sources/kodi.mdx
···11+---
22+title: Kodi
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import KodiConfig from '!!raw-loader!@site/../config/kodi.json.example';
1111+import Config from '@site/src/components/GenericConfiguration.mdx';
1212+1313+In order for multi-scrobbler to communicate with Kodi you must have the [Web Interface](https://kodi.wiki/view/Web_interface) enabled. This can be done in the Kodi GUI:
1414+1515+* Settings -> Services -> Control
1616+ * Check `Allow remote control via HTTP`
1717+ * Ensure you have a **Username** and **Password** set, you will need to provide them in the ENV/File configuration below.
1818+1919+### URL
2020+2121+The URL used to connect to Kodi, set in your [file config as `url`.](#kodi-config) The URL used to connect ultimately must be formed like this:
2222+2323+```
2424+Syntax => [protocol]://[hostname]:[port]/[path]
2525+Default => http://localhost:8080/jsonrpc
2626+```
2727+2828+If any part of this URL is missing multi-scrobbler will use a default value. This also means that if any part of your URL is **not** standard you must explicitly define it.
2929+3030+:::tip[Kodi Settings]
3131+3232+* Make sure the port number matches what is found in **Port** in the [Control](#kodi) section mentioned above.
3333+* If your installation is on the same machine but you cannot connect using `localhost` try `0.0.0.0` instead.
3434+3535+:::
3636+3737+<details>
3838+ <summary>URL Transform Examples</summary>
3939+4040+ Examples of a given `url` in your file config and the final URL multi-scrobbler will use to connect to Kodi:
4141+4242+ | `url` | Transformed URL |
4343+ |---------------------------------------|----------------------------------------------|
4444+ | (none set) | `http://localhost:8080/jsonrpc` |
4545+ | `kodi.mydomain.com` | `http://kodi.mydomain.com:8080/jsonrpc` |
4646+ | `192.168.0.101:3456` | `http://192.168.0.101:3456/jsonprc` |
4747+ | `mydomain.com:80/kodiReverse/jsonrpc` | `http://mydomain.com:80/kodiReverse/jsonrpc` |
4848+4949+</details>
5050+5151+## Configuration
5252+5353+<Config config="KodiSourceConfig" fileContent={KodiConfig} name="kodi">
5454+ | Environmental Variable | Required | Default | Description |
5555+ |------------------------|----------|-------------------------------|----------------------------|
5656+ | KODI_URL | Yes | http://localhost:8080/jsonrpc | The URL of the Kodi server |
5757+ | KODI_USERNAME | No | | The username set |
5858+ | KODI_PASSWORD | No | | The password set |
5959+</Config>
···11+---
22+title: Koito
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import KoitoConfig from '!!raw-loader!@site/../config/koito.json.example';
1111+1212+This Source monitors a Koito account's scrobble history and then re-scrobbles discovered tracks to configured [Clients.](/configuration/clients/overview)
1313+1414+:::tip[Other Uses]
1515+1616+To _scrobble to_ a Koito server, create a [Koito (Client)](/configuration/clients/koito)
1717+1818+:::
1919+2020+See the [Koito (Client)](/configuration/clients/koito) configuration for general setup. The only difference for **Source** configuration:
2121+2222+* Cannot be setup with ENV config
2323+* [File/AIO config](/configuration?configType=file#configuration-types) must include `"configureAs": "source"`
2424+2525+#### Configuration
2626+2727+<Config config="KoitoSourceConfig" fileContent={KoitoConfig} name="koito">
2828+:::note
2929+ You cannot use ENV variables shown in the [Koito Client config](/configuration/clients/koito) -- multi-scrobbler assumes Koito ENVs are always used for the **client** configuration. You must use the [File or AIO](/configuration?configType=file#configuration-types) config to setup Koito as a Source.
3030+:::
3131+</Config>
···11+---
22+title: Lastfm (Endpoint)
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import LastfmEndpointConfig from '!!raw-loader!@site/../config/endpointlfm.json.example';
1111+1212+This Source enables multi-scrobbler to accept scrobbles from outside applications as if it was a Last.fm server.
1313+1414+:::tip[Other Uses]
1515+1616+* To **scrobble to** Last.fm, create a [Last.fm (Client)](/configuration/clients/lastfm)
1717+* To monitor and re-scrobble activity from your Last.fm account, create a [Last.fm (Source)](/configuration/sources/lastfm-source)
1818+1919+:::
2020+2121+### URL
2222+2323+If a **slug** is **not** provided in configuration then multi-scrobbler will accept Last.fm scrobbles at
2424+2525+```
2626+http://localhost:9078/2.0/
2727+```
2828+2929+which is the "standard" Last.fm server path for scrobbling
3030+3131+Use a slug only if you need to setup multiple Last.fm Endpoint sources and cannot use different tokens.
3232+3333+If a slug is used then the URL will be:
3434+3535+```
3636+http://localhost:9078/api/lastfm/mySlug
3737+```
3838+3939+## Configuration
4040+4141+<Config config="LastFMEndpointSourceConfig" fileContent={LastfmEndpointConfig} name="endpointlfm">
4242+ | Environmental Variable | Required? | Default | Description |
4343+ | :--------------------- | :-------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
4444+ | `LFMENDPOINT_ENABLE` | No | | Use LFM Endpoint as a Source without any other configuration. Only required if slug/token are not provided as ENVs |
4545+ | `LFM_SLUG` | No | | (Optional) The URL suffix to use for accepting LFM scrobbles |
4646+</Config>
···11+---
22+title: Lastfm
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import LastfmConfig from '!!raw-loader!@site/../config/lastfm.json.example';
1111+1212+This Source **monitors your Last.fm scrobble history** and re-scrobbles new activity to configured [Clients.](/configuration/clients/overview)
1313+1414+:::tip[Other Uses]
1515+1616+* To **scrobble to** Last.fm, create a [Last.fm (Client)](/configuration/clients/lastfm)
1717+* To accept scrobbles from outside applications as if multi-scrobbler was Last.fm, create a [Last.fm (Endpoint)](/configuration/sources/lastfm-endpoint)
1818+1919+:::
2020+2121+To configure this Source use the same registration instructions and configuration data shown in [Last.fm (Client)](/configuration/clients/lastfm) with the difference being `"configureAs": "source"` defined in the File/AIO configuration below.
2222+2323+## Configuration
2424+2525+<Config config="LastfmSourceConfig" fileContent={LastfmConfig} name="lastfm">
2626+:::note
2727+ You cannot use ENV variables shown in the [Last.fm Client config](/configuration/clients/lastfm) -- multi-scrobbler assumes Last.fm ENVs are always used for the **client** configuration. You must use the [File or AIO](/configuration?configType=file#configuration-types) config to setup Last.fm as a Source.
2828+:::
2929+</Config>
···11+---
22+title: Listenbrainz (Endpoint)
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import ListenbrainzEndpointConfig from '!!raw-loader!@site/../config/endpointlz.json.example';
1111+1212+This Source enables multi-scrobbler to accept scrobbles from outside applications as if it was a Listenbrainz server.
1313+1414+:::tip[Other Uses]
1515+1616+* To **scrobble to** Listenbrainz, create a [Listenbrainz (Client)](/configuration/clients/listenbrainz)
1717+* To monitor and re-scrobble activity from your Listenbrainz account, create a [Listenbrainz (Source)](/configuration/sources/listenbrainz-source)
1818+1919+:::
2020+2121+##### URL
2222+2323+If a **slug** is **not** provided in configuration then multi-scrobbler will accept Listenbrainz scrobbles at
2424+2525+```
2626+http://localhost:9078/1/submit-listens
2727+```
2828+2929+which is the "standard" Listenbrainz server path for scrobbling.
3030+3131+Use a slug only if you need to setup multiple Listenbrainz Endpoint sources and cannot use different tokens.
3232+3333+If a slug is used then the URL will be:
3434+3535+```
3636+http://localhost:9078/api/listenbrainz/mySlug
3737+```
3838+3939+:::note
4040+ Some Listenbrainz applications may require custom Listenbrainz URLs to be a real domain (`example.com`) and/or use SSL (`https://`). In this case you should setup multi-scrobbler behind a reverse proxy to support this functionality. It is out of the scope of this project to do this solely within multi-scrobbler.
4141+:::
4242+4343+##### Token
4444+4545+Most Listenbrainz clients require a token (Authentication Token) to be provided during setup. This value can be anything you want, just make sure to use the same value for `token` in your multi-scrobbler configuration for the endpoint.
4646+4747+4848+## Configuration
4949+5050+<Config config="ListenbrainzEndpointSourceConfig" fileContent={ListenbrainzEndpointConfig} name="endpointlz">
5151+ | Environmental Variable | Required? | Default | Description |
5252+ | :--------------------- | :-------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
5353+ | `LZENDPOINT_ENABLE` | No | | Use LZ Endpoint as a Source without any other configuration. Only required if slug/token are not provided as ENVs |
5454+ | `LZE_TOKEN` | No | | LZ "Authentication Token" you provided to the scrobbling application |
5555+ | `LZE_SLUG` | No | | (Optional) The URL suffix to use for accepting LZ scrobbles |
5656+</Config>
···11+---
22+title: Listenbrainz
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import ListenbrainzConfig from '!!raw-loader!@site/../config/listenbrainz.json.example';
1111+1212+This Source monitors a Listenbrainz account's scrobble history and then re-scrobbles discovered tracks to configured clients.
1313+1414+:::tip[Other Uses]
1515+1616+* To **scrobble to** a Listenbrainz server, create a [Listenbrainz (Client)](/configuration/clients/listenbrainz)
1717+* To accept scrobbles from outside applications as if multi-scrobbler was a Listenbrainz server, create a [Listenbrainz (Endpoint)](/configuration/sources/listenbrainz-endpoint)
1818+1919+:::
2020+2121+You will need to run your own Listenbrainz server or have an account [on the official instance](https://listenbrainz.org/login/).
2222+2323+On your [profile page](https://listenbrainz.org/profile/) find your **User Token** to use in the configuration.
2424+2525+## Configuration
2626+2727+<Config config="ListenBrainzSourceConfig" fileContent={ListenbrainzConfig} name="listenbrainz">
2828+ :::note
2929+ You cannot use ENV variables shown in the [Listenbrainz Client config](/configuration/clients/listenbrainz) -- multi-scrobbler assumes Listenbrainz ENVs are always used for the **client** configuration. You must use the [File or AIO](/configuration?configType=file#configuration-types) config to setup Listenbrainz as a Source.
3030+ :::
3131+</Config>
+29
docsite/docs/configuration/sources/maloja.mdx
···11+---
22+title: Maloja
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import MalojaConfig from '!!raw-loader!@site/../config/maloja.json.example';
1111+1212+:::tip[Other Uses]
1313+1414+To _scrobble to_ a Maloja server, create a [Maloja (Client)](/configuration/clients/maloja)
1515+1616+:::
1717+1818+See the [Maloja (Client)](/configuration/clients/maloja) configuration for general setup. The only difference for **Source** configuration:
1919+2020+* Cannot be setup with ENV config
2121+* [File/AIO config](/configuration?configType=file#configuration-types) must include `"configureAs": "source"`
2222+2323+## Configuration
2424+2525+<Config config="MalojaSourceConfig" fileContent={MalojaConfig} name="maloja">
2626+ :::note
2727+ You cannot use ENV variables shown in the [Maloja Client config](/configuration/clients/maloja) -- multi-scrobbler assumes Maloja ENVs are always used for the **client** configuration. You must use the [[File or AIO](/configuration?configType=file#configuration-types) config to setup Maloja as a Source.
2828+ :::
2929+</Config>
+102
docsite/docs/configuration/sources/mopidy.mdx
···11+---
22+title: Mopidy
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import MopidyConfig from '!!raw-loader!@site/../config/mopidy.json.example';
1111+1212+Mopidy is a headless music server that supports playing music from many [standard and non-standard sources such as Pandora, Bandcamp, and Tunein.](https://mopidy.com/ext/)
1313+1414+multi-scrobbler can scrobble tracks played from any Mopidy backend source, regardless of where you listen to them.
1515+1616+:::note
1717+1818+You must have [Mopidy-HTTP extension](https://mopidy.com/ext/http) enabled for this integration to work.
1919+2020+:::
2121+2222+#### URL
2323+2424+The URL used to connect to the Mopidy server, set in your [file config as `url`.](#mopidy-config) The URL used to connect ultimately must be formed like this:
2525+2626+```
2727+Syntax => [protocol]://[hostname]:[port]/[path]
2828+Default => ws://localhost:6680/mopidy/ws
2929+```
3030+3131+If any part of this URL is missing multi-scrobbler will use a default value. This also means that if any part of your URL is **not** standard you must explicitly define it.
3232+3333+:::tip[Mopidy Configuration]
3434+3535+Make sure the hostname and port number match what is found in the Mopidy configuration file `mopidy.conf`:
3636+3737+```ini
3838+[http]
3939+hostname = localhost
4040+port = 6680
4141+```
4242+4343+:::
4444+4545+<details>
4646+<summary>URL Transform Examples</summary>
4747+4848+ Examples of a given `url` in your file config and the final URL multi-scrobbler will use to connect to Mopidy:
4949+5050+ | `url` | Transformed URL |
5151+ |--------------------------------|--------------------------------------------|
5252+ | (none set) | `ws://localhost:6680/mopidy/ws` |
5353+ | `mopidy.mydomain.com` | `ws://mopidy.mydomain.com:6680/mopidy/ws/` |
5454+ | `192.168.0.101:3456` | `ws://192.168.0.101:3456/mopidy/ws/` |
5555+ | `mopidy.mydomain.com:80/MOPWS` | `ws://mopidy.mydomain.com:80/MOPWS` |
5656+5757+</details>
5858+5959+6060+### URI Blacklist/Whitelist
6161+6262+If you wish to disallow or only allow scrobbling from some sources played through Mopidy you can specify these using `uriBlacklist` or `uriWhitelist` in your config. multi-scrobbler will check the list to see if any string matches the START of the `uri` on a track. If whitelist is used then blacklist is ignored. All strings are case-insensitive.
6363+6464+<details>
6565+ <summary>Example</summary>
6666+ ```json
6767+ {
6868+ "uriBlacklist": ["soundcloud"]
6969+ }
7070+ ```
7171+7272+ Will prevent multi-scrobbler from scrobbling any Mopidy track that start with a `uri` like `soundcloud:song:MySong-1234`
7373+</details>
7474+7575+7676+### Album Blacklist
7777+7878+For certain sources (Soundcloud) Mopidy does not have all track info (Album) and will instead use "Soundcloud" as the Album name. You can prevent multi-scrobbler from using this bad Album data by adding the fake Album name to this list. Multi-scrobbler will still scrobble the track, just without the bad data. All strings are case-insensitive.
7979+8080+<details>
8181+ <summary>Example</summary>
8282+ ```json
8383+ {
8484+ "albumBlacklist": ["SoundCloud", "Mixcloud"]
8585+ }
8686+ ```
8787+8888+ If a track would be scrobbled like
8989+ ```
9090+ Album: Soundcloud, Track: My Cool Track, Artist: A Cool Artist
9191+ ```
9292+ then multi-scrobbler will instead scrobble
9393+ ```
9494+ Track: My Cool Track, Artist: A Cool Artist
9595+ ```
9696+</details>
9797+9898+## Configuration
9999+100100+<Config config="MopidySourceConfig" fileContent={MopidyConfig} name="mopidy">
101101+No ENV support
102102+</Config>
+28
docsite/docs/configuration/sources/mpd.mdx
···11+---
22+title: MPD (Music Player Daemon)
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import MPDConfig from '!!raw-loader!@site/../config/mpd.json.example';
1111+1212+MS communicates with MPD using the [TCP client connection.](https://mpd.readthedocs.io/en/stable/user.html#client-connections)
1313+1414+You should uncomment/create the following settings in your mpd config:
1515+1616+```
1717+bind_to_address "any" # or a specific ipv4/v6 address
1818+port "6600"
1919+```
2020+2121+## Configuration
2222+2323+<Config config="MPDSourceConfig" fileContent={MPDConfig} name="mpd">
2424+ | Environmental Variable | Required? | Default | Description |
2525+ |------------------------|-----------|------------------|-------------|
2626+ | `MPD_URL` | No | `localhost:6600` | |
2727+ | `MPD_PASSWORD` | No | | |
2828+</Config>
+79
docsite/docs/configuration/sources/mpris.mdx
···11+---
22+title: MPRIS
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import MPRISConfig from '!!raw-loader!@site/../config/mpris.json.example';
1111+1212+[MPRIS](https://specifications.freedesktop.org/mpris-spec/latest) is a standard interface for communicating with Music Players on **linux operating systems.**
1313+1414+If you run Linux and have a notification tray that shows what media you are listening to, you likely have access to MPRIS.
1515+1616+
1717+1818+multi-scrobbler can listen to this interface and scrobble tracks played by **any media player** that communicates to the operating system with MPRIS.
1919+2020+##### Host Setup
2121+2222+MPRIS communication requires multi-scrobbler to have access to the host's dbus-daemon.
2323+2424+<Tabs groupId="dbus" queryString>
2525+ <TabItem value="local" label="Local">
2626+ If multi-scrobbler is running as a [**Local Installation**](../../installation/installation.mdx#nodejs), directly with node/npm, on the same host as MPRIS then no setup is required.
2727+2828+ Remote setup is also possible, see the **Remote Unix Socket** section in the Docker tab.
2929+ </TabItem>
3030+ <TabItem value="docker" label="Docker">
3131+ If multi-scrobbler is running as a [**Docker Container**](../../installation/installation.mdx#docker) some modifications are required...
3232+3333+ ##### Local Unix Socket
3434+3535+ The most secure way is to **run a multi-scrobbler container on the same host as MPRIS.** In this scenario you can simply mount the **user session** dbus unix socket into the container. Make sure [`PUID` and `PGID` ENVs are configured](../installation/#linux-host) so the container has permissions to access the socket. Then, modify your compose stack with these additional values:
3636+3737+ ```yaml title="docker-compose.yaml"
3838+3939+ environment:
4040+ - DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/UID/bus
4141+4242+ volumes:
4343+ - /run/user/UID/bus:/run/user/UID/bus:ro
4444+ ```
4545+4646+ ##### Remote Unix Socket
4747+4848+ :::warning
4949+5050+ This method is **insecure.** You should not expose dbus over a network unless access to the port is restricted and the network is trusted.
5151+5252+ :::
5353+5454+ Use [`socat`](https://linux.die.net/man/1/socat) to bidirectionally relay communication from the host's dbus socket to a listening TCP port.
5555+5656+ To make dbus for user with uid `1000` available on port `6644`:
5757+5858+ ```shell
5959+ socat TCP-LISTEN:6644,reuseaddr,fork UNIX-CONNECT:/run/user/1000/bus
6060+ ```
6161+6262+ Then, add the following value to multi-scrobbler's ENVs:
6363+6464+ ```
6565+ DBUS_SESSION_BUS_ADDRESS=tcp:host=yourHostIP,port=6644
6666+ ```
6767+6868+ </TabItem>
6969+</Tabs>
7070+7171+## Configuration
7272+7373+<Config config="MPRISSourceConfig" fileContent={MPRISConfig} name="mpris">
7474+ | Environmental Variable | Required? | Default | Description |
7575+ |------------------------|-----------|---------|----------------------------------------------------------------------------------|
7676+ | MPRIS_ENABLE | No | | Use MPRIS as a Source (useful when you don't need any other options) |
7777+ | MPRIS_BLACKLIST | No | | Comma-delimited list of player names not to scrobble from |
7878+ | MPRIS_WHITELIST | No | | Comma-delimited list of players names to ONLY scrobble from. Overrides blacklist |
7979+</Config>
+38
docsite/docs/configuration/sources/musikcube.mdx
···11+---
22+title: Musikcube
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import MusikcubeConfig from '!!raw-loader!@site/../config/musikcube.json.example';
1111+1212+In order to use [Musikcube](https://musikcube.com) configure it to accept [websocket connections](https://github.com/clangen/musikcube/wiki/remote-api-documentation) in **server setup**:
1313+1414+* Enable the **Metadata Server**
1515+* Set a **Password**
1616+1717+Both of these settings are found in _Musikcube -> (s)ettings -> server setup_
1818+1919+
2020+2121+The URL used by MS has the syntax:
2222+2323+```
2424+[ws|wss]://HOST:[PORT]
2525+```
2626+2727+The **port** is the same as shown in the server setup screenshot from above, under **metadata server enabled**. If no port is provided to MS it will default to `7905`.
2828+2929+If no URL is provided to MS it will try to use `ws://localhost:7905`
3030+3131+## Configuration
3232+3333+<Config config="MusikcubeSourceConfig" fileContent={MusikcubeConfig} name="musikcube">
3434+ | Environmental Variable | Required? | Default | Description |
3535+ |------------------------|-----------|-----------------------|--------------------------------------|
3636+ | `MC_URL` | No | `ws://localhost:7905` | Use port set for **metadata server** |
3737+ | `MC_PASSWORD` | Yes | | |
3838+</Config>
+79
docsite/docs/configuration/sources/plex.mdx
···11+---
22+title: Plex
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import AzuracastConfig from '!!raw-loader!@site/../config/azuracast.json.example';
1111+import PlexConfig from '!!raw-loader!@site/../config/plex.json.example';
1212+1313+Find your [**Plex Token**](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/) and make note of the **URL** and **Port** used to connect to your Plex instance.
1414+1515+<details>
1616+1717+<summary>Allowed Users and Defaults</summary>
1818+1919+**Multi-scrobbler will automatically scrobble for these users by default:**
2020+2121+* The User authenticated with the Plex Token
2222+* and the **Local User**
2323+2424+The Local User (`PLEX_LOCAL_USER`) is how Plex identifies anyone directly accessing the Plex UI from a local IP (who does not need to login).
2525+2626+To allow MS to scrobble for other users use `usersAllow` or `PLEX_USERS_ALLOW` (env) from the below configuration docs. However, because you are overriding the default settings you must also explicitly list the authenticated user and the Local User if you want them to also be able to scrobble.
2727+2828+<details>
2929+3030+<summary>Examples</summary>
3131+3232+###### Defaults
3333+3434+If `usersallow` and `PLEX_USERS_ALLOW` are not defined then the Plex Token authenticated User and Local User will be scrobbled for.
3535+3636+3737+###### Only A Specific User
3838+3939+* `"usersallow": ["SomeUser"]` or
4040+* `PLEX_USERS_ALLOW: SomeUser`
4141+4242+Only the Plex user `SomeUser` will be scrobbled for. The Plex Token authenticated user and the Local User will not be scrobbled for.
4343+4444+###### A Specific User + Defaults
4545+4646+(Assuming the plex authenticated user is `FoxxMD`)
4747+4848+* `"usersallow": ["FoxxMD", "PLEX_LOCAL_USER", "SomeUser"]` or
4949+* `PLEX_USERS_ALLOW: FoxxMD,PLEX_LOCAL_USER,SomeUser`
5050+5151+The Plex user SomeUser, the Plex Token authenticated user (FoxxMD) and the Local User will be scrobbled for.
5252+5353+</details>
5454+5555+</details>
5656+5757+<details>
5858+5959+<summary>Allowed Libraries and Defaults</summary>
6060+6161+By default multi-scrobbler will only scrobble media found in Plex libraries that are labelled as **Music.**
6262+ * `librariesAllow` or `PLEX_LIBRARIES_ALLOW` will override this
6363+6464+</details>
6565+6666+#### Configuration
6767+6868+<Config config="PlexApiSourceConfig" fileContent={PlexConfig} name="plex">
6969+ | Environmental Variable | Required? | Default | Description |
7070+ | ---------------------- | --------- | ------- | ---------------------------------------------------------------------- |
7171+ | `PLEX_URL` | **Yes** | | The URL of the Plex server IE `http://localhost:32400` |
7272+ | `PLEX_TOKEN` | **Yes** | | The **Plex Token** to use with the API |
7373+ | `PLEX_USERS_ALLOW` | No | | Comma-separated list of usernames (from Plex) to scrobble for |
7474+ | `PLEX_USERS_BLOCK` | No | | Comma-separated list of usernames (from Plex) to disallow scrobble for |
7575+ | `PLEX_DEVICES_ALLOW` | No | | Comma-separated list of devices to scrobble from |
7676+ | `PLEX_DEVICES_BLOCK` | No | | Comma-separated list of devices to disallow scrobbles from |
7777+ | `PLEX_LIBRARIES_ALLOW` | No | | Comma-separated list of libraries to allow scrobbles from |
7878+ | `PLEX_LIBRARIES_BLOCK` | No | | Comma-separated list of libraries to disallow scrobbles from |
7979+</Config>
+105
docsite/docs/configuration/sources/spotify.mdx
···11+---
22+title: Spotify
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import SpotifyConfig from '!!raw-loader!@site/../config/spotify.json.example';
1111+1212+<details>
1313+1414+<summary>Spotify and Automix</summary>
1515+1616+If your Spotify player has [Automix](https://community.spotify.com/t5/FAQs/What-is-Automix/ta-p/5257278) enabled and Spotify uses it for your playlist/queue then MS cannot accurately determine when a track will end. This is because the track is "mixed" in your queue with a shorter play time than its actual length and [Spotify does not report this modified play time in its API.](https://community.spotify.com/t5/Spotify-for-Developers/Wrong-duration-ms-of-track-with-Automix/m-p/5429147) This **does not affect MS's ability to scrobble** from Spotify but it will affect the accuracy of the duration MS reports was played.
1717+1818+</details>
1919+2020+#### Authenticate Spotify with Multi-Scrobbler
2121+2222+To access your Spotify history you must [create a Spotify App](https://developer.spotify.com/dashboard) to get a
2323+Client ID/Secret.
2424+2525+1. **Login to https://developer.spotify.com** with your existing Spotify account and accept Developer Terms
2626+2727+2. Navigate to your Spotify Developer [Dashboard](https://developer.spotify.com/dashboard) and start the **Create App** process
2828+2929+3. Determine the correct **Redirect URI** to use and set it in your App settings
3030+3131+<details>
3232+3333+<summary>Redirect URI Instructions</summary>
3434+3535+A Redirect URI is the URL that Spotify will navigate your **browser** to after you complete authorization. The URL will contain the code necessary for multi-scrobbler to get a Spotify access token.
3636+3737+Spotify [**no longer allows insecure URIs**](https://developer.spotify.com/documentation/web-api/tutorials/migration-insecure-redirect-uri) (start with `http://`) unless the address is `127.0.0.1` -- so `localhost` and internal IPs (`192.168.0.xxx`) no longer work.
3838+3939+Use **one** of the following methods to specify a valid Redirect URI and complete Spotify authentication with multi-scrobbler:
4040+4141+<Tabs groupId="spotifyRedirect" queryString>
4242+ <TabItem value="https" label="HTTPS">
4343+ **Use a domain you control, with SSL certificates/HTTPS enabled, to create a valid redirect URI.**
4444+4545+ For example, if you are already running multi-scrobbler behind a reverse proxy (nginx/traefik/caddy) at `https://scrobbler.mydomain.com` then set the Spotify Redirect URI for your Spotify App, and multi-scrobbler `SPOTIFY_REDIRECT_URI` ENV, to `https://scrobbler.mydomain.com/callback`
4646+4747+ Alternatively, if multi-scrobbler is not accessible behind your domain, then use the [**Echo**](./?spotifyRedirect=echo#spotify) method with your own domain instead of 127.0.0.1.
4848+ </TabItem>
4949+ <TabItem value="local" label="Run MS Locally">
5050+ **Run multi-scrobbler, configured for a Spotify Source, from the same machine as your browser in order to get credentials.**
5151+5252+ In this scenario you can use `http://127.0.0.1:9078/callback` as the Spotify Redirect URI and multi-scrobbler `SPOTIFY_REDIRECT_URI` ENV.
5353+5454+ After completing authentication, copy the contents of local multi-scrobbler's [configuration folder](../installation/installation.mdx#storage) to the final location of where multi-scrobbler will be run.
5555+ </TabItem>
5656+ <TabItem value="echo" label="Echo">
5757+ **Use a docker container on the same machine your browser is on to "intercept" the callback URL from Spotify authentication, then manually finish the process by changing the domain to your multi-scrobbler instance.**
5858+5959+6060+ 1. Create a container on the same machine as your browser using the [`mendhak/http-https-echo:36`](https://github.com/mendhak/docker-http-https-echo) image. This container runs a simple HTTP server that echos back any request it recieves.
6161+6262+ ```shell
6363+ docker run --rm -p 127.0.0.1:5079:8080 mendhak/http-https-echo:36
6464+ ```
6565+6666+ 2. Set the Spotify Redirect URI and multi-scrobbler `SPOTIFY_REDIRECT_URI` ENV as `http://127.0.0.1:5079/callback`
6767+6868+ 3. In [Authenticate Spotify with Multi-Scrobbler](#authenticate-spotify-with-multi-scrobbler) (outside these Redirect Instructions) go to **Step 4** and continue the instructions
6969+7070+ Eventually, Spotify will redirect you to a web page with a URL like `http://127.0.0.1:5079/callback?code=xxxxxx...`
7171+7272+ 
7373+7474+ 4. In the URL, replace `127.0.0.1:5079` with the address/IP for your multi-scrobbler instance so the URL is similar to `http://192.168.0.101:9078/callback?code=xxxxxx...`. Then navigate to this URL to complete authentication.
7575+7676+ </TabItem>
7777+7878+ <TabItem value="msEcho" label="Echo from echo.multi-scrobbler.app">
7979+ For your convenience, I run the [`mendhak/http-https-echo:36`](https://github.com/mendhak/docker-http-https-echo) container from the [**Echo**](./?spotifyRedirect=echo#spotify) approach on a domain I, the multi-scrobbler developer [FoxxMD](https://github.com/FoxxMD), control and self-host. Please be aware:
8080+8181+ * I **do not collect personal data** or any querystrings/data sent in requests to this site
8282+ * It's **not possible** for me to use the code sent by Spotify to this URL without also having your Client ID/Secret
8383+ * However, there is **always** risk involved with trusting a service you do not control. Evaluate the risk of using this site for yourself.
8484+8585+ Use the [**Echo**](./?spotifyRedirect=echo#spotify) approach, starting from **Step 2**, with **https://echo.multi-scrobbler.app/callback** as Spotify Redirect URI and multi-scrobbler `SPOTIFY_REDIRECT_URI` ENV.
8686+ </TabItem>
8787+</Tabs>
8888+8989+</details>
9090+9191+4. Save your new App, then copy the Client ID/Secret from the App's Basic Information page.
9292+9393+5. Add the Client ID, Secret, and Redirect URI to the respective field/ENV in the [configuration section below](#spotify-config)
9494+9595+6. Start multi-scrobbler, then visit the Web Dashboard and click **(Re)authenticate** on the Spotify card to start the auth process
9696+9797+## Configuration
9898+9999+<Config config="SpotifySourceConfig" fileContent={SpotifyConfig} name="spotify">
100100+ | Environmental Variable | Required? | Default | Description |
101101+ |----------------------------|-----------|----------------------------------|----------------------------------------------------|
102102+ | `SPOTIFY_CLIENT_ID` | Yes | | |
103103+ | `SPOTIFY_CLIENT_SECRET` | Yes | | |
104104+ | `SPOTIFY_REDIRECT_URI` | No | `http://localhost:9078/callback` | URI must end in `callback` |
105105+</Config>
+31
docsite/docs/configuration/sources/subsonic.mdx
···11+---
22+title: Subsonic
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import SubsonicConfig from '!!raw-loader!@site/../config/subsonic.json.example';
1111+1212+This Source can be used for any application that implements the [Subsonic API](http://www.subsonic.org/pages/api.jsp) and supports the [`getNowPlaying`](http://www.subsonic.org/pages/api.jsp#getNowPlaying) endpoint (such as [Airsonic](https://airsonic.github.io/) and [Navidrome](https://www.navidrome.org/))
1313+1414+:::warning[Known Issues]
1515+1616+* Multiple artists are reported as one value and cannot be separated
1717+* If using [Airsonic Advanced](https://github.com/airsonic-advanced/airsonic-advanced) the password used (under **Credentials**) must be **Decodable**
1818+1919+:::
2020+2121+Use the optional `usersAllow` property with **File** or **AIO** configuration to restrict scrobbling to a list of defined users.
2222+2323+## Configuration
2424+2525+<Config config="SubsonicSourceConfig" fileContent={SubsonicConfig} name="subsonic">
2626+ | Environmental Variable | Required? | Default | Description |
2727+ |------------------------|-----------|---------|--------------------------------------|
2828+ | `SUBSONIC_USER` | Yes | | |
2929+ | `SUBSONIC_PASSWORD` | Yes | | |
3030+ | `SUBSONIC_URL` | Yes | | Base url of your subsonic-api server |
3131+</Config>
+94
docsite/docs/configuration/sources/vlc.mdx
···11+---
22+title: VLC
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JsonConfig from '!!raw-loader!@site/../config/vlc.json.example';
1111+1212+MS communicates with [VLC](https://www.videolan.org/vlc/) using the [Web (`http`) interface module](https://wiki.videolan.org/VLC_HTTP_requests/)
1313+1414+#### Enable HTTP Interface
1515+1616+Open VLC:
1717+1818+* **Tools** Menu -> Preferences
1919+ * In the bottom left change **Show Settings** from `Simple` to `All`
2020+ * In the updated window select `Interface -> Main interfaces`
2121+ * In the **Extra interface modules** section enable **Web** and verify that `http` is shown in the textbox
2222+ * Select `Interface -> Main interfaces -> Lua`
2323+ * In Lua HTTP -> Password -> set a password in this box
2424+ * Click **Save** at the bottom to persist your changes
2525+* Restart VLC
2626+* Verify the HTTP interface is accessible by navigating to `http://localhost:8080` in your browser
2727+2828+If the interface is accessible, after typing in your password, VLC is now ready to be used by MS.
2929+3030+##### Setting VLC Interface and Port
3131+3232+These can be set by starting VLC from command line with specific options:
3333+3434+* `vlc --http-host yourHostIp:yourPort` or
3535+* `vlc --http-port yourPort` or
3636+* modify the configuration file for VLC by editing keys with the same values as from the command line (`http-host` and `http-port`)
3737+3838+3939+#### Filename Parsing
4040+4141+If the file being played in VLC does not have ID3 tags/metadata information multi-scrobbler can attempt to extract artist, title, and album information from the raw filename using regular expressions. Mutli-scrobbler will only do this if there is **no other information** reported by VLC about these fields.
4242+4343+To extract this information use [named capture groups](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group) in your expression matching the field that should be extracted: `artist` `title` and/or `album`. MS accepts multiple expressions, the first one that matches a filename will be used.
4444+4545+Example usage in [a file-based config:](./?configType=file#webscrobbler-config)
4646+4747+```json5 title="config/vlc.json" {10-15}
4848+[
4949+ {
5050+ "name": "MyVlc",
5151+ "enable": true,
5252+ "data": {
5353+ // ...
5454+ },
5555+ "options": {
5656+ "filenamePatterns": [
5757+ // Extracts artist and title from filenames that look like:
5858+ // My Artist - My Cool title.mp4
5959+ "/^\\s*(?<artist>.+?) - (?<title>.+?)\\.\\w+$/i"
6060+ ],
6161+ // logs to DEBUG when MS tries to extract data from a filename
6262+ "logFilenamePatterns": true,
6363+ }
6464+ }
6565+]
6666+```
6767+6868+#### Vlc Information Reporting
6969+7070+If you find that VLC is incorrectly reporting track information (in its interface) but multi-scrobbler is not parsing it correctly it may be due to the _name_ of the fields VLC is reporting. mutli-scrobbler uses the most common field name but does not cover all use cases. Before reporting an issue please turn on metadata logging and include output from your logs while it is turned on:
7171+7272+```json5 title="config/vlc.json" {9-9}
7373+ [
7474+ {
7575+ "name": "MyVlc",
7676+ "enable": true,
7777+ "data": {
7878+ // ...
7979+ },
8080+ "options": {
8181+ "dumpVlcMetadata": true
8282+ }
8383+ }
8484+ ]
8585+```
8686+8787+## Configuration
8888+8989+<Config config="VLCSourceConfig" fileContent={JsonConfig} name="vlc">
9090+ | Environmental Variable | Required? | Default | Description |
9191+ |------------------------|------------|------------------|-------------|
9292+ | `VLC_URL` | No | `localhost:8080` | |
9393+ | `VLC_PASSWORD` | Yes | | |
9494+</Config>
···11+---
22+title: Webscrobbler
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JsonConfig from '!!raw-loader!@site/../config/webscrobbler.json.example';
1111+1212+After installing the [Webscrobbler extension](https://web-scrobbler.com/) open the preferences/settings for it:
1313+1414+* Under **Accounts**
1515+ * **Add Webhook**
1616+ * API URL: `[YourMultiScrobblerInstance]/api/webscrobbler` EX `http://localhost:9078/api/webscrobbler`
1717+ * Application name: `(whatever you want)`
1818+1919+Reload the extension after adding the webhook.
2020+2121+:::note
2222+2323+* **On Firefox** - Only FQNs (domain.tld), `localhost`, and `127.0.0.1` are supported for API URL due to [firefox requiring https](https://github.com/web-scrobbler/web-scrobbler/issues/4183#issuecomment-1749222006)
2424+* **On Chromium-based Browsers** - Any domain will work for API URL
2525+* All other browsers are untested
2626+2727+:::
2828+2929+:::warning
3030+3131+Multi-scrobbler is **not** designed to be publicly accessible from the internet. To use Webscrobbler outside your local network you should be accessing MS through a VPN or through a reverse proxy with some kind of authentication (though this is still not recommended).
3232+3333+:::
3434+3535+### Multiple Users
3636+3737+If you would like use multiple WebScrobbler sources they can be matched using a **slug** at the end of the **API URL.** This requires using [a file-based config.](/configuration?configType=file#configuration-types)
3838+3939+<details>
4040+4141+ <summary>Example</summary>
4242+4343+ ```json title="webscrobbler.json"
4444+ [
4545+ {
4646+ "name": "aUserWS",
4747+ "clients": [
4848+ "client1Maloja"
4949+ ],
5050+ "data": {
5151+ "slug": "usera"
5252+ }
5353+ },
5454+ {
5555+ "name": "bUserWS",
5656+ "clients": [
5757+ "client2Maloja"
5858+ ],
5959+ "data": {
6060+ "slug": "userb"
6161+ }
6262+ }
6363+ ]
6464+ ```
6565+6666+ * To use `aUserWS` source set **API URL** to `http://localhost:9078/api/webscrobbler/usera`
6767+ * To use `bUserWS` source set **API URL** to `http://localhost:9078/api/webscrobbler/userb`
6868+6969+ :::tip
7070+7171+ `http://localhost:9078/api/webscrobbler` is matched with the first source that _that does not have a slug defined._
7272+7373+ :::
7474+7575+</details>
7676+7777+### Connectors Black/Whitelist
7878+7979+MS can be configured to only scrobble, or NOT scrobble, from some WS connectors. Use the name of the website from the [supported websites](https://web-scrobbler.com/) or from the **Connectors** tab in the extension.
8080+8181+:::note
8282+8383+This affects **only** MS's behavior and does not affect the general connector behavior you have configured within the WebScrobbler extension.
8484+8585+:::
8686+8787+## Configuration
8888+8989+<Config config="WebscrobblerSourceConfig" fileContent={JsonConfig} name="webscrobbler">
9090+ | Environmental Variable | Required? | Default | Description |
9191+ |------------------------|-----------|---------|--------------------------------------------------------------------------|
9292+ | WS_ENABLE | No | | Set to 'true' to enable WS without needing to define other ENVs |
9393+ | WS_WHITELIST | No | | Only scrobble from these WebScrobbler Connectors. Comma-delimited list |
9494+ | WS_BLACKLIST | No | | Do not scrobble from these WebScrobbler Connectors. Comma-delimited list |
9595+</Config>
···11+---
22+title: Yamaha MusicCast
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JsonConfig from '!!raw-loader!@site/../config/musiccast.json.example';
1111+1212+Monitor [MusicCast](https://usa.yamaha.com/products/contents/audio_visual/musiccast/index.html) device/receivers for music played on Network/USB/CD inputs.
1313+1414+:::tip[Scrobbling Threshold]
1515+1616+Musiccast may not correctly report track length. If this is the case you should reduce the "listened to" **duration** using [Scrobble Thresholds](#scrobble-thresholds) so that multi-scrobbler scrobbles correctly.
1717+1818+:::
1919+2020+##### URL
2121+2222+If only a domain/IP:PORT is provided to multi-scrobbler it will automatically append the default Musiccast API path. If your Musiccast device is located behind a custom URL (or reverse proxy) you should explicitly provide the base path to use.
2323+2424+EX
2525+2626+ | `url` | Transformed URL |
2727+ | --------------------------------------- | :---------------------------------------------- |
2828+ | `http://192.168.0.101` | `http://192.168.0.101/YamahaExtendedControl/v1` |
2929+ | `http://mydomain.com/reverseProxy/cast` | `http://mydomain.com/reverseProxy/cast` |
3030+3131+## Configuration
3232+3333+<Config config="MusicCastSourceConfig" fileContent={JsonConfig} name="musiccast">
3434+ | Environmental Variable | Required? | Default | Description |
3535+ | :--------------------- | :-------- | ------- | :----------------------- |
3636+ | `MCAST_URL` | Yes | | The Musiccast device URL |
3737+</Config>
···11+---
22+title: Youtube Music
33+toc_min_heading_level: 2
44+toc_max_heading_level: 5
55+---
66+77+import Tabs from '@theme/Tabs';
88+import TabItem from '@theme/TabItem';
99+import CodeBlock from '@theme/CodeBlock';
1010+import JsonConfig from '!!raw-loader!@site/../config/ytmusic.json.example';
1111+1212+:::warning
1313+1414+Communication with YT Music is **unofficial** and not supported or endorsed by Google. This means that **this integration may stop working at any time** if Google decides to change how YT Music works in the browser.
1515+1616+:::
1717+1818+:::tip[Scrobble Troubleshooting]
1919+2020+Due to monitoring being unofficial, listening history from YTM can be inconsistent and can cause missed scrobbles.
2121+2222+[**See the FAQ**](../FAQ.md#youtube-music-misses-or-duplicates-scrobbles) for a detailed explanation, how to see more details about MS's detection of tracks, and how to properly report an issue.
2323+2424+:::
2525+2626+#### Authentication {#ytm-auth}
2727+2828+Only one of these methods needs to be used.
2929+3030+<Tabs groupId="ytmAuth" queryString>
3131+ <TabItem value="cookie" label="Cookies">
3232+3333+ Use instructions from
3434+3535+ * https://github.com/patrickkfkan/Volumio-YouTube.js/wiki/How-to-obtain-Cookie or
3636+ * https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html#copy-authentication-headers
3737+3838+ to get the **Cookie** value from a browser.
3939+4040+ It is highly recommended to [get the cookie from an Incognito/Private Session](https://github.com/LuanRT/YouTube.js/issues/803#issuecomment-2504032666) to limit the chance the session is invalidated from normal browsing.
4141+4242+ Add the cookie to your `ytmusic.json` config in `data` or as an ENV:
4343+4444+ ```json
4545+ {
4646+ "type": "ytmusic",
4747+ "enable": true,
4848+ "name": "MyYTM",
4949+ "data": {
5050+ "cookie": "__Secure-1PSIDTS=sidts-CjEB3EgAEvCd-......"
5151+ },
5252+ "options": {
5353+ "logAuthUpdateChanges": true,
5454+ "logDiff": true
5555+ }
5656+ }
5757+ ```
5858+5959+ If MS gives you authentication errors (session invalidated) at some point in the future follow the same instructions to get new cookies.
6060+6161+ </TabItem>
6262+ <TabItem value="oauth" label="OAuth Client">
6363+ :::warning
6464+6565+ As of Sept 25' OAuth clients no longer seem to have permission to access the YTM service, as reported by the upstream YTM library developer and [several other users.](https://github.com/FoxxMD/multi-scrobbler/issues/345#issuecomment-3258518769)
6666+6767+ If you have existing, working OAuth credentials keep using them but there is no gaurantee they will continue to work.
6868+6969+ If you are setting up the YTM Source for the first time you should first try to use [Cookies](./?ytmAuth=cookie#ytm-auth).
7070+7171+ :::
7272+7373+ [Based on the instructions from here...](https://github.com/LuanRT/YouTube.js/issues/803#issuecomment-2479689924)
7474+7575+ * Login to [Google Cloud console](https://console.cloud.google.com/) (create an account, if necessary)
7676+ * [Create a new project](https://console.cloud.google.com/projectcreate)
7777+ * Go to APIs and services.
7878+ * Configure the OAuth consent screen
7979+ * Use the old experience if possible
8080+ * If new is unavoidable then do not fill out any branding and under Authorized Domains you can delete the empty one (in order to save)
8181+ * Add yourself as an authorized user
8282+ * Navigate to Credentials
8383+ * Create Credentials -> choose "OAuth client ID"
8484+ * Application Type is **Web Application**
8585+ * **Name** is whatever you want, leave Authorization Javascript origins blank
8686+ * Authorized redirect URIs
8787+ * This must be **exactly** the same as what is displayed in MS! For now leave it blank so we can generate it from MS first
8888+ * Create
8989+ * In the newly created client popup save the **Client ID** and **Client Secret**, then copy them into `ytmusic.json` or appropriate ENVs:
9090+9191+ ```json
9292+ {
9393+ "type": "ytmusic",
9494+ "enable": true,
9595+ "name": "MyYTM",
9696+ "data": {
9797+ "clientId": "8910....6jqupl.apps.googleusercontent.com",
9898+ "clientSecret": "GOCSPX-WGXL6BSuQ343..."
9999+ },
100100+ "options": {
101101+ "logAuthUpdateChanges": true,
102102+ "logDiff": true
103103+ }
104104+ }
105105+ ```
106106+107107+ Now, start MS and during the YTMusic startup it will log something like this:
108108+109109+ ```
110110+ Will use custom OAuth Client:
111111+ Client ID: ...
112112+ Client Secret: ...
113113+ Redirect URI: http://localhost:9078/api/ytmusic/callback?name=MyYTM
114114+ ```
115115+116116+ If the beginning of the Redirect URI (before `api`) is EXACTLY how you would reach the MS dashboard from your browser (EX `http://localhost:9078`) then edit your google oauth client section for `Authorized redirect URIs` and add the URL MS has displayed.
117117+118118+ If it is NOT EXACTLY the same you either need to set MS's [base url](https://foxxmd.github.io/multi-scrobbler/docs/configuration/#base-url) or you can provide your own (Custom) Redirect URI for MS to use by setting it in `ytmusic.json` or ENV.
119119+120120+ <details>
121121+122122+ <summary>Using a Custom Redirect URI</summary>
123123+124124+ The three parts of the URL that must be the same:
125125+126126+ * it must start with `api` (after domain or subdirectory IE `my.domain.tld/api...` or `whatever.tld/subDir/api...`
127127+ * it must end in `ytmusic/callback`
128128+ * It must include `name=[NameOfSource]` in the query string
129129+130130+ Remember to add your custom URL to the `Authorized redirect URIs` section in the google oauth client!
131131+132132+ ```json
133133+ {
134134+ "type": "ytmusic",
135135+ "enable": true,
136136+ "name": "MyYTM",
137137+ "data": {
138138+ "clientId": "8910....6jqupl.apps.googleusercontent.com",
139139+ "clientSecret": "GOCSPX-WGXL6BSuQ343...",
140140+ "redirectUri": "http://my.custom.domain/api/ytmusic/callback?name=MyYTM"
141141+ },
142142+ "options": {
143143+ "logAuthUpdateChanges": true,
144144+ "logDiff": true
145145+ }
146146+ }
147147+ ```
148148+149149+ </details>
150150+151151+ AFTER changing the Authorized redirect URIs on Google Cloud console you may need to wait a few minutes for it to take affect. Then restart MS. From the dashboard click `(Re)authenticate` on the YTmusic source card and follow the auth flow:
152152+153153+ * On the screen about "testing" make sure you hit **Continue** (not Back To Safety)
154154+ * Make sure to select ALL scopes/permissions/grants it asks you about
155155+ * `Select what [YourAppName] can access` -> Select all
156156+157157+ Once the flow is finished MS will get the credentials and start polling automatically. You should not need to re-authenticate again after restarting MS as it saves the credentials to the `/config` folder.
158158+159159+ </TabItem>
160160+ <TabItem value="ytt" label="YoutubeTV">
161161+162162+ :::warning
163163+164164+ Using the built-in YoutubeTV authentication is unlikely to work due to [Google restricting what permissions TV clients can have](https://github.com/yt-dlp/yt-dlp/issues/11462#issuecomment-2471703090). This authentication method should not be used.
165165+166166+ :::
167167+168168+ To authenticate start multi-scrobbler with an empty YT Music configuration. An authentication URL/code will be logged in additon to being available from the dashboard.
169169+170170+ ```
171171+ ERROR: Sign in with the code 'CLV-KFA-BVKY' using the authentication link on the dashboard or https://www.google.com/device
172172+ ```
173173+174174+ Visit the authentication URL and enter the code that was provided (also available on the dashboard). After completing the setup flow MS will log `Auth success` and the YT Music dashboard card will display as **Idle** after refreshing. Click the **Start** link to begin monitoring.
175175+176176+ </TabItem>
177177+</Tabs>
178178+179179+## Configuration
180180+181181+<Config config="YTMusicSourceConfig" fileContent={JsonConfig} name="ytmusic">
182182+| Environmental Variable | Required? | Default | Description |
183183+|------------------------|-----------|---------|-----------------------------------------------|
184184+| YTM_COOKIE | No | | Value for Cookie Authentication |
185185+| YTM_CLIENT_ID | No | | Client ID for OAuth Athentication |
186186+| YTM_CLIENT_SECRET | No | | Client Secret for OAuth Athentication |
187187+| YTM_REDIRECT_URI | No | | A custom redirect URI for OAuth Athentication |
188188+| YTM_LOG_DIFF | No | false | Log YTM history changes |
189189+</Config>