IPB

Welcome Guest ( Log In | Register )

> [WS] Discogs ALL, Uses Discogs API sevice
Pufas
post Jul 20 2009, 21:31
Post #1


Member


Group: Full Members
Posts: 77
Joined: 31-October 07
From: Lithuania, Kaunas
Member No.: 5857
Mp3tag Version: 2.49a



OK,
I made this script long long time ago (~2 years or so), i never thought about publishing it but i find it very useful for me, so I decided to do it. I'm not a coder and I made it long time ago, so don't expect me fixing bugs or updating it. However it's pretty much complete (at least how I imagined it) and it works just fine for me.
EDIT: I change my mind, I will try to develop it further.

The idea was to tag & rename large amounts of full releases (ablums, vinyls, ect.), extracting as much information as possible.

Fills these tags:
CODE
BAND
BANDNAMEVARIATION
ARTIST
ARTISTNAMEVARIATION
ALBUM
TITLE
TRACK
VINYLNUMBER
TOTALTRACKS
DISCNUMBER
DISKNAME
TOTALDISCS / TOTALVINYLS
MEDIATYPE
RELEASETYPE
PUBLISHER
CATALOG
GENRE
STYLE
COUNTRY
YEAR (year only)
RELEASEDATE (full date)
RELEASETIME (not formated)
COMPILATION (Yes/No)
MIXARTIST (Remix)
COMPOSER
CREDITS
WWW
DISCOGSID
MASTERID

Renames directory and files to something like
CODE
[CAT 001] Album Artist - Album (YEAR)
    00 Album Artist - Album (YEAR).m3u
    00 Album Artist - Album (YEAR).sfv
    00 Album Artist - Album (YEAR).txt
    A Track 1.mp3
    B Track 2.mp3

For Various Artist releases:
CODE
[CAT 001] Album Artist - Album (YEAR)
    00 Album Artist - Album (YEAR).m3u
    00 Album Artist - Album (YEAR).sfv
    00 Album Artist - Album (YEAR).txt
    01 Artist 1 - Track 1.mp3
    02 Artist 2 - Track 2.mp3

This script has a lot of fixes for discogs and extras, so that all you tags and files look alike.

How to use it?
1. Find your release at www.discogs.com.
2. Copy it's id (i.e. http://www.discogs.com/Age-Of-Love-The-Age.../release/116283, you need 116283).
3. Drop your files to Mp3tag.
4. Delete all present tags (Not necessary anymore)
5. Run "Tag sources -> Discogs_xml_all"
6. Paste id (search field sould be like this 116283)
7. Aplly tags.
8. Run actions:
1. Discogs_XML *NEEDED* to complete tagging, run this first, put it at the top of the actions list.
2. MixedCD check this *ONLY* if you have CD ripped to a single track, otherwise it will mess up your tags.
3. RenameLabels rename your files, folder, export .m3u playlist, .sfv checksum and txt release info. If you will uncheck it your files will be tagged, but not renamed, moved, no info exported and ect.
NOTE: Script will move your tagged files' dir to E:\Music\_labels\%PUBLISHER% (that's where i store my music). If you do not want that delete last command line in Actions --> 3. RenameLabels, or change dir to which one suits you better.

CODE
CHANGES in v2.09:
FIX: Credits fix.

CHANGES in v2.08:
FIX: More code fix.

CHANGES in v2.07:
FIX: Issues related to renewed Discogs API.
ADD: New field - MASTERID.

CHANGES in v2.06:
FIX: Small track numbering issue.

CHANGES in v2.05:
ADD: New field - RELEASETIME.
FIX: Tracklisting issues.
CHANGE: improved text export,also .nfo instead of .txt.

CHANGES in v2.04:
FIX: DISCNAME bug.
FIX: Minor NOTES issues.
FIX: Improved TOTALTRACKS obtaining method.

CHANGES in v2.03:
FIX: DISCNUMBER issues.
ADD: New field - WWW with link to discogs.
ADD: Now you can run actions more than once.

CHANGES in v2.02:
CHANGE: CREDITS now is sorted by role (just like in discogs).
CHANGE: Removed artist name variations from CREDITS.
ADD: COMPOSER tag, filled from Composer, Written By,
Music By and Producer.
FIX: A lot track fixes.

CHANGES in v2.01:
ADD: Removes Dupe PUBLISHER and CATALOG values.
ADD: Grabs all genres instead if first one.
ADD: If DJ mix is present, it is written to BAND tag.
ADD: Overall credits are separated from per track credits.
FIX: Now TRACK, TOTALTRACKS, NOTES, COUNTRY, MIXARTIST
should work fine.
FIX: More minor fixes.

CHANGES in v2.00:
CHANGE: Now you can run actions only once after applying tag
from web source.
CHANCE: All credits go to CREDITS tag, also Remix credit goes
to MIXARTIST tag.
CHANGE: Script should run *a lot* faster.
ADD: Added name variations.

CHANGES in v1.23:
ADD: New tags - SONGWRITER, CELLO, MELODICA, SAXOPHONE, VIOLA, VIOLIN.

CHANGES in v1.22:
ADD: New tags - LEADER, ORGAN, TECHNICIAN
FIX: RELEASETYPE issues.
FIX: There was per track credits bug.

CHANGES in v1.21:
ADD: Removes up to five dupe tag values like 2x same label,
catalog or credits artist.
FIX: Minor bugs.

CHANGES in v1.20:
FIX: More credits issues.
FIX: Minor NOTES fix.
ADD: New tags - CHOIR, DIRECTED, BASS, CONCERTMASTER, DRUMS,
ACCORDION, GUITAR, PERCUSSION, STRINGS, TRUMPET, FLUTE,
ADAPTED, ENSEMBLE, PIANO, MUSIC, SYNTHESIZER, THANKS.

CHANGES in v1.19:
FIX: "Empty fields" bug. Script did not work with releases
that had empty date, country or style.

CHANGES in v1.18:
FIX: More minor fixes.
CHANGE: TOTALTRACKS field now supports up to 9CDs releases (was 2CDs).
ADD: New tag - DISCNAME.

CHANGES in v1.17:
FIX: NOTES formating.
ADD: New tag - COMPILATION [Yes/No]
CHANGE: m3u, sfv and txt filenames.

CHANGES in v1.16:
FIX: More credits issues.
ADD: New tag - NOTES.
CHANGE: Improved cover art fetching.

CHANGES in v1.15:
FIX: Credits issues.
ADD: TOTALTRACKS for vinyls.

CHANGES in v1.14:
FIX: Credits issues.
ADD: New tag - TOTALVINYLS.

CHANGES in v1.13:
FIX: There was some errors, but now it seem works fine.

CHANGES in v1.12:
FIX: Track number issues.

CHANGES in v1.11:
ADD: Cover Art Support.
ADD: New fields added: VINYLNUMBER, KEYBOARDS, ARTWORK, PHOTOGRAPHY.

CHANGES in v1.10:
FIX: Now saves all credits, including "overall". There was error in actions.
FIX: Properly saves tags witch includes named vinyl or disk sides like this.
FIX: Did not fixed artist names from "Artist, The" to "The Artist" witch
included "(#)" at the end, like this one.
ADD: You can leave your curent tags, script should auto-remove them.
ADD: Auto exports .m3u playlist, .sfv checksum and .txt release info.
ADD: Auto move to dir where i store files.
CHANGE: Underdashes "_" replaced with spaces.

v1.00:
First public version.

That's it. I've put a lot of hard work into it. I hope you like it.
Feel free to modify it for your needs.
Also if you need any help, just ask.

This post has been edited by Pufas: Jul 4 2011, 09:15
Attached File(s)
Attached File  Discogs_ALL_API_v2.09.zip ( 7.84K ) Number of downloads: 1457
 


--------------------
()/)
( '.') <( MP3TAG kicks ass! )
((')(')
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Windjammer
post Nov 2 2009, 21:24
Post #2


Member


Group: Full Members
Posts: 80
Joined: 22-April 05
From: Barcelona, ESP
Member No.: 1756
Mp3tag Version: 2.56



QUOTE (Pufas @ Nov 2 2009, 08:21) *
Btw, here's modded version of my script, if you plan to use that %CREDITS% tag, and add action at the end of discogs xml:

Replace
CREDITS
"</role><role>"
to
", "
(do not use ").


Thanks for this, but I'm not going to touch your code in this script... Might build an ACTION in the end that copies all individual fields to the CREDITS tag, per file, though...

//Windjammer
Go to the top of the page
 
+Quote Post

Posts in this topic
- Pufas   [WS] Discogs ALL   Jul 20 2009, 21:31
- - Andromedych   Dear Pufas! Thanks a lot for Your great script...   Aug 22 2009, 11:01
- - Aythamie   Hi, I'tje getting an error when it tries to lo...   Sep 27 2009, 20:51
- - morrison   Thanks for you work Pufas, very impressive script ...   Sep 28 2009, 18:50
- - Windjammer   Dear Forum, Agree with previous speakers that thi...   Oct 1 2009, 23:17
|- - morrison   I think I fixed most errors. Except for Credits (o...   Oct 2 2009, 10:57
|- - morrison   test version in attach I will replace some field ...   Oct 2 2009, 16:51
|- - Windjammer   Great work morrison! Really like what you hav...   Oct 3 2009, 18:31
|- - morrison   Thanks for reply Windjammer, I will try do somethi...   Oct 5 2009, 22:32
- - Pufas   Wow. When I posted this script I never imagined pe...   Oct 15 2009, 22:19
|- - Windjammer   Pufas, Absolutely fantastic that you changed your...   Oct 17 2009, 13:08
|- - Pufas   QUOTE (Windjammer @ Oct 17 2009, 13:08) P...   Oct 17 2009, 17:39
|- - Innuendo   QUOTE (Pufas @ Oct 17 2009, 11:39) Sorry,...   Oct 18 2009, 00:17
|- - Pufas   QUOTE (Innuendo @ Oct 18 2009, 00:17) Thi...   Oct 18 2009, 11:58
|- - Pufas   I added cover grab, but fixing tracklist is a real...   Oct 18 2009, 15:43
||- - Innuendo   QUOTE (Pufas @ Oct 18 2009, 09:43) I beli...   Oct 18 2009, 15:53
|- - Innuendo   QUOTE (Pufas @ Oct 18 2009, 05:58) 1. Per...   Oct 18 2009, 15:48
- - Pufas   Yeah, I think I'll do that.   Oct 18 2009, 17:48
- - Pufas   Thanks to Dano, everything seem to work now. I...   Oct 18 2009, 20:02
|- - Innuendo   QUOTE (Pufas @ Oct 18 2009, 14:02) Thanks...   Oct 18 2009, 20:34
|- - Pufas   QUOTE (Innuendo @ Oct 18 2009, 20:34) Gee...   Oct 18 2009, 21:09
|- - Innuendo   QUOTE (Pufas @ Oct 18 2009, 15:09) Edited...   Oct 19 2009, 00:10
|- - Pufas   QUOTE (Innuendo @ Oct 19 2009, 00:10) Not...   Oct 19 2009, 08:59
- - Innuendo   No worries. I just thought I had done something on...   Oct 19 2009, 15:56
- - Innuendo   Just tried it and the tracks window worked beautif...   Oct 19 2009, 16:19
|- - Pufas   QUOTE (Innuendo @ Oct 19 2009, 16:19) Jus...   Oct 19 2009, 20:47
- - Pufas   Finally done fixing, all seem to work now (I hope)...   Oct 19 2009, 22:31
|- - Innuendo   QUOTE (Pufas @ Oct 19 2009, 16:31) Finall...   Oct 20 2009, 04:55
|- - Pufas   QUOTE (Innuendo @ Oct 20 2009, 04:55) Oka...   Oct 20 2009, 09:15
|- - Innuendo   QUOTE (Pufas @ Oct 20 2009, 03:15) Hmmm, ...   Oct 20 2009, 14:35
|- - Pufas   QUOTE (Innuendo @ Oct 20 2009, 14:35) I t...   Oct 20 2009, 18:20
|- - Innuendo   QUOTE (Pufas @ Oct 20 2009, 12:20) Yes, I...   Oct 20 2009, 18:41
|- - Pufas   Fixed & re-posted. Now I'll get on to NOTE...   Oct 20 2009, 20:07
|- - Innuendo   QUOTE (Pufas @ Oct 20 2009, 14:07) Fixed ...   Oct 22 2009, 20:26
|- - Pufas   QUOTE (Innuendo @ Oct 22 2009, 20:26) I...   Oct 22 2009, 20:33
|- - Innuendo   QUOTE (Pufas @ Oct 22 2009, 14:33) I...   Oct 23 2009, 01:07
|- - morrison   cannot receive information about this release - ht...   Oct 23 2009, 10:49
|- - Pufas   QUOTE (morrison @ Oct 23 2009, 10:49) can...   Oct 23 2009, 10:57
|- - morrison   if this can help, I fix this with this: # STYLE g...   Oct 23 2009, 11:07
|- - Pufas   QUOTE (morrison @ Oct 23 2009, 11:07) if ...   Oct 23 2009, 22:19
|- - morrison   QUOTE (Pufas @ Oct 24 2009, 01:19) thank ...   Oct 24 2009, 00:00
- - morrison   nice work Pufas , thanks you   Oct 20 2009, 10:06
- - Pufas   I added new version of script. However "empty...   Oct 24 2009, 11:54
- - dano   With Mp3tag 2.44e it will not display empty tag fi...   Oct 24 2009, 13:08
|- - Windjammer   QUOTE (dano @ Oct 24 2009, 14:08) With Mp...   Oct 24 2009, 15:08
|- - Pufas   QUOTE (dano @ Oct 24 2009, 13:08) With Mp...   Oct 24 2009, 20:00
- - Windjammer   Pufas, this script is, like the Americans say, awe...   Oct 24 2009, 15:37
|- - Innuendo   QUOTE (Windjammer @ Oct 24 2009, 09:37) h...   Oct 24 2009, 15:59
|- - Pufas   QUOTE (Windjammer @ Oct 24 2009, 15:37) P...   Oct 24 2009, 20:37
|- - Windjammer   QUOTE (Pufas @ Oct 24 2009, 21:37) Thank ...   Oct 29 2009, 00:18
|- - Pufas   QUOTE (Windjammer @ Oct 29 2009, 00:18) P...   Oct 30 2009, 12:07
- - morrison   Hello Pufas I tried to add a function to get CD na...   Oct 27 2009, 12:26
|- - Pufas   QUOTE (morrison @ Oct 27 2009, 12:26) Hel...   Oct 27 2009, 21:05
- - morrison   thank you I found few another "hard" re...   Oct 28 2009, 00:26
|- - Pufas   QUOTE (morrison @ Oct 28 2009, 00:26) t...   Oct 28 2009, 10:35
|- - Pufas   EDIT: there was some error in forum, and I got 2x ...   Oct 28 2009, 10:51
|- - morrison   yes, very heavy function. I think removed this par...   Oct 28 2009, 11:09
|- - Pufas   QUOTE (morrison @ Oct 28 2009, 11:09) yes...   Oct 30 2009, 12:09
|- - morrison   QUOTE (Pufas @ Oct 30 2009, 14:09) did re...   Oct 30 2009, 18:40
- - UserName2   Hi Im new registered member here and have 3 quest...   Oct 30 2009, 23:34
|- - Pufas   QUOTE (morrison @ Oct 30 2009, 18:40) I t...   Oct 31 2009, 11:31
|- - Windjammer   Pufas, Is the "Remove Fields Except" AC...   Oct 31 2009, 14:06
|- - Pufas   QUOTE (Windjammer @ Oct 31 2009, 14:06) P...   Oct 31 2009, 17:39
- - Windjammer   Pufas, This one is a big one. There is so mush t...   Oct 31 2009, 20:17
|- - Pufas   QUOTE (Windjammer @ Oct 31 2009, 20:17) P...   Nov 2 2009, 08:21
- - Windjammer   Pufas, The cleanup ACTIONS also delete any Album ...   Nov 1 2009, 16:37
- - Windjammer   Hi Pufas, Thanks, OK, sorry again for not digging...   Nov 2 2009, 21:17
- - Windjammer   QUOTE (Pufas @ Nov 2 2009, 08:21) Btw, he...   Nov 2 2009, 21:24
- - Windjammer   In the Shakira link above: http://www.discogs.com/...   Nov 2 2009, 22:52
|- - Pufas   QUOTE (Windjammer @ Nov 2 2009, 22:52) In...   Nov 3 2009, 18:55
- - Windjammer   Amazing, please don't get a life! I...   Nov 3 2009, 20:25
|- - Pufas   QUOTE (Windjammer @ Nov 3 2009, 20:25) ...   Nov 4 2009, 09:34
|- - Innuendo   QUOTE (Pufas @ Nov 4 2009, 02:34) you may...   Nov 4 2009, 15:31
|- - Pufas   QUOTE (Innuendo @ Nov 4 2009, 15:31) Last...   Nov 4 2009, 18:54
|- - Innuendo   QUOTE (Pufas @ Nov 4 2009, 11:54) You hav...   Nov 4 2009, 20:00
- - Innuendo   Pufas, just thought I'd let you know I'm s...   Nov 3 2009, 20:42
- - dano   Search for foo_discogs   Nov 4 2009, 20:07
|- - Innuendo   QUOTE (dano @ Nov 4 2009, 13:07) Search f...   Nov 4 2009, 22:50
- - dano   Oh now I get your question right. Yes it also chan...   Nov 4 2009, 23:13
- - Pufas   There's a bug in last script, it creates empty...   Nov 4 2009, 23:16
|- - morrison   QUOTE (Pufas @ Nov 5 2009, 01:16) There...   Nov 5 2009, 00:07
|- - Pufas   QUOTE (morrison @ Nov 5 2009, 00:07) bril...   Nov 5 2009, 17:57
|- - morrison   thank you! small glitch - now for box set re...   Nov 5 2009, 19:45
|- - Pufas   QUOTE (morrison @ Nov 5 2009, 19:45) than...   Nov 6 2009, 10:05
|- - morrison   Thanks again man ) and excuse me for careless rea...   Nov 6 2009, 10:19
|- - morrison   QUOTE (Pufas @ Nov 6 2009, 12:05) About t...   Nov 6 2009, 11:36
|- - Pufas   Can You give me discogs link?   Nov 6 2009, 15:41
|- - morrison   this example   Nov 7 2009, 00:24
- - Windjammer   Hi Pufas, The script misses all Credits, individu...   Nov 7 2009, 19:41
|- - Pufas   QUOTE (Windjammer @ Nov 7 2009, 19:41) Hi...   Nov 7 2009, 22:53
||- - Windjammer   QUOTE (Pufas @ Nov 7 2009, 22:53) Yea, 1....   Nov 7 2009, 23:22
|- - Pufas   v1.22 is out. QUOTE (Windjammer @ Nov 7 2009...   Nov 8 2009, 12:25
|- - Windjammer   QUOTE (Pufas @ Nov 8 2009, 12:25) That...   Nov 8 2009, 15:26
||- - Innuendo   QUOTE (Windjammer @ Nov 8 2009, 08:26) Th...   Nov 8 2009, 16:18
||- - Pufas   QUOTE (Windjammer @ Nov 8 2009, 15:26) Th...   Nov 8 2009, 17:04
||- - Windjammer   QUOTE (Pufas @ Nov 8 2009, 17:04) Only la...   Nov 8 2009, 22:23
|- - morrison   QUOTE (morrison @ Nov 7 2009, 02:24) this...   Nov 8 2009, 21:39
|- - Pufas   QUOTE (morrison @ Nov 8 2009, 21:39) not ...   Nov 8 2009, 22:54
|- - morrison   worked! thank you   Nov 8 2009, 23:04
- - Windjammer   Hi Pufas, Know I mentioned it before but I really...   Nov 7 2009, 22:46
3 Pages V   1 2 3 >


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd December 2014 - 08:01