[WS] Discogs (pone mod)

Stay tuned. I'm looking for it right now.

Have you downloaded the update from dano? I just discovered it now. Glad to see my script working again.

It is not possible with the script alone. But you can do it with a little extra action group after using the script.

Script settings:

ARTIST NAMES: ...

 Extra Artist - Track Credits - Name Variation:    >MIXARTIST
 - name/role format:                >name (role)
 - combine names with same roles        >no
 
 if more than one extra track artist:
 - multivalue tag field            >no
 - multiline tag field                >no
 - list of names                >yes
   - seperating characters used in list        >, 
 Extrafields:                >FEAT TEMP:Featuring<
 - delete extra fields from main section        >yes
 
 ...<strike><i>

It seems as if the last option is not working correctly. I still get the featuring artist in the MIXARTIST field, which should not be the case with a "yes" in the las line above.
The rule here is:
Extrafield: >YOUR TAG FIELD NAME:the extra artist role as written on discogs (case sensitiv)<

Action Group:

Action 1: Format Value
Field: TITLE
Formatstring: %title%[ft. %feat temp%]

Action 2: Remove Fields
Field: FEAT TEMP

Wooohoa :slight_smile: Thnx u!

Yes, Im update script from dano.

QUOTE (pone @ Nov 8 2012, 02:18) <{POST_SNAPBACK}>
It is not possible with the script alone. But you can do it with a little extra action group after using the script.

Script settings:

ARTIST NAMES: ...

 Extra Artist - Track Credits - Name Variation:    >MIXARTIST
 - name/role format:                >name (role)
 - combine names with same roles        >no
 
 if more than one extra track artist:
 - multivalue tag field            >no
 - multiline tag field                >no
 - list of names                >yes
   - seperating characters used in list        >, 
 Extrafields:                >FEAT TEMP:Featuring<
 - delete extra fields from main section        >yes
 
 ...<strike><i>

It seems as if the last option is not working correctly. I still get the featuring artist in the MIXARTIST field, which should not be the case with a "yes" in the las line above.
The rule here is:
Extrafield: >YOUR TAG FIELD NAME:the extra artist role as written on discogs (case sensitiv)<

Action Group:

Action 1: Format Value
Field: TITLE
Formatstring: %title%[ft. %feat temp%]

Action 2: Remove Fields
Field: FEAT TEMP


Ok, so I need write this Script Settings to your main script? And add a new Action Group? Or what I need to do now, sorry for my nobs qwestions. :slight_smile: And thnx u again for work.

yes, exactly.
Edit the "ARTIST NAMES" field in the settings file as shown above and repeat steps 6 & 7 form the installation instructions in the starting post..

Add a new action group to mp3 tag and execute it after every usage of the discogs script.

Okey, i think i can do it :wink:

Hi pone,

I use your scripts from the beginning and like them very much.

But coould you please explain how to use

You can generate extra tag fields for Companies and Barcodes and Identifiers.
>MASTERED:Mastered At<>PRESSED:Pressed By<
>MATRIX:Matrix / Runout<>BARCODE:Barcode<

Where and How do I have to put it in the settings.mp3?

I figured i have to put it here under extrafields, but if I enter it there the script stops working. So I think my syntax is wrong.

Companies etc:                    >COMPANY
- with headline                    >yes
- multiline                        >yes
Extrafields:                    >
- delete extra fields from main section            >yes
QUOTE (FreaQ @ Nov 16 2012, 15:12) <{POST_SNAPBACK}>
Hi pone,

I use your scripts from the beginning and like them very much.

But coould you please explain how to use

You can generate extra tag fields for Companies and Barcodes and Identifiers.
 >MASTERED:Mastered At<>PRESSED:Pressed By<
 >MATRIX:Matrix / Runout<>BARCODE:Barcode<

Where and How do I have to put it in the settings.mp3?

I figured i have to put it here under extrafields, but if I enter it there the script stops working. So I think my syntax is wrong.

It should look like this:

Companies etc:                    >COMPANY
 - with headline                    >yes
 - multiline                        >yes
 Extrafields:                    >MASTERED:Mastered At<>PRESSED:Pressed By<
 - delete extra fields from main section            >yes

In the line "Extrafields:" you can generate as many extra tag fields as you want. The syntax is:

YOUR TAG FIELD NAME:The company-category from discogs<
Note that the company-category has to be case sensitive for the script to work proper. You have to write "Mastered At" liked it is written at Discogs, not "mastered at".

QUOTE (pone @ Nov 18 2012, 21:17) <{POST_SNAPBACK}>
It should look like this:
Companies etc:                    >COMPANY
 - with headline                    >yes
 - multiline                        >yes
 Extrafields:                    >MASTERED:Mastered At<>PRESSED:Pressed By<
 - delete extra fields from main section            >yes

In the line "Extrafields:" you can generate as many extra tag fields as you want. The syntax is:

YOUR TAG FIELD NAME:The company-category from discogs<
Note that the company-category has to be case sensitive for the script to work proper. You have to write "Mastered At" liked it is written at Discogs, not "mastered at".


Thanks for the explanation.

Will try that.

So I got the Extra fields working, mostly.

I did as you said and created some extra fields for Companies and Identifiers.

As Identifiers is working (Barcode goes to BARCODE, etc) complete it is not working for all Companies.

It seems that the script has a problem with with the Copyright holders

This is written in the script

#< ## COMPANIES - extra fields # 
findinline "\"companies\":" 1 1
if " [{"
    outputto "COPYRIGHT"
    sayregexp "(?<=\"name\": \")[^\"]+?(?=\"[^\}]+\"entity_type_name\": \"Phonographic Copyright (p)\")" ", " "}],"
    outputto "COPYRIGHT"
    sayregexp "(?<=\"name\": \")[^\"]+?(?=\"[^\}]+\"entity_type_name\": \"Copyright (c)\")" ", " "}],"
    
    
    regexpreplace "\{[^\}]*?\"entity_type_name\": \"Phonographic Copyright (p)\"[^\}]*?\},*\s*" ""
    regexpreplace "\{[^\}]*?\"entity_type_name\": \"Copyright (c)\"[^\}]*?\},*\s*" ""
        replace "}, ]" "}]"
endif

Both Copyright entries go straight to COMPANY.

Example Discogs: http://www.discogs.com/DDiggler-Sounds-Fiction/release/66650

EDIT:
I just did some more tagging and stumbled upon three other problems:

  1. If I use Extrafields in the Credits section and all Credits are covered by my Extrafields the script still writes an empty CREDIT tag field.

  2. I use also Extrafields for each track for example "Written-by" goes to WRITTEN. If the Written-By on the Discogs website contains a comma (artist1, Artist2) the script writes in my tag artist1\\Artist2, even the seperator should a comma
    Example: http://www.discogs.com/Thomas-Schumacher-P...1/release/12944

  3. For the initial problem I may know why it dows not work.
    If you go to http://www.discogs.com/Thomas-Schumacher-P...1/release/12944 you will see that in the companies section there is "Other (Label Code)" and Other (Rights Societies) which are also not handled porperly from the script. I think that is of the brackets in the credit name.

Updated the Scripts & Settings file

Discogs_Pone_Direct_by_Discogs_ID.rar (12.1 KB)

Hello, have a question. Why is that no matter how many ways and tries I input artist, album, genre and all sorts of combinations with extreme spelling accuracy (which shouldn't be required) and I'm never successful with acquiring results? "Sorry, no entries are matching your search criteria". Is this a discogs handling of search? Imagine if Google took us to error results because we misspelled 'wakipidea'? But as soon as I google a simple, mispelled 'artist - title' and 'discogs' at end of the keyword and immediately the results come up in which I always believe their non existent in the database. Of course from now on I copy the ID and search it in the wonderful plugin. Is there a fix for this? Are there other 3rd party plugins for this inconsistent fix? Googling and copying the ID is quite inefficient. Since I depend much on EDM genres, MusicBrainz and freedb are out of the question since the tagging are quite rare and non-existent, Amazon slightly having certain hits too. Thanks :book:

Did you use the updated script from dano?
[WS] Discogs (pone mod)
There search should be possible again.

Thanks I will give that a try. Another question, I have finally moved my library of music for use in combination between foobar and mediamonkey. I have noticed that by tagging in mp3tag, the genre field tags with multiple double backslashes "\\". Now I have always used 1 form of genre tagging but in specific cases such as electronic music, mp3tag tags it all in the GENRE field as "genre1\\genre2\\genre3". But when I tag in foobar using the discogs plugin, it tags "Electronic" music properly under GENRE and STYLES displays individually and separately in it's own line "STYLE: style1" then line below it, "STYLE: style2". Does it have anything to do with the use of seperators like "; " or "\\" or anything else? In the pone mod,

Genre:                >GENRE
if more than one genre:
- only the first            >no
- multivalue tag field        >yes
- list of names            >no
  - seperating characters used in list    >; 

Style:                >GENRE
if more than one style:
- only the first            >no
- multivalue tag field        >yes
- list of names            >no
  - seperating characters used in list    >; 
______________________________________________
Help:
You can combine Genres & Styles in one tag field if you use the same name.

I noticed that under "- seperating characters used in list >, " used the comma but I switched to "; ". and nothing seemed to affect anything. Is there other modifications under the hood to modify this? Because in such examples like searching a specific genre, I can search for "style2" and songs with "style2" whether it displays or not in the playlists player should show up instead of not filtering it properly and typing out "genre1\\style1\\style" just to display the "style2" track alone. Thanks.

QUOTE (amp @ Dec 4 2012, 22:06) <{POST_SNAPBACK}>
Thanks I will give that a try. Another question, I have finally moved my library of music for use in combination between foobar and mediamonkey. I have noticed that by tagging in mp3tag, the genre field tags with multiple double backslashes "\\\\". Now I have always used 1 form of genre tagging but in specific cases such as electronic music, mp3tag tags it all in the GENRE field as "genre1\\\\genre2\\\\genre3". But when I tag in foobar using the discogs plugin, it tags "Electronic" music properly under GENRE and STYLES displays individually and separately in it's own line "STYLE: style1" then line below it, "STYLE: style2". Does it have anything to do with the use of seperators like "; " or "\\\\" or anything else? In the pone mod,
Genre:                >GENRE
 if more than one genre:
 - only the first            >no
 - multivalue tag field        >yes
 - list of names            >no
   - seperating characters used in list    >; 
 
 Style:                >GENRE
 if more than one style:
 - only the first            >no
 - multivalue tag field        >yes
 - list of names            >no
   - seperating characters used in list    >; 
 ______________________________________________
 Help:
 You can combine Genres & Styles in one tag field if you use the same name.

I noticed that under "- seperating characters used in list >, " used the comma but I switched to "; ". and nothing seemed to affect anything. Is there other modifications under the hood to modify this? Because in such examples like searching a specific genre, I can search for "style2" and songs with "style2" whether it displays or not in the playlists player should show up instead of not filtering it properly and typing out "genre1\\style1\\style" just to display the "style2" track alone. Thanks.

Use:
Genre: >GENRE
Style: >STYLE
to write discogs styles into a STYLE tag field.

Use:

  • only the first >no
  • multivalue tag field >no
  • list of names >yes
    to allow different seperating characters.

"- multivalue tag field >yes" gives you \\. That's Mp3tag's own symbol for a multivalue tag field. It is displayed as a coma in foobar if it is seperated proper. If not, it is displayed as \\. There is a little problem with multivalue tags an web sources. Another saving (press ctrl + s) is necessary, with all the multivalue tag fields displayed in the tag panel. I have described this at some places in this topic.

QUOTE (FreaQ @ Nov 30 2012, 10:10) <{POST_SNAPBACK}>
So I got the Extra fields working, mostly.

I did as you said and created some extra fields for Companies and Identifiers.

As Identifiers is working (Barcode goes to BARCODE, etc) complete it is not working for all Companies.

It seems that the script has a problem with with the Copyright holders

This is written in the script

#< ## COMPANIES - extra fields # 
 findinline "\"companies\":" 1 1
 if " [{"
     outputto "COPYRIGHT"
     sayregexp "(?<=\"name\": \")[^\"]+?(?=\"[^\}]+\"entity_type_name\": \"Phonographic Copyright (p)\")" ", " "}],"
     outputto "COPYRIGHT"
     sayregexp "(?<=\"name\": \")[^\"]+?(?=\"[^\}]+\"entity_type_name\": \"Copyright (c)\")" ", " "}],"
     
     
     regexpreplace "\{[^\}]*?\"entity_type_name\": \"Phonographic Copyright (p)\"[^\}]*?\},*\s*" ""
     regexpreplace "\{[^\}]*?\"entity_type_name\": \"Copyright (c)\"[^\}]*?\},*\s*" ""
         replace "}, ]" "}]"
 endif

Both Copyright entries go straight to COMPANY.

Example Discogs: http://www.discogs.com/DDiggler-Sounds-Fiction/release/66650

EDIT:
I just did some more tagging and stumbled upon three other problems:

  1. If I use Extrafields in the Credits section and all Credits are covered by my Extrafields the script still writes an empty CREDIT tag field.

  2. I use also Extrafields for each track for example "Written-by" goes to WRITTEN. If the Written-By on the Discogs website contains a comma (artist1, Artist2) the script writes in my tag artist1\\Artist2, even the seperator should a comma
    Example: http://www.discogs.com/Thomas-Schumacher-P...1/release/12944

  3. For the initial problem I may know why it dows not work.
    If you go to http://www.discogs.com/Thomas-Schumacher-P...1/release/12944 you will see that in the companies section there is "Other (Label Code)" and Other (Rights Societies) which are also not handled porperly from the script. I think that is of the brackets in the credit name.

Updated the Scripts & Settings file

It looks as you have found some little bugs.
I will have a look for that. Maybe this weekend.
Thanks for looking that close to my script. It's a pleasure to see people are using it.

It is a pleasure to have such dedicated scripters for MP3Tag who also keep updating their scripts.
I like your script very much because it gives me such freedom for handeling tags.

Another little bug:
If you have more than one disc and options "reset counter for each disc" and "leading zero for tracks" is enabled the leading zero has no effect. It is just 1,2,3... for both discs

would love if someone could write a script to parse:

http://www.discogs.com/digital?q=XXX

Hi. Thanks for updating this pretty awesome script. Been using it a couple of years and it really makes life easier.
Now to get to the point. I can't seem to get the updated script to work, I have replaced in the %appdata%\Mp3tag\ directory the mp3 file and also added the .src file (don't know if that's the right place to put it) and the discogs search still don't work.
pone can you update the instructions in the first post "n00b friendly" so I can get it to work again?

Hi all,

When I am trying to go in the Action Menu, I cannot see the Discogs Pone submenu.
I follow the previous steps: I close Mp3tag then copy the files from the zip file to my application folder. But the menu does not seems to be loaded.

Is that because my version is too recent: Mp3tagv2.54 ? Which version should I download?

I want to be able to set the tag ORIGYEAR by the year of the master release to my flac files.
I have found a way to that with the new "Discogs_Pone_Mod_4". I am new to this so it is maybe not the best way.
So when I run this, I have to run it a second time, and the I have to choose "Direct by URL (www)".
My changes is bellow "ParserScriptIndex" and I have not found anywhere else to make these changes. That means that I have to make the changes every time the scripts are created.
How ever this is how I did it.

  1.  Open Mp3Tag with "Discogs Pone 4 Web Script Settings.mp3" an in "Extended Tags" open "DISCOGS ID & URL" and set "Discogs Master URL:" to "WWW MASTER" and set "- write Master URL when tagging from normal release pages" to "yes".
    
  2.  Then "Actions - Discogs Pone - Create Scripts (after editing the settings mp3 file).
    
  3.  Open the file "Discogs &Pone# Direct by URL (&www).src". Not the best way but I did not find any better solotuion.
    
  4.  Change the line with "[SearchBy]=$lower($regexp($if2(%WWW%,%WWW MASTER%),^www,http://www,1))" to "[SearchBy]=$lower($regexp($if2(%WWW MASTER%,%WWW%),^www,http://www,1))".
     -This will call the master url if there is such a tag.
    
  5.  Change the line with "outputto "YEAR"" to "outputto "ORIGYEAR"".
     -This will set the tag ORIGYEAR instead of YEAR.
    
  6.  Change the line whith "outputto "coverurl"" to "#outputto "coverurl"" in the section "#< ## COVER for Master Releases#".
     -I don´t wan´t the cover from the master.
    
  7.  Save the file.
    

I now wounder if there is a better way to do this, is possible to have a script that does this automatically the first time? A setting in "Discogs Pone 4 Web Script Settings.mp3", like "Get Original Year/Date from Master Release", maybe.