# Bandcamp Tag Source for Mp3tag
#
# Initial release by ms6676749.
# See CHANGELOG.md for a list of changes.

[Name]=Bandcamp
[BasedOn]=bandcamp.com
[AlbumUrl]=%s
[WordSeparator]=%20
[SearchBy]=URL||$ifgreater($strstr(%www%,.bandcamp.com/),0,%www%,)||%s
[Encoding]=utf-8
[Settings]=&Bandcamp#Settings.Settings
[MinAppVersionWin]=3.22
[MinAppVersionMac]=1.8.6
[Version]=0.4.4

[Include]=&Bandcamp#ParserScriptAlbum.inc

#####################
## modded by rboss ##

[IndexUrl]=%s
[IndexFormat]=%_preview%|%_url%
[ParserScriptIndex]=...

#		Debug "on" "_index_out.txt"
#		DebugWriteInput "_index_input.txt"

FindLine "a class=\"popupImage\""
FindInLine "href=\""
OutputTo "_str0"
SayUntil "\">"

OutputTo "Output"
Say "%_str0%|%CurrentUrl%"