···1212import AIOConfig from '!!raw-loader!../../../config/config.json.example';
1313import AzuracastConfig from '!!raw-loader!../../../config/azuracast.json.example';
1414import ChromecastConfig from '!!raw-loader!../../../config/chromecast.json.example';
1515-import DeezerConfig from '!!raw-loader!../../../config/chromecast.json.example';
1515+import DeezerConfig from '!!raw-loader!../../../config/deezer.json.example';
1616+import DeezerDeprecatedConfig from '!!raw-loader!../../../config/deezer-deprecated.json.example';
1617import IcecastConfig from '!!raw-loader!../../../config/icecast.json.example';
1718import JellyfinConfig from '!!raw-loader!../../../config/jellyfin.json.example';
1819import JriverfinConfig from '!!raw-loader!../../../config/jriver.json.example';
···872873 </TabItem>
873874</Tabs>
874875875875-### [~~Deezer~~](https://deezer.com/)
876876+### [Deezer](https://deezer.com/)
876877877877-:::warning
878878+<Tabs groupId="deezerSource" queryString>
879879+ <TabItem value="arl" label="Unofficial ARL">
880880+ :::warning
878881879879-**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.
882882+ 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.
880883881881-Users cannot create new applications on Deezer Developers and there is no guarantee existing applications will continue to work.
884884+ :::
882885883883-As a workaround consider integrating Deezer with last.fm and then using [last.fm as a Source](#lastfm-source).
886886+ :::info
884887885885-Users with existing Deezer applications in use with multi-scrobbler should consider this change as well to avoid future breaking issues with the unsupported API.
888888+ This Source will work only if you have a **Premium** Deezer account.
886889887887-[See this issue for more discussion.](https://github.com/FoxxMD/multi-scrobbler/issues/175#issuecomment-2296776625)
890890+ :::
888891889889-:::
892892+ ##### Retrieve ARL
890893891891-Create a new application at [Deezer Developers](https://developers.deezer.com/myapps)
894894+ 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.
892895893893-* Application Domain must be the same as your multi-scrobbler domain. Default is `localhost:9078`
894894-* Redirect URL must end in `deezer/callback`
895895- * Default would be `http://localhost:9078/deezer/callback`
896896+ **After logging into Deezer**, use one of the methods below to retrieve the `arl` cookie value:
896897897897-After application creation you should have credentials displayed in the "My Apps" dashboard. You will need:
898898+ <Tabs groupId="arlRetrival">
899899+ <TabItem value="chrome" label="Chrome">
900900+ 1. On deezer.com, press F12 to open the Developer Tools window.
901901+ 2. Go to the Applications tab. Press the '>>' More tabs icon if it's hidden.
902902+ 3. Under the Cookies Filter, click deezer.com, then the text bar name `arl`.
903903+ 4. Copy all the contents shown in the **Cookie Value** pane.
904904+ </TabItem>
905905+ <TabItem value="firefox" label="Firefox">
906906+ 1. On deezer.com, hit Ctrl+Shift+I to open Developer Tools
907907+ 2. Go to the Storage Tab, then expand Cookies in the sidebar and select deezer.com
908908+ 3. Find the row with `arl` as the name, then double click the Value column and right click -> copy the value
909909+ </TabItem>
910910+ </Tabs>
898911899899-* **Application ID**
900900-* **Secret Key**
901901-* **Redirect URL** (if not the default)
912912+ #### Configuration
902913903903-**If no access token is provided...**
914914+ <Tabs groupId="configType" queryString>
915915+ <TabItem value="env" label="ENV">
916916+ | Environmental Variable | Required? | Default | Description |
917917+ | :--------------------- | --------- | ------- | ------------------------------------------------ |
918918+ | `DEEZER_ARL` | Yes | | The ARL cookie value retrieved from your browser |
919919+ </TabItem>
920920+ <TabItem value="file" label="File">
921921+ <details>
904922905905-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.
923923+ <summary>Example</summary>
906924907907-#### Configuration
925925+ <CodeBlock title="CONFIG_DIR/deezer.json" language="json5">{DeezerConfig}</CodeBlock>
908926909909-<Tabs groupId="configType" queryString>
910910- <TabItem value="env" label="ENV">
911911- | Environmental Variable | Required? | Default | Description |
912912- |------------------------|-----------|-----------------------------------------|-----------------------------------|
913913- | `DEEZER_CLIENT_ID` | Yes | | Your **Application ID** |
914914- | `DEEZER_CLIENT_SECRET` | Yes | | Your **Secret Key** |
915915- | `DEEZER_REDIRECT_URI` | No | `http://localhost:9078/deezer/callback` | URI must end in `deezer/callback` |
916916- </TabItem>
917917- <TabItem value="file" label="File">
918918- <details>
927927+ </details>
919928920920- <summary>Example</summary>
929929+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
930930+ </TabItem>
931931+ <TabItem value="aio" label="AIO">
932932+ <details>
921933922922- <CodeBlock title="CONFIG_DIR/deezer.json" language="json5">{DeezerConfig}</CodeBlock>
934934+ <summary>Example</summary>
923935924924- </details>
936936+ <AIOExample data={DeezerConfig} name="deezer"/>
925937926926- or <SchemaLink lower objectName="DeezerSourceConfig"/>
927927- </TabItem>
928928- <TabItem value="aio" label="AIO">
929929- <details>
938938+ </details>
939939+940940+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
941941+ </TabItem>
942942+ </Tabs>
930943931931- <summary>Example</summary>
932944933933- <AIOExample data={DeezerConfig} name="deezer"/>
945945+ ##### Duplicate detection
934946947947+ 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"`
948948+949949+ <details>
950950+951951+ <summary>deezer.json example</summary>
952952+953953+ ```json title="deezer.json"
954954+ [
955955+ {
956956+ "name": "MyDeezer",
957957+ "data": {
958958+ "arl": "UOsRPjT3U5Dhaaup3x...",
959959+ },
960960+ "options": {
961961+ "fuzzyDiscoveryIgnore": "aggressive"
962962+ }
963963+ }
964964+ ]
965965+ ```
935966 </details>
936967937937- or <SchemaLink lower objectName="DeezerSourceConfig"/>
968968+ 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.
969969+938970 </TabItem>
971971+ <TabItem value="official" label="Official API">
972972+973973+ :::warning
974974+975975+ **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)
976976+977977+ Users cannot create new applications on Deezer Developers and there is no guarantee existing applications will continue to work.
978978+979979+ As a workaround consider:
980980+981981+ * Using the alternative [Deezer Source that uses unofficial, internal API via ARL](./?deezerSource=arl#deezer)
982982+ * Connect Deezer with Last.fm and then use [Last.fm as a Source](#lastfm-source)
983983+984984+ :::
985985+986986+ Create a new application at [Deezer Developers](https://developers.deezer.com/myapps)
987987+988988+ * Application Domain must be the same as your multi-scrobbler domain. Default is `localhost:9078`
989989+ * Redirect URL must end in `deezer/callback`
990990+ * Default would be `http://localhost:9078/deezer/callback`
991991+992992+ After application creation you should have credentials displayed in the "My Apps" dashboard. You will need:
993993+994994+ * **Application ID**
995995+ * **Secret Key**
996996+ * **Redirect URL** (if not the default)
997997+998998+ **If no access token is provided...**
999999+10001000+ 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.
10011001+10021002+ #### Configuration
10031003+10041004+ <Tabs groupId="configType" queryString>
10051005+ <TabItem value="env" label="ENV">
10061006+ | Environmental Variable | Required? | Default | Description |
10071007+ |------------------------|-----------|-----------------------------------------|-----------------------------------|
10081008+ | `DEEZER_CLIENT_ID` | Yes | | Your **Application ID** |
10091009+ | `DEEZER_CLIENT_SECRET` | Yes | | Your **Secret Key** |
10101010+ | `DEEZER_REDIRECT_URI` | No | `http://localhost:9078/deezer/callback` | URI must end in `deezer/callback` |
10111011+ </TabItem>
10121012+ <TabItem value="file" label="File">
10131013+ <details>
10141014+10151015+ <summary>Example</summary>
10161016+10171017+ <CodeBlock title="CONFIG_DIR/deezer.json" language="json5">{DeezerDeprecatedConfig}</CodeBlock>
10181018+10191019+ </details>
10201020+10211021+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
10221022+ </TabItem>
10231023+ <TabItem value="aio" label="AIO">
10241024+ <details>
10251025+10261026+ <summary>Example</summary>
10271027+10281028+ <AIOExample data={DeezerDeprecatedConfig} name="deezer"/>
10291029+10301030+ </details>
10311031+10321032+ or <SchemaLink lower objectName="DeezerSourceConfig"/>
10331033+ </TabItem>
10341034+ </Tabs>
10351035+10361036+ </TabItem>
9391037</Tabs>
10381038+94010399411040### [Youtube Music](https://music.youtube.com)
9421041
···9191 }
92929393 protected async doBuildInitData(): Promise<true | string | undefined> {
9494- this.logger.warn('This Source is DEPRECATED! Deezer has dropped support official API support. New apps cannot be created and existing apps are not guaranteed to continue working. See the documentation or this issue for more information: https://github.com/FoxxMD/multi-scrobbler/issues/175#issuecomment-2296776625');
9494+ this.logger.warn('This Source is DEPRECATED! Deezer has dropped support official API support. New apps cannot be created and existing apps are not guaranteed to continue working. Refer to the MS documentation for a new Deezer Source implementation.');
95959696 try {
9797 const credFile = await readJson(this.workingCredsPath, {throwOnNotFound: false});