[WS] Discogs ALL

You can remove TOTALTRACKS part from a script, before responded Pufas. Should help.

584424 - another release with error in tracks part

Download v2.04, TOTALTRACKS now should work with big box sets, however, tagging CD / DVD and other multi-format releases TOTALTRACKS value will be received total files selected, not CD / DVD or such.

Pufas,

Any plans of a "Search by Album" version? Would be nice since I'm lazy and don't want to go to Discogs.org and find my album first... :rolleyes:

//Windjammer

everything's fine now.thanks.

yea, i'll also try to create websource without actions. when I have more free time.

Heres two my mods for Pufas script, maybe it can help you.
Just replace header part of Pufas script by this (I cut this from another websources :rolleyes:)

Artist - Album search, but it can also search by other fields (catalog# for example). Previously, I had a separate script for cat#, then diskogs improved)

# Pufas discogs script search mod
[Name]=Discogs XML AA
[BasedOn]=http://www.discogs.com
[IndexUrl]=http://www.discogs.com/search?type=releases&q=%s&f=xml&api_key=1e48c7f4e4
[AlbumUrl]=http://www.discogs.com/release/
[WordSeperator]=+
[IndexFormat]=%Release%|%_url%|%_preview%|%Comment%
[SearchBy]=%artist% %album%
[Encoding]=UTF-8

[ParserScriptIndex]=...

# Join Lines
JoinUntil "</resp>"

# Result
do
    findinline "<result num"
# Title
    sayregexp "(?<=<title>)[^<]+(?=</title>)" ", " "</result>"
    say "|"
#URL-Release
    sayregexp "(?<=release/)[^<]+(?=</uri>)" ", " "</result>"
    say "?f=xml&api_key=1e48c7f4e4"
    say "|"
#URL-Preview
    sayregexp "(?<=<uri>)[^<]+(?=</uri>)" ", " "</result>"
    say "|"
# Comment
    sayregexp "(?<=<summary>)[^<]+(?=</summary>)" ", " "</result>"
    saynewline
    findinline "</result>"
while "<result num"

[ParserScriptAlbum]=...

Second mod - receive http URL in search window (fist mod also receive http instead of xml) for ID search script:

# Pufas discogs script http URL mod
[Name]=Discogs XML ID
[BasedOn]=http://www.discogs.com
[IndexUrl]=http://www.discogs.com/release/%s?f=xml&api_key=1e48c7f4e4
[AlbumUrl]=http://www.discogs.com/release/
[WordSeperator]=
[IndexFormat]=%_url%|%_preview%
[SearchBy]=%discogsid%
[Encoding]=utf-8

[ParserScriptIndex]=...

# Join Lines
JoinUntil "</resp>"
# URL
findinline "<release id=\""
sayuntil "\" status"
say "?f=xml&api_key=1e48c7f4e4"
say "|"
gotochar 1
#URL-Preview
findinline "<release id=\"" 
say "http://www.discogs.com/release/"
sayuntil "\" status"
saynewline

[ParserScriptAlbum]=...

I did not dare ask Pufas about these improvements, because already made them myself and had many other issues)

hah! nice work :slight_smile:

Good features in version 2.0) do not need to change small parts of the script

:w00t:

Pufas, morrison, you guys ROCK! :smiley:

/Windjammer

If you change RELEASEDATE to RELEASETIME and change the format to 2009-11-19 it will show up correctly in iTunes "Release Date"...

//Windjammer

1768926 have error in tracklist )

update: v2.05. i also included action RELEASETIME so you wouldn't need to retag all your files to get RELEASETIME, just drop your all files and run RELEASETIME action. RELEASETIME tag should appear, then you can delete this action.

Pufas, I'm sure you believed it when you wrote those words. :laughing:

Hi Pufas,

Thanks for the RELEASETIME Action!

For none of these three releases 455068, 777704 and 1320765 the COMPOSER comes out correct also for the Vinyl ones the Vinyl Track Number is not saved (maybe as designed?).

Apart from that everything runs smooooooooth, thanks!

//Windjammer

ps. Some weeks ago I added this "More options in the Tag Source dialog" thread about some things I would like to see in future versions of Mp3tag that are all related to the visual interface of using your WebScript. Please feel free to support me on this.

lol, i sure did, when i posted it, i'd already forgotten all about regexp and how my script was working, but when i saw that people were trying to fix my script, i kinda changed my mind, hah.
it's really nice when someone is interested in your hard work.

all works just fine for me, btw composer is tagged this way - composer, producer, music by, written by, "tracks" in overall credits are ignored.

And we are....we really appreciate all you've done with this script...even Morrison who refuses to let you take a day off. :laughing:

Just a reminder to you: You need to either upgrade your profile to reflect what version of mp3tag you are using (it says you are using v2.44e) and/or upgrade to v2.45. :slight_smile:

OK, fine, then I know what to expect. Amazing job with the script! Thanks!

QUOTE (morrison @ Nov 18 2009, 10:35) <{POST_SNAPBACK}>
Heres two my mods for Pufas script, maybe it can help you. Just replace header part of Pufas script by this (I cut this from another websources :rolleyes:)
# Pufas discogs script search mod
[Name]=Discogs XML AA
[BasedOn]=http://www.discogs.com
[IndexUrl]=http://www.discogs.com/search?type=releases&q=%s&f=xml&api_key=1e48c7f4e4
[AlbumUrl]=http://www.discogs.com/release/
[WordSeperator]=+
[IndexFormat]=%Release%|%_url%|%_preview%|%Comment%
[SearchBy]=%artist% %album%
[Encoding]=UTF-8

[ParserScriptIndex]=...

# Join Lines
JoinUntil "</resp>"

# Result
do
    findinline "<result num"
# Title
    sayregexp "(?<=<title>)[^<]+(?=</title>)" ", " "</result>"
    say "|"
#URL-Release
    sayregexp "(?<=release/)[^<]+(?=</uri>)" ", " "</result>"
    say "?f=xml&api_key=1e48c7f4e4"
    say "|"
#URL-Preview
    sayregexp "(?<=<uri>)[^<]+(?=</uri>)" ", " "</result>"
    say "|"
# Comment
    sayregexp "(?<=<summary>)[^<]+(?=</summary>)" ", " "</result>"
    saynewline
    findinline "</result>"
while "<result num"

[ParserScriptAlbum]=...

I did not dare ask Pufa's about these improvements, because already made them myself and had many other issues)


:angry: OK, now I've spent a considerable time with copy and pasting from other web sources to get the info I want and I fail miserably every time. I either get empty fields OR correctly filled fields but when I click Next I get "Sorry, no entries are matching your search criteria"... I'm trying to get the same info as in dano's Artist+Album script = ARTIST, ALBUM, YEAR, FORMAT, PUBLISHER, CATALOG and INFO (TOTALTRACKS would be great to..). Scripting is so obviously NOT one of my talents...

Help, please?! :unsure:

Here's 2.05 script mod. All as I write before.

Result

Discogs_xml_all_mod.zip (1.76 KB)

morrison. Thank you, but I did understand your very good instructions the first time and I have created a script exactly as the one you attached now. The thing I was asking for in my last post was that that script, when listing all indexed hits on that album, only shows:

[IndexFormat]=%Release%|%_url%|%_preview%|%Comment%

...and I'm looking to get the same as info as in dano's attached Artist+Album script which is:

[IndexFormat]=%_url%|%Artist%|%Album%|%Year%|%Format%|%Publisher%|%Catalog%|%
Info% plus %totaltracks% if possible.

If I just cut&paste his top plus the [ParserScriptIndex] I always get "Sorry, no entries are matching your search criteria", so it's not working.

Thanks for taking the time looking at this. Hope I made my explenation of what I'm looking for clearer?

Regards!

ps. The :angry: was aimed at myself for my inability to solve this by my self, you guys are all :w00t: and :sorcerer: !!!

discogs_Search_by_Artist___Album.src (8.89 KB)