Help - Search - Members - Calendar
Full Version: internal server error (500)
Mp3tag Forums > Mp3tag - International > Development > Web Sources Discussion
oelwurst
Hi,

I am trying to write a script to find some descriptions of contents for my audiobooks. Everything works fine until the ParserScriptIndex tries to "give" the Album Url to the ParserScriptAlbum. The Error Message "Internal Server Error (500)" appears every time I try to run the script.
The Index seems to do the job very well - wenn i have to choose, the preview button brings me to the right page.

Can anyone help me out with this?

With best regards,

oelwurst
dano
Can you show the script or a debug file?
oelwurst
There's only the debug file for the index parser, which shows no problems.

CODE
# Mp3tag parsing for Hoerspiele.de
#
# Web source created and maintained by oelwurst
#
#
#
[Name]=hoerspiele.de
[BasedOn]=http://www.hoerspiele.de
[IndexUrl]=http://www.hoerspiele.de/hoerspiele/list/search.asp?key=%s&Abschicken=go!
[AlbumUrl]=
[WordSeperator]=%20
[IndexFormat]=%_url%|%titel%|%serie%|%folge%
[SearchBy]=%title%

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

findline "<!-- Kommerzielle Hörspiele -->"
findline "hsp_template.asp"
findinline "code"

do
# URL
movechar 1
say "http://www.hoerspiele.de/hoerspiele/list/hsp_template.asp?code="
saynextnumber
say "|"

# Titel
findinline ">"
sayuntil "</a>"
say "|"

# Serie
Moveline -7
findinline "<td>"
findinline ">"
sayuntil "</a>"
say "|"

# Folge
moveline 2
saynextnumber
saynewline

moveline 7

findline "hsp_template.asp" 1 1
#if "<a href="
findinline "code" 1 1
#endif

while "="

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

findline "<!-- CONTENT -->" 1 1

# Inhalt
outputto "UNSYNCEDLYRICS"
findline "<b>Beschreibung</b>: " 1 1
findinline "<b>Beschreibung</b>: " 1 1
SayUntilML "<br>"
Saynewline
Findline "Sprecher<br>"
findline "<tr>"
findline "<tr>"

do
saynewline
moveline 2
sayuntil "<br>"
say ": "
moveline 3
findinline ">"
sayuntil "</a>"
moveline 5
while "<tr>"

# Year
outputto "YEAR"
gotoline 1
findline "<!-- CONTENT -->"
findline "<b>VÖ</b>"
findinline "."
SayUntil "<br>"


I hope you can help me out with this.

Thanks,

oelwurst

dano
The problem is this web site seems to respond always with Internal Server Error (500) although it returns proper html code.
The error code probably makes Mp3tag not parse the html code.
So it's no error in the script.
Mp3tag would have to ignore the error code and still parse the server response.
DetlevD
QUOTE (oelwurst @ Sep 28 2010, 17:37) *
... oelwurst

Try this ...
[IndexFormat]=%_url%|%title%|%serie%|%folge%
... shot in the dark.

I want to add, that manually invoking ...
http://www.hoerspiele.de/hoerspiele/list/s...p;Abschicken=go!
... will give a result page.

DD.20100928.1902.CEST


And regarding Mp3tag Source Scripting Language read and hear this ...
http://translate.google.com/?hl=de#de|en|Wort%20Separator

DD.20100928.1909.CEST


And this URL works too when manually invoked ...
http://www.hoerspiele.de/hoerspiele/list/s...p;Abschicken=go!
... note the URL encoding ... but anyway ... URL encoding seems not necessary ...
http://www.hoerspiele.de/hoerspiele/list/s...p;Abschicken=go!

DD.20100928.1956.CEST


See screenshot ...
Click to view attachment
... and see ... the error message
'... could not resolve "www.hoerspiele.deDas%20böse...'

This looks somewhat strange because the related line in the .scr script file is ...
[IndexUrl]=http://www.hoerspiele.de
There is no instruction written, which could cause the intended appending of the TITLE content directly behind the URL.

I think there are more bugs than we can imagine (not only spelling errors) in this particular corner of Mp3tag.

DD.20100928.2036.CEST
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.