[WS] Discogs (pone mod)

pone proudly presents:

Update 3.10

NEW:
There is a new "API-List Master Release Page" script which lists all release versions of a Discogs Master Release Page. It needs the Master Release ID Number as search input. It writes the same tag-field as the other scripts do.

NEW:
The "Direct by URL" and the "Standard Search" scripts can now tag an album from a Discogs Master Release Page. With this come serveral new fields in the setting file. All these fields are called DISCOGS_MASTER ... and correspond to normal DISCOGS_... fields. After the update, they will also have the same value which you have in the normal DISCOGS_... fields, e.g. DISCOGS_MASTER CATALOG# will be linked to the same field as you have for DISCOGS_CATALOG#. The only exception is DISCOGS_MASTER RELEASE ID, which would obvious make no sense in DISCOGS RELEASE ID, since the number refers to a different ID system.
I first thought I would use the standard tag fields for that, but than discovered some advantages when you can choose to write only some of them for master releases or map them to other fields.
So, some thoughts on the fields:

DISCOGS_MASTER RELEASE ID - As sayed, this is the only field which is mapped differently than the normal fields. It is also the input for the search box of the new API-List Script described above. So if you don't really want to tag from master release pages, maybe you want to write only this field and set all others to "no". Then you can run the new "API-List Master Release Page" script afterward and find your desired release page. Or you leave all other tag fields as they are, but don't write the information. Instead you can copy the master ID from the "adjust tag infromation" dialog, click cancel, and run the "API-List Master Release Page" script.

DISCOGS_MASTER NOTES - These information is not present on many master release pages, but if present, it has alway extra information which you can't find on the normal release pages.

DISCOGS_MASTER RELEASE URL - The URL of the master release page, contains of course the master release ID.

DISCOGS_MASTER YEAR - This information is taken directly from the master release page, I think it's always the year of the earliest release.

DISCOGS_MASTER ALBUMARTIST, DISCOGS_MASTER ARTIST, DISCOGS_MASTER ALBUM, DISCOGS_MASTER GENRE, DISCOGS_MASTER STYLE, DISCOGS_MASTER RATING
- This information is taken directly from the master release page and is normally valid for all release versions.

DISCOGS_MASTER TOTALTRACKS, DISCOGS_MASTER TITLE, DISCOGS_MASTER TRACK INDEX - This information is taken directly from the master release page, but it can vary between the different release versions. Discogs always takes the information from the so called "key release", which is the one listed first and which is intended to be the one which "that best represents the title and image for all the releases in the master release, with the title taking priority". So I guess it should be the the original release in most cases.

DISCOGS_MASTER FORMAT, DISCOGS_MASTER LABEL, DISCOGS_MASTER CATALOG#, DISCOGS_MASTER COUNTRY - This information is not directly on the master release page. My script takes it from the first list release (= key release).

Additionally, there are two new option fields for the master pages, which again correspond to options already there for the standard release pages:

DISCOGS~TRACK_OPTION: LEAVE MASTER TRACK EMPTY?, TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR MASTER SCRIPTS

NEW:
All scripts can write the Discogs Master Release ID and the Discogs Master Release URL now (if there is a master release belonging to the release you are tagging). The tag fields are the same as when you tag directly from a master page as shown above. However there are two extra yes/no option where you can disable or allow these fields for normal release pages:
OPTION: WRITE DISCOGS_MASTER RELEASE ID WHEN TAGGING FROM NORMAL RELEASE PAGES
OPTION: WRITE DISCOGS_MASTER RELEASE URL WHEN TAGGING FROM NORMAL RELEASE PAGES

The first one is set per default to "yes" if you are using the DISCOGS_RELEASE ID already. If are don't using that (have set it to "no"), the master id is also not written by deffault. The second option is set to "no" per default, because I don't think most people want two tag fields with urls in a file.

NEW:

Another new DISCOGS~TRACK NUMBER ... field called DISCOGS~TRACK NUMBER / TOTALTRACKS
It's basically the same as DISCOGS~TRACK NUMBER WITH LEADING ZEROS / TOTALTRACKS, just without leading zeros.

And another new DISCOGS~TRACK NUMBER ... field called DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER STARTING FROM 1 AGAIN FOR EVERY DISC.
It's basically the same as DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER STARTING FROM 01 AGAIN FOR EVERY DISC, just without leading zeros.
Note that you can write only one of the three DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: ... fields to "track" (but you can write them all into different tag fields if you want).

NEW:
The Search Scripts show now two new categories in the list of search results. Format Description (like Album, Compilation, Single, LP, EP, Promo, 12", ...) and Country.
This display is not 100% accurate, but for the majority of releases it works pretty nice. It justs filters all the info text, which was always there, for all relevant words and displays them in these categories.
However, they are not always displayed at Discogs Search (i don't know why), so the script can't show them always. And if the keywords appear for other reasons in the info text (e.g. they are part of the arits name, album name, notes, ...), they will appear wrongly in this categories.
E.g. if you search for an album which has "Africa" in the name, all results will show "Africa" in the country category. But of course only in the list of search results, not in the "adjust tag information" dialog afterwards.

NEW:
The "Standard Search" script shows now the URL of Master Releases in the list of search results.

NEW:
There is a new yes/no option with which you can disable the display of the original track position behind the length, that was introduced at the last update.
OPTION: SHOW ORIGINAL TRACK POSTION BEHIND TRACK LENGTH (NO EFFECT ON WRITTEN TAGS)

NEW:
The scripts which use publisher/label for search look now for the tag fields %copyright% and %label% if %publisher% can not be found in the file.

CHANGED/NEW:
I changed the six option fields for multivalue tags:
OPTION: MULTIVALUE TAGS FOR GENRE
OPTION: MULTIVALUE TAGS FOR STYLE
OPTION: MULTIVALUE TAGS FOR LABEL
OPTION: MULTIVALUE TAGS FOR SERIES
OPTION: MULTIVALUE TAGS FOR CATALOG#
OPTION: MULTIVALUE TAGS FOR CATALOG#(SERIES)
to
TEXT OPTION: MULTI GENRE: MULTIVALUE TAG (= YES)/ONLY FIRST (= NO)/SEPERATE BY: (WRITE CHARACTERS)
TEXT OPTION: MULTI STYLE: MULTIVALUE TAG (= YES)/ONLY FIRST (= NO)/SEPERATE BY: (WRITE CHARACTERS)
TEXT OPTION: MULTI LABEL: MULTIVALUE TAG (= YES)/ONLY FIRST (= NO)/SEPERATE BY: (WRITE CHARACTERS)
TEXT OPTION: MULTI SERIES: MULTIVALUE TAG (= YES)/ONLY FIRST (= NO)/SEPERATE BY: (WRITE CHARACTERS)
TEXT OPTION: MULTI CATALOG#: MULTIVALUE TAG (= YES)/ONLY FIRST (= NO)/SEPERATE BY: (WRITE CHARACTERS)
TEXT OPTION: MULTI CATALOG#
(SERIES): MULTIVALUE TAG (= YES)/ONLY FIRST (= NO)/SEPERATE BY: (WRITE CHARACTERS)

When you had there "yes" before, you still have "yes".
When you had "no" before, you have now ", ", which are the two characters which are actually written into the tag fields between the different values in this case.
Now you have two new possibilies:
You can decide freely what you want as seperator between the different values. E.g. you might want to choose "; " which is also interpreted as mulitvalue seprerator by some mediaplayers and doesn't need the additional saving needed for "\\".
If you want just one value in (some of) those tag fields, set the value of the setting tag fields to "no". Then it's always only the first value which is written, no matter how many there are at discogs.

CHANGED:
Leading zeros for track numbers are no longer limited to 99 tracks. You will have now two leading zeros (alway three digits) when you have 100 tracks and more. This affects the tag fields
DISCOGS~TRACK NUMBER WITH LEADING ZEROS and DISCOGS~TRACK NUMBER WITH LEADING ZEROS / TOTALTRACKS, which I introduced last version.

FIXED:
The &page=2 appendix did not work for search by (Album)Artist and search by Album

FIXED:
There was a little bug at the export scripts which affected the discnumbers for multidiscs at certain settings.

FIXED:
The "tracklist for albums with mutlti song track" script didn't produce clear tracknumbers for the DISCOGS~TRACK_ONLY FOR MULTI DISC CDS... track formats when discogs had the number like 1-01, 1-02.1, 1-02.2, 1.03

FIXED:
The "tracklist for albums with mutlti song track" script doesn't repeat the artist now in multi song tracks of single artist albums.

as always:
download in the starting post
and don't be shy to give feedback

@ s_PLASH:

your settings:

DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER STARTING FROM 01 AGAIN FOR EVERY DISC = no
DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER STARTING FROM 1 AGAIN FOR EVERY DISC = track

you won't have leading zeros anymore with that setting. the script not only doesn't add them anymore, it also deletes them if they are there at discogs.

and, for getting the tracknumber out of the length column:

OPTION: SHOW ORIGINAL TRACK POSTION BEHIND TRACK LENGTH (NO EFFECT ON WRITTEN TAGS) = no

Pone, great results with the multi discs!

For single discs, tracks with leading zeros aren't working here. I've set DISCOGS~TRACK NUMBER WITH LEADING ZEROS as 'track'. An example is 2 In A Room – She's Got Me Going Crazy. I've attached my Discogs Pone Web Script Settings.mp3, if it can help.

For vinyl releases, with tracks as 'A', 'B', I've got an interesting result with Styx – Mr. Roboto:

On the right side tracks were named manually.

Another sugestion: Most people seems to get tags then rename files accordingly with ALT + 1 (Tag to Filename), and since file system won't accept some characters as double quotes (found on tags like 'Original 12" Version', for example) would be nice to get " replaced automatically with '' ( that's two ' ).

This is an action that I have to Replace _ALL " with '' (that's 2 '), so I can get the right file name instead of a missing ''.

On the specific release of Various – The Celluloid Years - 12"es And MORE..., as the " appears on Album tag field I've had to do the replace to get correct folder naming too.

As always, &

Discogs_Pone_Web_Script_Settings.mp3 (32.5 KB)

just a quick answer, more tomorrow:

the mr. robot result is correct. both tracks have exactly the same name, so title appears as last entry in the box at the right top corner. you have that often at releases where all tracks are named "untitled"

the missing leading zeros are strange. i will have a look.

for your replacement request, i don't think i will built that into the script, would be a lot of work. although there was a quiet similar request yesterday.
[WS] Discogs (pone mod)

NNNNNNNICE :w00t: great job, dude! rly!
absolutely agree with david.lynch's appreciation (maybe i'm even more grateful because i got no requests left. although he uses way cooler smileys than i do to show his appreciation, i'm more grateful xD. how does he do those smiley btw? <_<

track numbering was wrong (I'm not completely sure if would be better to number them when they are letters, but it seems to be a good default), but this could be related with the leading zero that isn't working.

no problem, for now I couldn't think of anything else to suggest (that's unbelievable and I know it! )

your setting file has:
DISCOGS~TRACK_ONLY FOR VINYL & CASSETTES: POSITION AS ON RELEASE PAGE = no
if you want letters for vinyl, set this to "track"

btw: your setting file has:
DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER COMBINED WITH DISCNUMBER = track
DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER STARTING FROM 01 AGAIN FOR EVERY DISC = track
that doesn't make sense and is not possible. you can have only one of them. in your case, i think the first always overwrites the second, because i put it afterwards in the script.

i see now what the problem with the leading zero is:
i changed the behaviour of the script in such a way, that the number of leading zeros is defined by totaltracks, that means:

1-9 totaltracks: 1, 2, 3, ... 9
10-99 totaltracks: 01, 02, 03, ... 99
100-999 totaltracks: 001, 002, 003, ... 999

so that's no bug, but wanted behaviour :wink:
do you want leading zeros if totaltracks are 1-9? i guess i could make another option for that...

EDIT:
done! see post about update 3.11 below :sorcerer:

a different question:
i see this squares in your screenshot at DISCOGS_MEDIATYPE (where it should be ⅓ ) and UNSYNCEDLYRICS (where it should be a linebreak, not visible there). Do you have these squares only in the preview and tag panel, or are they actually written into the tags?

Update 3.11

CANGED/NEW:
At the last update, the behaviour of the script was changed in such a way, that the number of leading zeros was defined by totaltracks. That meant:
1-9 totaltracks: 1, 2, 3, ... 9
10-99 totaltracks: 01, 02, 03, ... 99
100-999 totaltracks: 001, 002, 003, ... 999

Now 1-9 totaltracks have also 01, 02, 03, ....

So my script is now counting in the same way as Mp3tag's Auto-Numbering Wizard. You can disable that new behaviour, if you set the following new option to "yes":
DISCOGS~TRACK_OPTION: DISABLE LEADING ZERO IF LESS THAN 10 TOTALTRACKS

That change only affects the leading zeros at DISCOGS~TRACK NUMBER WITH LEADING ZEROS and DISCOGS~TRACK NUMBER WITH LEADING ZEROS / TOTALTRACKS.

as always:
download in the starting post
and don't be shy to give feedback

That's all I ever wanted! (...from a Mp3tag script)

I've changed the "DISCOGS~TRACK_ONLY FOR MULTI DISC CDS: NUMBER COMBINED WITH DISCNUMBER" to = "no" instead of "track".

Tested with one disc release, 2 discs, vinyl; numbering is ok with a leading zero , and when release have more than one disc track starts at '01' on next disk

So, I'm using your script like this:

  1. Right-click on the folder, choose 'Mp3tag' from the explorer context menu;
  2. CTRL + A to select all tracks;
  3. ALT + S, P, W ("Direct by URL"), paste Discogs URL release and ;
  4. Just press if all information is ok;
  5. ALT + 5 to get my 2 custom actions that first replace " with '' (that's 2 x ') and then rename folder with %albumartist% - %album% '['$regexp(%catalog #%,',.+',)']';
  6. Select renamed folder on explorer, ALT + 1 to rename files as tags: %track% - %artist% - %title%;

This way I'm getting perfect folders names, filenames and tags, with the help of your amazing script, of course

I've always seen those wrong characters. The following screen shows with more detail. The UNSYNCEDLYRICS are displayed correctly on WMP 11.

, absolutely great job!

great to hear that. pleased to make you happy

just a tipp:

if you use
5.: $replace(%albumartist% - %album% '['$regexp(%catalog #%,',.+',)']',",'''')
6.: $replace(%track% - %artist% - %title%,",'''')
you don't have to replace " with '' in the tags, but still get the same filenames.

$replace(...,",'''') that is 1 x " after the first comma and 4 x ' after the second.

Hi Pone,

great work and thanks al lot for your script!

I need it to tag my singles quick with Relasedate and Genere only. So I set the most options to no but everytime I get a tracknumber 1 at the track tag. How can I stop tagging any tracknumber?

Thanks, Pauli

DISCOGS~TRACK_OPTION: LEAVE TRACK EMPTY? = yes
DISCOGS~TRACK_OPTION: LEAVE MASTER TRACK EMPTY? = yes

Set all other DISCOGS~TRACK... fields to no

Thanks, now it works!

Pauli

hi pone, great update. how do i go about getting DATE in the format MMDD.

It is coming up YYYY-MM-DD

the script offers only YYYY-MM-DD and DD.MM.YYYY as easy option.

But you can use the TEXT OPTION: FREE WEB SOURCES SCRIPT CODE... fields for that.

Set DISCOGS_DATE to "no" and add the following code to
TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR DJ SETS IN ONE FILE TRACKLIST SCRIPT
TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR MULTISONG-TRACKS TRACKLIST SCRIPT
TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR STANDARD SCRIPTS

outputto "date"
gotoline 3
findline "class=\"head\">Released:" 1 1
findline "&year=" 1 1
findinline "&year" 1 1
if "="
    joinuntil "</a>"
    unspace
    regexpreplace "<[^>]+>" ""
    replace "Jan" "-01-"
    replace "Feb" "-02-"
    replace "Mar" "-03-"
    replace "Apr" "-04-"
    replace "May" "-05-"
    replace "Jun" "-06-"
    replace "Jul" "-07-"
    replace "Aug" "-08-"
    replace "Sep" "-09-"
    replace "Oct" "-10-"
    replace "Nov" "-11-"
    replace "Dec" "-12-"
    regexpreplace "[^-0-9]" ""
    
    regexpreplace "(\d\d)-(\d\d)-(\d\d\d\d)" "$3-$2-$1"
    regexpreplace "-(\d\d)-(\d\d\d\d)" "$2-$1-00"
    regexpreplace "(\d\d\d\d)$" "$1-00-00"
    regexpreplace "(\d\d\d\d)-(\d\d)-(\d\d)" "$2$3"
    sayrest
endif

This gives you MMDD as date, with 00 for missing day or month.

Discogs Master Release pages don't offer a release date, the have only year.
So you can only add

outputto "date"
say "0000"

to TEXT OPTION: FREE WEB SOURCES SCRIPT CODE FOR MASTER SCRIPTS if you want that.

How do I show/convert the tracklisting to show 1,2,3 for Vinyl.

I've read the changes, but I don't understand how i'm to automatically add the sequence tracklisting.

And even though it shows A1, A2, A3, from the web I'm not sure where to correct the changes in the script to show.

Currently, I'm using Window Media Player to list the tracks # and then MP3 Tag to download the info.

Thanks...

Are you talking about discogs pone mod.

If so, what do you have now and what do you want in what fields?

yes, I'm referring to the new Script 3.11.

Before I update from 3.9 to current 3.11, when I pulled down the tag data... The script would show

  1. Title Performer etc...

What I'm getting now is:

Title Track Temp Performer etc.

Because Discogs doesn't have all Album in thier database (The A1, A2, B1,) would cause a problem in keepi8ng my database consistent; therefore, I would like it to show the old data:

01 Title Performer .....

cheers mate, works as described.

@ moderators / dano:
please merge this topic with the [WS] Discogs (pone mod) topic.

you will get the old data if you just update your setting file and create the scripts from it without changing anything in the settings.

so i can only guess what's confusing you.

until version 3.8 there was the field DISCOGS_TRACK POSITION with "track temp" as default tag field mapped to it.

in 3.9, when i finally found a way change the input of track, i introduced several new DISCOGS~TRACK... fields and renamed the old DISCOGS_TRACK POSITION to DISCOGS~TRACK POSITION (SAME AS BEFORE VERSION 3.9, NOT ALWAYS WRITTEN). that renaming is made when you update the setting file, the value (mapped tag field) stays the same, and nothing should be changed.

in 3.11, i decided to change the default value of DISCOGS~TRACK POSITION (SAME AS BEFORE VERSION 3.9, NOT ALWAYS WRITTEN) from "track temp" to "no". but that affects only new downloaded setting files. if you keep your old one and just update it, the setting is not changed.

When you don't get your normal track field anymore, you will have:

  • either set one of the DISCOGS~TRACK... fields to "track", which will overwrite the standard 1, 2, 3, ... numbering. in this case, map these fields to a different field or set them to "no".
  • or you have set DISCOGS~TRACK_OPTION: LEAVE TRACK EMPTY? to "yes", which - as it says - leaves track empty. in this case, set it to "no"