diff --git a/Me&tal Archives#Band Info.src b/Me&tal Archives#Band Info.src new file mode 100644 index 0000000..c5d2248 --- /dev/null +++ b/Me&tal Archives#Band Info.src @@ -0,0 +1,135 @@ +# ################################################################### +# +# _____ __ .__ _____ .__ .__ +# / \ _____/ |______ | | / _ \_______ ____ | |__ |__|__ __ ____ ______ +# / \ / \_/ __ \ __\__ \ | | / /_\ \_ __ \_/ ___\| | \| \ \/ // __ \ / ___/ +# / Y \ ___/| | / __ \| |__ / | \ | \/\ \___| Y \ |\ /\ ___/ \___ \ +# \____|__ /\___ >__| (____ /____/ \____|__ /__| \___ >___| /__| \_/ \___ >____ > +# \/ \/ \/ \/ \/ \/ \/ \/ +# +# +# +# Mp3tag parsing for Metal-Archives.com, created by dano on 2007-12-15 - modified by camzo on 11-09-2017 & 02-12-2017 +# +# This file should be in your sources dir. +# On Windows XP it's C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources +# +# This config is used to gain informations about an ALBUM. +# +# 2009-07-07: Update +# 2011-04-29: Update +# 2017-12-02: Updated again, now shows lists similar to album script, should stop wrong bands with same name being selected. +# 2018-11-24: Changed the index URL as it was causing some 404 errors. +# +# Only search for Metal music, normal music is not on the site +# Also only real Metal. KoRn, Linkin Park or similar is not on the site +# + +[Name]=The Metal Archives +[BasedOn]=www.metal-archives.com +# [IndexUrl]=https://www.metal-archives.com/search/ajax-advanced/searching/bands?bandName=%s&&sEcho=1&iColumns=4&sColumns=&iDisplayStart=0&iDisplayLength=100&sNames=%2C%2C%2CbandLabelName=#bands +[IndexUrl]=https://www.metal-archives.com/search/ajax-advanced/searching/bands?bandName=%s +[AlbumUrl]= +[WordSeperator]=+ +[IndexFormat]=%Artist%|%_url%|%Genre%|%Country% +[SearchBy]=%artist% +[Encoding]=utf-8 + + +[ParserScriptIndex]=... + +# ################################################################### +# I N D E X +# ################################################################### +debug "on" "D:\Projects\mp3tag_temp\debug_MA_Band_Index.txt" +debugwriteinput "D:\Projects\mp3tag_temp\debug_MA_Band_Index_Input.txt" + +findline "" 1 1 + findinline "" + sayuntil "" + +# COUNTRY +outputto "Country" +findline "
" 1 1 +sayuntil "Location:" +findline "
" +findinline "dd>" +sayuntil "
" + +# ACTIVE? +outputto "METAL ARCHIVES STATUS" +findline "
Status:
" +findline "
" +sayuntil "Formed in:" +findline "
" +findinline ">" +sayuntil "Genre:" +findline "
" +findinline "
" +sayuntil "
" + +#LYRICAL THEMES +outputto "METAL ARCHIVES LYRICAL THEMES" +findline "
Themes:
" +findline "
" +findinline "
" +sayuntil "
" diff --git a/Me&tal Archives#Search by Album.src b/Me&tal Archives#Search by Album.src index 78b7886..a080a1f 100644 --- a/Me&tal Archives#Search by Album.src +++ b/Me&tal Archives#Search by Album.src @@ -118,7 +118,7 @@ regexpreplace "]+>" "" sayuntil "Type:" moveline 1 1 regexpreplace "<[^>]+>" "" #kt @@ -132,7 +132,7 @@ regexpreplace "<[^>]+>" "" #kt sayregexp "\d\d\d\d" # Date -outputto "Metal Archives Date" +outputto "METAL ARCHIVES DATE" replace "January " "-01-" replace "February " "-02-" replace "March " "-03-" @@ -147,6 +147,8 @@ replace "November " "-11-" replace "December " "-12-" regexpreplace "(\d+)[a-z,]+\s*" "$1-" regexpreplace "-(\d)-" "-0$1-" +regexpreplace "^(\d\d\d\d)$" "-01-01-$1" +regexpreplace "-(\d\d)-(\d\d\d\d)" "-$1-01-$2" regexpreplace "-(\d\d)-(\d\d)-(\d\d\d\d)" "$3-$1-$2" sayregexp "\d\d\d\d-\d\d-\d\d" @@ -165,7 +167,7 @@ regexpreplace "<[^>]+>" "" #kt sayrest # Album Rating -outputto "Metal Archives Rating" +outputto "METAL ARCHIVES RATING" findline "
Reviews:
" moveline 1 1 joinuntil "" @@ -262,7 +264,7 @@ if "
]*>" "" - regexpreplace "

" "\r\n" + regexpreplace "

" "\r\n\r\n" regexpreplace "
]*>" "" regexpreplace ">\r" ">" diff --git a/Me&tal Archives#Search by Band + Album.src b/Me&tal Archives#Search by Band + Album.src index cdcb5f7..fcf7fa2 100644 --- a/Me&tal Archives#Search by Band + Album.src +++ b/Me&tal Archives#Search by Band + Album.src @@ -37,8 +37,8 @@ # ################################################################### # I N D E X # ################################################################### -# debug "on" "D:\Projects\mp3tag_temp\debug_MA-Google-Album-EXT_A.txt" -# debugwriteinput "D:\Projects\mp3tag_temp\Metal-Archives Album A.txt" +# debug "on" "D:\Projects\mp3tag_temp\debug_MA_Index.txt" +# debugwriteinput "D:\Projects\mp3tag_temp\debug_MA_Index_Input.txt" findline "" @@ -118,7 +119,7 @@ regexpreplace "]+>" "" sayuntil "Type:" moveline 1 1 regexpreplace "<[^>]+>" "" #kt @@ -132,7 +133,7 @@ regexpreplace "<[^>]+>" "" #kt sayregexp "\d\d\d\d" # Date -outputto "Metal Archives Date" +outputto "METAL ARCHIVES DATE" replace "January " "-01-" replace "February " "-02-" replace "March " "-03-" @@ -147,6 +148,8 @@ replace "November " "-11-" replace "December " "-12-" regexpreplace "(\d+)[a-z,]+\s*" "$1-" regexpreplace "-(\d)-" "-0$1-" +regexpreplace "^(\d\d\d\d)$" "-01-01-$1" +regexpreplace "-(\d\d)-(\d\d\d\d)" "-$1-01-$2" regexpreplace "-(\d\d)-(\d\d)-(\d\d\d\d)" "$3-$1-$2" sayregexp "\d\d\d\d-\d\d-\d\d" @@ -165,7 +168,7 @@ regexpreplace "<[^>]+>" "" #kt sayrest # Album Rating -outputto "Metal Archives Rating" +outputto "METAL ARCHIVES RATING" findline "
Reviews:
" moveline 1 1 joinuntil "" @@ -262,7 +265,7 @@ if "
]*>" "" - regexpreplace "

" "\r\n" + regexpreplace "

" "\r\n\r\n" regexpreplace "
]*>" "" regexpreplace ">\r" ">" diff --git a/Me&tal Archives#Search by Band.src b/Me&tal Archives#Search by Band.src index 8b63630..3b35991 100644 --- a/Me&tal Archives#Search by Band.src +++ b/Me&tal Archives#Search by Band.src @@ -118,7 +118,7 @@ regexpreplace "]+>" "" sayuntil "Type:" moveline 1 1 regexpreplace "<[^>]+>" "" #kt @@ -132,7 +132,7 @@ regexpreplace "<[^>]+>" "" #kt sayregexp "\d\d\d\d" # Date -outputto "Metal Archives Date" +outputto "METAL ARCHIVES DATE" replace "January " "-01-" replace "February " "-02-" replace "March " "-03-" @@ -147,6 +147,8 @@ replace "November " "-11-" replace "December " "-12-" regexpreplace "(\d+)[a-z,]+\s*" "$1-" regexpreplace "-(\d)-" "-0$1-" +regexpreplace "^(\d\d\d\d)$" "-01-01-$1" +regexpreplace "-(\d\d)-(\d\d\d\d)" "-$1-01-$2" regexpreplace "-(\d\d)-(\d\d)-(\d\d\d\d)" "$3-$1-$2" sayregexp "\d\d\d\d-\d\d-\d\d" @@ -165,7 +167,7 @@ regexpreplace "<[^>]+>" "" #kt sayrest # Album Rating -outputto "Metal Archives Rating" +outputto "METAL ARCHIVES RATING" findline "
Reviews:
" moveline 1 1 joinuntil "" @@ -262,7 +264,7 @@ if "