[WS] Discogs (pone mod)

Discogs' API treats companies here like labels and series which have catalog numbers in most releases. If there is no catalog number, there is always just an empty space in the API. But in the HTML page, you see "none" at Labels and Series, an nothing at Companies. This made me letting the script write "none" in all cases. If you want this changed, I can put it on my to do list for the next update. (But don't expect an update soon).

I guess you're talking about the CREDITS; NOTES; IDENTIFIERS; COMPANIES section, because a similar thing is possible at ARTIST NAMES.
Anyway, you can generate extra tag fields at "Companies" and "Barcodes and Identifiers". It's briefly explain in the somewhat incomplete help section at the bottom.
The syntax is:
Extrafields: >TAG FIELD NAME:Discogs Category<
for example:
Extrafields: >MASTERED:Mastered At<>PRESSED:Pressed By<

With "delete extra fields from main section" you can decide if these categories which you already have in extra tag fields are still listed in the "Companies" or "Barcodes and Identifiers" main section.

It's
Combine Credit fields with other fields:
...

  • Album Credits Primary Names >no
  • Album Credits Name Variations >no

If you combine them with other fields, there will be a headline, if not, there will be not.
Maybe I should have made this clearer.

Thank you!!

As for "none" it should be removed from Companies and it should be left alone in Labels and series. That's my opinion. I think that "none" in Companies is really annoying to me :smiley: while "none" in Labels is totally fine as it makes more sense.

Hey there,
Thanks for all of the work on this, i cannot even begin to imagine how difficult it was to do something like this.. so, thanks a lot.

Without sounding greedy, I was wondering if you think there would be a way to run this from foobar2000, or attach it to the discogs foobar component in some way? The component is nice, but not nearly as versatile or customizable as your scripts are.

You can't run the script directly from foobar and the foobar discogs extension is to complicated for me to modify it. It's written in a different program language and I don't have much clue of programming.

Anyway, there is the Run Services component for foobar, written by Mp3Tag's own Florian Heidenreich. With that, you can send files from foobar to mp3tag (and other apps)
http://www.foobar2000.org/components/view/foo_run

If you have installed the foobar component, go to to foobar preferences>tools>run services and add two new services with these paths:

To send whole folders from foobar to mp3tag:
"C:\Program Files\Mp3tag\Mp3tag.exe" "/fp:$substr(%_path%,0,$strrchr(%_path%,''))"

To send single files from foobar to mp3tag:
"C:\Program Files\Mp3tag\Mp3tag.exe" "/fn:%_path%"

(set "simulataneous runs" to "unlimited")

Awesome, thanks for the reply.
I will look into all of that!

Also, I meant to ask, what is the easiest way to skip a particular field from being filled only sometimes? Example, sometimes I come across an album that I do not want to edit any of the track numbers, i want them to stay how they are. How can I prevent the tracks from being edited/filled-in, without having to go edit the script options and rebuild the scripts?
Thx

EDIT: Also, I notice in some fields that use multiple lines (linebreak) in mp3tag, when i view in foobar, it just shows "." (without quotes-just a dot) .. is this normal? maybe foobar cannot handle linebreak/multiple lines in a tag field?

For your first question, I don't know. Depends on your work routine.
If it is only the track numbers you want to keep, I would make an two quick action groups in mp3tag to save them in a temporary tag field and paste them afterwards again into the original tag field.

Action group one (before the web script):
Format value
Field: TRACK TEMP
Formatstring: %track%

Action group two (after the web script):

  1. Format value
    Field: TRACK
    Formatstring: %track temp%

  2. Remove fields
    Fields to remove: TRACK TEMP

For the multiple lines in foobar, i have to say foobar behaves different for me. Line breaks are symbolized with "_ _" in the media library and playlist, with all lines visible.

For longer lines, you can use one of the many lyrics components in foobar which use extra panels. That's why the script is using the UNSYNCEDLYRICS tag field in the default setting for all the credits and notes, most advanced media players have a possibility to show multiple lines in that field.

Personally, I use the "Text Display" component in foobar. A highly customable plug in which can show the text of different tag fields of the selected file in one tag panel.
http://www.foobar2000.org/components/view/foo_textdisplay
I can give you the code I use there if you are interested.

ok fair enough.. so i guess there isnt really an easy way of selecting which tag field i want to use for a certain album (i thought there was an option in the window/dialogue--where the two sets of tracks are listed right before you apply the tags--that would allow you to remove/disable some of the infos). I will look into creating the actions.. i can probably get by without..

yeah i use the foo_textdisplay component too, but i havent set it up really, nor do i put it to good use.. so i would like to see your code for it.. im pretty good with foobar code myself, so it should make sense to me and i can adjust where necessary.

Hey, by the way, when i make the scripts for Pone Mod after i apply setting in the mp3, where are those scipts located at? (i dont want to edit them, but would like to look at the code, just to see what it looks like)

thx

Mp3tag web scripts are located in the Mp3tag profile folder at Mp3tag\data\sources

My code for foo_textdisplay:

$crlf()%artist%  -  %title% 
   [$crlf()          %REMIXED BY%]
   [$crlf()Composer: %COMPOSER% | ][Performer: %PERFORMER% | ][Involved Peeople: %INVOLVEDPEOPLE% | ][Mixartist: %MIXARTIST%]
   $crlf()========================
   $crlf()$if2($if2(%band%,%ALBUM ARTIST%),%ALBUMARTIST%)  -  %album%   '('%date%')' | # %TRACKNUMBER%[/%TOTALTRACKS%] [- %TRACK TEMP%]
   $crlf()%publisher% '['%catalog #%']' 
   $crlf()- - - - - - - - - - - - - - - - - - - - - - - - 
   $crlf()%DISCNUMBER% | $if2(%DISCOGS_MEDIATYPE%,%DISCOGS_FORMAT%) | %COUNTRY%
   $crlf()========================
   [$crlf()$replace($if2($if2(%LYRICS%,%UNSYNCED LYRICS%),No lyrics available),'
   
   ',$crlf() $crlf())]
   $crlf()========================
   [$crlf()Comment: %COMMENT%]
   $crlf()- - - - - - - - - - - - - - - - - - - - - - - - 
   [$crlf()ESF: %ESF%]
   [$crlf()Genre: %GENRE%]
   [$crlf()MixesDB Title: %MIXESDB.COM TITLE%]
   [$crlf()%www%]
   [$crlf()%PUBLISHER URL%]
   $crlf()========================
   $crlf()%bitrate% kbps '('%codec_profile%')' | %filesize_natural% | %length% min | %source%
   $crlf()- - - - - - - - - - - - - - - - - - - - - - - -$crlf()
   %filename_ext%
   $crlf()- - - - - - - - - - - - - - - - - - - - - - - -$crlf()
   $directory_path(%path%)
   $crlf().$crlf()
   
   $substr(%_path%,1,$sub($strrchr(%_path%,'|'),1))
   $crlf().$crlf()
   $directory_path($substr(%_path%,1,$sub($strrchr(%_path%,'|'),1)))

Here is a example how the output looks like:

King Tubby - Serious Version

      E. Lee, J. Holt (Written-By)

========================
va - Good Times Skank (2002) | # 14
Trojan Records [TJCCD039, none]


510 | CD, Compilation | UK

Credits:
Joey Jay (Compiled By)
Barrie Bee (Design)
Pierre Perrone (Liner Notes)
Delroy Wilson (Liner Notes [Quote])
Mike Palmer (Mastered By)
Adrian Boot (Photography By)

Notes:
Mastered at Masterpiece.
Distributed by Pinnacle.

Companies etc:
Mastered At: Masterpiece - none
Distributed By: Pinnacle - none

========================


Genre: Dub, Ska, Dancehall, Lovers Rock, Reggae
http://www.discogs.com/release/1453110

128 kbps (CBR) | 3.21MB | 3:31 min | ?


  1. Serious Version - King Tubby.mp3

N:\new\2009\2009.00b\va - Good Times Skank (2002, Trojan Records - TJCCD039)
.

.

Awesome! Thanks for the help and the advice.. and of course, thanks for the Pone mod

EDIT:
for the life of me, i cannot get two-digit track numbers (padding with 0)
here is my current settings (but have tried others):

I was wondering if there was a way you could add in support for separating the Description Category information from FORMAT.
I have explained everything below...

Please refer to my image that I have labeled with boxes and numbers.. (Boxes are in RED, Menu numbers are PURPLE)

Background about the Discogs API (all of which im sure you know already.. but for the sake of clarity, i will talk about it)

Box 1 contains quantity information that goes with Box 2 to tell how many discs, files, etc are in the release

The drop-down menu in Box 2 contains all of the MEDIA options (CD, Vinyl, Cassette, File, etc etc)

The three drop-down menus (1, 2, 3 - in purple text) in Box 3 all contain the same options.
However, most of the time, there is convention as to which type of option gets selected in the first drop-down menu (at the top of the Box 3 group), and which type of info should get selected in the other drop-downs.

For example: CD, Album, Remastered is the normal/correct method, whereas: CD, Remastered, Album is not very common. CD would be selected in Box2, Album would be selected in Box3-Menu1, and Remastered would be selected from Box3-Menu2. (Box3-Menu3 and Box4 would be empty in this example)

What your script does
In the FORMAT section of extended tags, there are a few options. Correct me if any of this is wrong:

Box 2 menu is mapped into a separate field of your choice using: Mediatype: >"CUSTOM_FIELD_NAME"

ALL of the menus in Box 3 are mapped into a single custom field, using:

Description Category: >"CUSTOM_FIELD_NAME"

The "free text" from Box 4 is mapped into a separate field, using:

Description Text: >"CUSTOM_NAME_FIELD"

All of this works as it should, i think. However, the reason for this in-depth post is to make sure that it is completely understood what i am asking for.
it would be very nice if there was a way to map out the 3 separate menus in Box 3. (ie. Description Category)
Since the API has them separated already, there should be a way to write each of them into a separate tag field.
What do you think?

Just stopping by to once again say: THANK YOU PONE for this great script!
You're the best :wink:

At first I didn't get the covers downloaded but figured I forgot to click "create scripts".
Working superb now :smiley:

Your description is correct as i remember (not on my computer at the moment)
you forgot box one at my script. I think its always combined with box two.

Yor request about box three is very special. But that's what my script is about. I will look for a way to include this at the next update.

Ok good :slight_smile:

Yes, I see that. I actually meant to talk about Box1, but I forgot. Box1 is for the quantity of Box2.
For example 2 CD, or 2 Vinyl

So, I wanted to ask if there is a way to change how this information is written? If Box1 is enabled in your script, it will write the information like: Vinyl2

However, is it possible to change this to look like:
2 x Vinyl or 2xVinyl ??

Yes, I am glad you understand what I am saying. It would be great to be able to separate all three components of Box3. I am appreciative of any features you can add.

I too had this problem, for example with http://www.discogs.com/Various-The-Next-Be.../release/703145 .

Only with the Direct by URL script or with all scripts?

Maybe you have run the action group Discogs Pone>Create Scripts on a normal MP3 file. That results in empty fields for direct scripts and error messages at search for other scripts.
In this case, just re-run the Discogs Pone>Create Scripts action group on a your setting file.
And search your mp3 collection for files with the artist "update setting file before you create web scripts". These are the files on which you did run the action group by mistake. The ARTIST field is the only field which you have to fix there.

With other scripts too, but I haven't tested it with many of them.

That's the only release that I have here that shows the blank fields.

If needed, here is the compressed folder with the mp3 files, so the error can be reproduced (or not...)

can you please send me just the discogs URL?
sharing mp3s in this forum is not ok!

I have the same issue. This is an effect of the new index structure (index track, subtrack etc).
I have the experience, that sometimes only a part of the tracks is found, in other cases no track, as in the case above.

Hopefully there will be a solution. I like to work with the pone scripts.

I'm not at my computer at the moment.
Have you tried the " tracklist for multi song tracks" script for this release?

Hi Pone,

thanks for the quick reply.

Yes, I have tried the "tracklist for Multi song tracks" with the same result.

Here an Discogs-ID with no result:

5527906

(Here is a mixture of index-tracks and sub-tracks)

Another example with only index-tracks:

5633327

Here only the tracks were desplayed until the first index track occured.

Both have in common, that they are releatively new to discogs.