Script for audible.de

Hi, folks,

after i fail to write a script for my audiobooks via audible.de I need your help. I post what I've done so far and would be very glad if some of you could help me out with this.

# Mp3tag parsing for audible.de
#
[Name]=Audible.de
[BasedOn]=http://www.audible.de
[IndexUrl]=http://www.audible.de/adde/site/audibleSearch/searchResults.jsp?D=%s&Ntt=%s&Ntk=S_Keywords&Dx=mode%2bmatchallpartial&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes
#[IndexUrl]=http://www.audible.de/adde/site/audibleSearch/searchResults.jsp?D=spinne&Ntt=spinne&Ntk=S_Keywords&Dx=mode%2bmatchallpartial&Ntx=mode%2bmatchallpartial&N=0&BV_UseBVCookie=Yes
[AlbumUrl]=http://www.audible.de/adde/store/product.jsp?BV_UseBVCookie=Yes&productID=
[WordSeperator]=%20
[IndexFormat]=%_url%|%Titel%|%Autor%|%Gelesen%
[SearchBy]=%title%

[ParserScriptIndex]=...
##############################################################
debug "on" "c:\audible1.html"

findline "end of code" 1 1

do

	findline "<li class=\"item hreview"
	findline "<div class=\"descr"
	findline "<a href="

	# url
	findinline "<a href=\""
	sayuntil "\""
	say "|"
	
	# Titel
	findinline "class=\"url\">"
	sayuntil "</a>"
	say "|"
	
	# Autor
	findline "<a href=\""
	findinline "<a href=\""
	sayuntil "</a>"
	say "|"	
	
	#gelesen von
	findline "<a href=\""
	findinline "<a href=\""
	sayuntil "</a>"
	saynewline

	findline "<ul class=\""
	findline "<ul class=\""
while "\""

[ParserScriptAlbum]=... ##############################################################
debug "on" "c:\audible2.html"

findline "<div class=\"hreview page-title-detail\""

# CoverURL
outputto "coverurl"
say "http://www.audible.de"
findline "<p class="cover-xl\">"
findinline "src=\""
sayuntil "t4_image.jpg"
say "lg_image.jpg"

# Inhalt
outputto "unsyncedlyrics"
findline ">BESCHREIBUNG</h2>

"
findinline ">BESCHREIBUNG

" sayuntilML "

"

Artist

findline "<th scope="row">Sprecher:"
moveline 2
findinline ">"
Say "HB "
sayuntil ""

Year

findline "<th scope="row">Veröffentlicht:"
moveline 2
findinline ">"
sayuntil ""

Thanls for your help,

oelwurst

Please describe the problem.

Take into account that audible.de answers with a "refresh" redirection page using a domain less "relative" URL, for example:

<meta http-equiv="refresh" content="0;URL=/adde/store/session_redirect_page.jsp?BV_SessionID=@@@@1089882732.1294496086@@@@&BV_EngineID=cccfademhgffdhdcefecekjdfgodffm.0&failedPage=/site/audibleSearch/searchResults.jsp&fqString=Ntk%3dS_Keywords%26Ntt%3dDer%2bletzte%2bWinter%26Ntx%3dmode%2bmatchallpartial%26D%3dDer%2bletzte%2bWinter%26N%3d0%26Dx%3dmode%2bmatchallpartial&referrer_url=null">

Manipulating this one response line to an absolute URL like ...

<meta http-equiv="refresh" content="0;URL=http://www.audible.de/adde/store/session_redirect_page.jsp?BV_SessionID=@@@@1089882732.1294496086@@@@&BV_EngineID=cccfademhgffdhdcefecekjdfgodffm.0&failedPage=/site/audibleSearch/searchResults.jsp&fqString=Ntk%3dS_Keywords%26Ntt%3dDer%2bletzte%2bWinter%26Ntx%3dmode%2bmatchallpartial%26D%3dDer%2bletzte%2bWinter%26N%3d0%26Dx%3dmode%2bmatchallpartial&referrer_url=null">

... and post this, then the answer is a full web page, which can be evaluated by the Mp3tag source script parser tool.

But I do not know how to overcome the redirection with the web source vehicle.

DD.20110108.1530.CET