# Blockbuster.co.uk Script

**URL:** https://community.mp3tag.de/t/blockbuster-co-uk-script/8709
**Category:** Web Sources Scripts
**Created:** [August 3, 2009, 10:05am UTC](https://community.mp3tag.de/t/blockbuster-co-uk-script/8709 "2009-08-03T10:05:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![thursday](https://community.mp3tag.de/user_avatar/community.mp3tag.de/thursday/32/249_2.png) [@thursday](https://community.mp3tag.de/u/thursday)
#### Post date: [August 3, 2009, 10:05am UTC](https://community.mp3tag.de/t/blockbuster-co-uk-script/8709/1 "2009-08-03T10:05:45Z")

</div>

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](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](http://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

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 8, 2009, 12:18pm UTC](https://community.mp3tag.de/t/blockbuster-co-uk-script/8709/2 "2009-08-08T12:18:07Z")

</div>

Here is my pretty much completed version:

[Blockbuster.co.uk.zip](https://community.mp3tag.de/uploads/default/original/2X/9/9e6ee2ad39125dbc7e4e7bea2720be0df6c7576d.zip) (1.23 KB)

---

<div class="post-metadata">

### Author: ![thursday](https://community.mp3tag.de/user_avatar/community.mp3tag.de/thursday/32/249_2.png) [@thursday](https://community.mp3tag.de/u/thursday)
#### Post date: [August 8, 2009, 12:58pm UTC](https://community.mp3tag.de/t/blockbuster-co-uk-script/8709/3 "2009-08-08T12:58:49Z")

</div>

> [@dano](#):
>
> Here is my pretty much completed version:

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 🙂

[Blockbuster.co.uk\_plus\_image.zip](https://community.mp3tag.de/uploads/default/original/2X/b/b00ae755e9ce6469fa20e1062c4fd8eb429c0d2f.zip) (1.31 KB)
