AMG script
2010-04-06 03:45:09
below is little script/program that can automatically fetch data from AMG and write it in files tags (with foobar and foo_comserver2) or in tab delimetered csv files stored in passed files folder 2 usage scenarios: 1. foobar and foo_comserver2 installed: - make playlist, name it "amg" and add some tracks - double click script/program or run it with some arguments - it will try to fetch data from AMG, including album cover (200x200px amg_%album%.jpg) and Song reviews (not many releases include song reviews of course) 2. from command line:AMG file_path artist album [-track tracknumber title] additional arguments that can be add as last arguments (if any) are: _noc_ (don't download cover) _nosr_ (don't fetch Song Review) _nofoo_ (don't use foobar as tagger, just write csv files) It uses just one request per release (on last release basis) so all data is cached then reused if needed without requesting for every track This fields can be fetched: Mood, Style, Artist_URL, Release_URL, Release_Date, Release_Rating, Theme, Label, Genre, Review, Composer, Performer, Song_Review and album cover example: "python amg.pyc" (or double click on amg.exe) will process all files in playlist named "AMG" and add this tags: - composer/performer/song_review in corresponding tags - all other tags will be written to multivalue %amg% tag with each value following this rule - "%AMG_tag_name%: tag_value" i.e. if I want to map Review, Rating, Genre and Style from %amg% tag, it can be done with properties dialog > automatically fill values (or more easily with masstagger): [a href=\"http://img87.imageshack.us/img87/5356/sshot10.png\" target=\"_blank\"] Compiled with Python 2.6 + Python Win32 Extensions (for com server) [attachment=5840:amg_script.7z] Frozen stand alone bundle (2.57 MB): [attachment=5841:amg.7z] known limitation (other than design) is no unicode support i.e. if filename is in unicode it will just be skipped source script by sending email by PM