[WS] Discogs (pone mod)

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)