# \[WS\] Discogs (pone mod)

**URL:** <https://community.mp3tag.de/t/ws-discogs-pone-mod/9226>\
**Category:** Broken Web Sources\
**Created:** [October 29, 2009, 3:18am UTC](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226 "2009-10-29T03:18:24Z")\
**Posts on this page:** 1\
**Showing post:** 470

<div class="post-metadata">

**Author:** ![FreaQ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c67d28/32.png) [@FreaQ](https://community.mp3tag.de/u/FreaQ)\
**Post date:** [November 30, 2012, 8:10am UTC](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226/470 "2012-11-30T08:10:13Z")

</div>

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](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](http://www.discogs.com/Thomas-Schumacher-Perlen-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](http://www.discogs.com/Thomas-Schumacher-Perlen-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](https://community.mp3tag.de/uploads/default/original/2X/0/07276139abb6c68fba22e4a827c4c7e2d1215f62.rar) (12.1 KB)

---

_[View the full topic](https://community.mp3tag.de/t/ws-discogs-pone-mod/9226)._
