Blockbuster.co.uk Script

Hi guys,

I'm trying to build a catalog/library of all the films I've seen by tagging blank mp4 files with film data with the following meta data mappings:

Title > Film Title
Year > Film Year Of Release
Genre > Film Genre
Artist > Film Director
iTunesPodcastDesc > Film Description
Composer > Film Stars Featured

In order to do this I've been trying to write a script which searches the http://www.blockbuster.co.uk website for various film titles (e.g. "The Matrix") and tags the remainder of the metadata listed above i.e.:

Year: "1998",
Genre: "Action/Adventure",
Artsist: "The Wachowski Brothers",
iTunesPodcastDesc:"Neo seeks the truth about the Matrix...",
Composer:"Keanu Reeves; Laurence Fishburne; Carrie-Anne Moss; "

into the corresponding mp4 fields. So far I've come up with:

# Mp3tag parsing for Blockbuster.co.uk
# Save it in your Mp3tag data directory, i.e.
# C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources

[Name]=Blockbuster.co.uk
[BasedOn]=http://www.blockbuster.co.uk
[IndexUrl]=http://www.blockbuster.co.uk/searchandbrowse/productsearchresults.aspx?type=4&basic=%s
[AlbumUrl]=http://www.blockbuster.co.uk
[WordSeperator]=%20
[IndexFormat]=%_url%|%Title%|%Year%|%Genre%|%Artist%|%iTunesPodcastDesc%|%Composer%
[SearchBy]=%title%

[ParserScriptIndex]=...
# ################################################################################
##################
# This script parses the webpage for all releases with this title.
# The output format is defined by IndexFormat above, which is used by the selection dialog.
# ################################################################################
##################
debug "on" "c:\\\\debug_blockbuster.html" "10"
do
	# url
	findinline "Hyperlink1"
	if "href=\""
	sayuntil "\""
	say "|"

	# Title
	findinline "Hyperlink2"
	if ">"
	sayuntil "<"
	endif
	say "|"

	# Year
	findinline ">("
	sayuntil ")<"
	say "|"

	# Genre
	findinline "Hyperlink3"
	if ">"
	sayuntil "<"
	endif
	say "|"	

	# Artist
	findinline "Hyperlink5"
	if ">"
	sayuntil "<"
	endif
	say "|"

	# Description
	findinline "Panel5"
	if "<td>"
	sayuntil "</td>"
	endif
	say "|"

	# Composer
	findinline "Hyperlink6"
	if ">"
	sayuntil "<"
	endif
	findinline "Hyperlink7"
	if ">"
	say ", "
	sayuntil "<"
	endif
	findinline "Hyperlink8"
	if ">"
	say ", "
	sayuntil "<"
	endif
	saynewline
while "Hyperlink1"

[ParserScriptAlbum]=...
# ################################################################################
##################
# This script parses the albums page for all common information.
# The current output variable is set via the outputto command.
# All these fields are used by the confirm online information dialog.
# ################################################################################
##################
# Not gotten this far yet  though help with this would be appreciated :slight_smile:

by tinkering with the web source code for Amazon.com, but it always seems to return the error message: "Sorry, no results are matching your search criteria.", and I can't figure out why. Can anyone help at all?

Thanks in advance,
thursday

Here is my pretty much completed version:

Blockbuster.co.uk.zip (1.23 KB)

Thank you so much, dano - that's pretty much perfect!
I'd forgotten to mention the inclusion of the film poster image, but I can probably amend it to do this myself.

Thanks again!
thursday

PS: The slightly edited attachment seems to work nicely enough :slight_smile:

Blockbuster.co.uk_plus_image.zip (1.31 KB)