# \[WS\] Deezer

**URL:** https://community.mp3tag.de/t/ws-deezer/45537
**Category:** Web Sources Scripts
**Created:** [May 25, 2019, 9:44pm UTC](https://community.mp3tag.de/t/ws-deezer/45537 "2019-05-25T21:44:52Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [May 25, 2019, 9:44pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/1 "2019-05-25T21:44:52Z")

</div>

This is a web source script for **Deezer** , a popular music streaming service.

It is particularly useful when looking to get information about the people involved in the music creation process of an album and its tracks, such as composers, lyricists, producers, engineers, and the like. Specifically, these are the tag fields parsed by the script:

`COVER; ALBUMARTIST; ALBUM; YEAR; PUBLISHER; UPC; ARTIST; TITLE; TRACK; DISCNUMBER; ISRC; ITUNESADVISORY; COMPILATION`

And optionally, when available:

`COMMENT; COMPOSER; LYRICIST; CONDUCTOR; INVOLVEDPEOPLE`

You can try it and make suggestions or tell me how to improve it. Enjoy!

[Deezer v1.0.src](https://community.mp3tag.de/uploads/default/original/2X/a/af1b62ab6e62e680a0cae1a53003f7a5d52abeb3.src) (18.9 KB)

> **Changelog**
>
> ```
> [2019-05-25] v1.0 Initial release
> 
> ```

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [May 26, 2019, 7:03am UTC](https://community.mp3tag.de/t/ws-deezer/45537/2 "2019-05-26T07:03:44Z")

</div>

Because I like to have the discnumber in the track too, I prefer tracknumber-formats like  
101/11 (for the first track of the first disk),  
201/11 (for the first track of the secornd disk)  
Could you tell me how to change your script to achieve this? Otherwise I have to work over this manually after using the script.

Another point:  
Would it be possible to display the number of tracks of an album in the overview where you choose the album?

Thanks for this great script. It is a pity that so many scripts are abandoned by their authors by some time (i.e. Spotify). So I am glad about every new script.

---

<div class="post-metadata">

### Author: ![tydaa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ce7236/32.png) [@tydaa](https://community.mp3tag.de/u/tydaa)
#### Post date: [May 26, 2019, 10:29am UTC](https://community.mp3tag.de/t/ws-deezer/45537/3 "2019-05-26T10:29:35Z")

</div>

Hi,

wow, thank you for your work but i miss the tag field "genre". there is no content  
can you install that?

---

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [May 26, 2019, 11:35am UTC](https://community.mp3tag.de/t/ws-deezer/45537/4 "2019-05-26T11:35:49Z")

</div>

> [@poster](#):
>
> Could you tell me how to change your script to achieve this? Otherwise I have to work over this manually after using the script.

I'll take a look into it, but these minor modifications involving numbers are harder to implement than it sounds because of the limitations of the Web Sources Framework.

I understand you, as I also like tuning my scripts to my liking so their output follows my preferred tag fields structure, but creating a lot of scripts with these kind of minor changes makes future updates to the script a bit of a nightmare. The best way to go in these situations is an Action, you shouldn't have to do it manually.

> [@poster](#):
>
> Would it be possible to display the number of tracks of an album in the overview where you choose the album?

Unfortunately, this is not possible as Deezer's search results web page doesn't include this information so the script can't parse it.

---

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [May 26, 2019, 11:42am UTC](https://community.mp3tag.de/t/ws-deezer/45537/5 "2019-05-26T11:42:26Z")

</div>

> [@tydaa](#):
>
> wow, thank you for your work but i miss the tag field "genre". there is no content  
> can you install that?

Unfortunately, this is not possible as Deezer doesn't provide the genre information for any album so the script can't parse it. It's not a script error.

---

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [May 28, 2019, 6:22pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/6 "2019-05-28T18:22:40Z")

</div>

> [@poster](#):
>
> Because I like to have the discnumber in the track too, I prefer tracknumber-formats like  
> 101/11 (for the first track of the first disk),  
> 201/11 (for the first track of the secornd disk)  
> Could you tell me how to change your script to achieve this? Otherwise I have to work over this manually after using the script.

Try this modified version of my script and tell me if it's what you are looking for:

[Deezer v1.0 (poster mod).src](https://community.mp3tag.de/uploads/default/original/2X/e/eae651ad69a2c6edc4865d06dd2852ec2ec2a496.src) (21.4 KB)

I've marked the modified sections using comments starting with this string: `### Poster mod`  
As I told you, when these scripts have to deal with number formatting it's not as simple as a one-liner change 😬. There are several changes scattered through the code.

---

<div class="post-metadata">

### Author: ![Purist](https://community.mp3tag.de/user_avatar/community.mp3tag.de/purist/32/6567_2.png) [@Purist](https://community.mp3tag.de/u/Purist)
#### Post date: [June 7, 2019, 7:00am UTC](https://community.mp3tag.de/t/ws-deezer/45537/7 "2019-06-07T07:00:15Z")

</div>

Great work vikaesar 👍 ❤  
Just a quick request please, is it possible to add the following (so it matches more closely the tags you get on flac from deezer?):  
ARTISTS  
BARCODE  
COPYRIGHT  
EXPLICIT  
LABEL  
LENGTH  
MEDIA  
SOURCE  
SOURCEID

Thank you in advance

---

<div class="post-metadata">

### Author: ![vikaesar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vikaesar/32/5892_2.png) [@vikaesar](https://community.mp3tag.de/u/vikaesar)
#### Post date: [June 7, 2019, 10:38am UTC](https://community.mp3tag.de/t/ws-deezer/45537/8 "2019-06-07T10:38:25Z")

</div>

Yes, I can write a modified version of the script to output some of those tags, which are commonly used with audio file formats using Vorbis comments for tagging purposes such as FLAC, instead of the ones currently used.

I don't know if Deezer provides all of them, though. What are SOURCE and SOURCEID used for? Also, why a LENGTH tag?

Can you give me an example that shows how they would be filled for a sample album?

---

<div class="post-metadata">

### Author: ![Purist](https://community.mp3tag.de/user_avatar/community.mp3tag.de/purist/32/6567_2.png) [@Purist](https://community.mp3tag.de/u/Purist)
#### Post date: [June 7, 2019, 4:36pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/9 "2019-06-07T16:36:53Z")

</div>

Thank you for your prompt response vikaesar 👍  
I have messaged the relevant info/example.

---

<div class="post-metadata">

### Author: ![xaoc](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xaoc/32/12614_2.png) [@xaoc](https://community.mp3tag.de/u/xaoc)
#### Post date: [August 4, 2019, 6:57am UTC](https://community.mp3tag.de/t/ws-deezer/45537/10 "2019-08-04T06:57:45Z")

</div>

pleas add tags 'bpm'

---

<div class="post-metadata">

### Author: ![SvD](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@SvD](https://community.mp3tag.de/u/SvD)
#### Post date: [April 8, 2020, 1:23pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/11 "2020-04-08T13:23:07Z")

</div>

Hi.  
Which lines should i edit to only download Cover Art?  
Thank you.

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [April 8, 2020, 9:26pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/12 "2020-04-08T21:26:03Z")

</div>

```auto
################################################################################
# Mp3tag Tag Source for Deezer v1.0 #
# #
# Created by vikaesar #
# Modified by stevehero 2020.04.08 #
# #
# KNOWN ISSUES: Genre information can't be parsed as it is not provided #
# by Deezer. #
# #
# When parsing multi-disc albums with more than 20 discs #
# then the total tracks for every disc past the twentieth #
# one aren't parsed, so their %track% field won't follow #
# this pattern: "track number/total tracks", it will just #
# show the track number. #
# #
# INSTRUCTIONS: This file needs to be stored in Mp3tag's tag sources #
# directory: #
# %APPDATA%\Mp3tag\data\sources #
# #
# CHANGELOG #
# #
# [2019-05-25] v1.00 Initial release #
# [2020-04-08] v1.00a Artwork only 1200px #
################################################################################
[Name]=Deezer
[BasedOn]=www.deezer.com
[IndexUrl]=https://www.deezer.com/search/%s
[AlbumUrl]=https://www.deezer.com/en/album/
[WordSeparator]=%20
[IndexFormat]=%_url%|%Album%|%Artist%|%Year%
[SearchBy]=%Artist% %Album%
[Encoding]=url-utf-8
################################################################################
# LIST OF SEARCH RESULTS DIALOG #
################################################################################
[ParserScriptIndex]=...
## Comment/uncomment for debugging purposes:
# DebugWriteInput "C:\Users\your_username\Desktop\mp3tag-deezer-ws-index-debug.out.html"
# Debug "ON" "C:\Users\your_username\Desktop\mp3tag-deezer-ws-index-debug.txt"
FindLine "<script>window. __DZR_APP_STATE__"
RegexpReplace ".+<script>.+ = " ""
RegexpReplace "</script>.+</div>" ""
json "ON" "current"
## First, check if we've found anything
json_select_object "ALBUM"
json_select "count"
## Then iterate over all releases
ifnot "0"
  json_foreach "data"
    # URL
    json_select "ALB_ID"
    SayRest
    Say "|"
    # Album
    json_select "ALB_TITLE"
    SayRest
    Say "|"
    # Artist
    json_select "ART_NAME"
    SayRest
    Say "|"
    # Year
    json_select "PHYSICAL_RELEASE_DATE"
    SayRest
    SayNewline
  json_foreach_end
endif
################################################################################
# ADJUST TAG INFORMATION DIALOG #
################################################################################
[ParserScriptAlbum]=...
## Comment/uncomment for debugging purposes:
# DebugWriteInput "C:\Users\your_username\Desktop\mp3tag-deezer-ws-album-debug.out.html"
# Debug "ON" "C:\Users\your_username\Desktop\mp3tag-deezer-ws-album-debug.txt"
FindLine "<script>window. __DZR_APP_STATE__"
RegexpReplace ".+<script>.+ = " ""
RegexpReplace "</script>.*" ""
json "ON" "current"
## First, parse album data
json_select_object "DATA"
# Cover
OutputTo "COVERURL"
json_select "ALB_PICTURE"
Say "https://e-cdns-images.dzcdn.net/images/cover/"
SayRest
## You can choose the cover resolution here, up to 1200px x 1200px
Say "/1200x1200.jpg"
# Say "/512x512.jpg"

```

---

<div class="post-metadata">

### Author: ![SvD](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@SvD](https://community.mp3tag.de/u/SvD)
#### Post date: [April 9, 2020, 11:56am UTC](https://community.mp3tag.de/t/ws-deezer/45537/13 "2020-04-09T11:56:38Z")

</div>

Excellent!  
Thank you so much.

---

<div class="post-metadata">

### Author: ![tyler0887](https://community.mp3tag.de/user_avatar/community.mp3tag.de/tyler0887/32/8251_2.png) [@tyler0887](https://community.mp3tag.de/u/tyler0887)
#### Post date: [October 28, 2020, 3:52am UTC](https://community.mp3tag.de/t/ws-deezer/45537/14 "2020-10-28T03:52:49Z")

</div>

Been using MP3Tag for awhile now and just discovered that more sources can be added. I downloaded the above SRC and put it into the ~Mp3tag\data\sources~ folder but it is not showing up in my sources when i open a fresh process of the application. Am I doing something incorrectly or not doing everything completely? Thanks for your time.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 28, 2020, 5:30am UTC](https://community.mp3tag.de/t/ws-deezer/45537/15 "2020-10-28T05:30:41Z")

</div>

The correct location is described in this thread:

> [@Installation & Backup](https://community.mp3tag.de/t/installation-backup/964/2):
>
> Can I keep my settings when updating to a new version? Yes, you can install a new version over an already installed version. The installation program will keep/upgrade your settings. Can I backup my settings or use them on a different computer? Yes, To backup your settings, please choose File → Save configuration. To restore the backup, you have to unzip the backup archive to the folder that opens when you choose File → Open configuration folder. Close Mp3tag to ensure that all files c…

---

<div class="post-metadata">

### Author: ![MikeT](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@MikeT](https://community.mp3tag.de/u/MikeT)
#### Post date: [December 7, 2020, 1:58pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/16 "2020-12-07T13:58:10Z")

</div>

Hi,

I am looking for a way to add the ISRC to all my files, without having to map every single song manually to its position on the album.

Is there a way to make this script work on a **single song** basis, rather than album based?

All my Songs have the (so I assume) relevant Infos needed to match them automatically:  
Artist, Title, Album

So can someone please modify this script to automatically pull only the ISRC-Code of each song from deezer (or any other source)?

Thanks and cheers  
Mike

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [December 10, 2020, 12:25am UTC](https://community.mp3tag.de/t/ws-deezer/45537/17 "2020-12-10T00:25:41Z")

</div>

Welcome! ISRC is not available on the source pages for deezer.

See here: view-source:https://www.deezer.com/en/album/111015702

---

<div class="post-metadata">

### Author: ![MikeT](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@MikeT](https://community.mp3tag.de/u/MikeT)
#### Post date: [December 10, 2020, 9:02am UTC](https://community.mp3tag.de/t/ws-deezer/45537/18 "2020-12-10T09:02:39Z")

</div>

... well, the Deezer-Script from this Thread already pulls the ISRC ...

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [December 10, 2020, 12:50pm UTC](https://community.mp3tag.de/t/ws-deezer/45537/19 "2020-12-10T12:50:54Z")

</div>

I didn't look at the script just the source of a url. I searched for ISRC and there's nothing for it. Strange, how the script can get it. It must be under some other html tag.

You can use the set function to set all other tags written apart from the ISRC at the bottom. Or delete all other `outputto` functions below the `[ParserScriptAlbum]` part. You will probably need the title there too so can line the correct track up with the left side in the info tag panel.

The scripts will need a complete rewrite for searching for the tracks individually so the above is something as a workaround.

---

<div class="post-metadata">

### Author: ![xaoc](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xaoc/32/12614_2.png) [@xaoc](https://community.mp3tag.de/u/xaoc)
#### Post date: [December 21, 2020, 2:40am UTC](https://community.mp3tag.de/t/ws-deezer/45537/20 "2020-12-21T02:40:54Z")

</div>

use API [https://api.deezer.com/2.0/album/111015702/tracks](https://api.deezer.com/2.0/album/111015702/tracks)

[Next page](https://community.mp3tag.de/t/ws-deezer/45537.md?page=2)
