As already mentioned in another topic I need help on a problem in the new IMDB(Complete) script.
The section for the trivia of an actor is buggy but I don't know why.
If the trivia is taken all the info is taken except for the last actor (only name, character and webid).
If the trivia is not taken the data is for every actor ok.
I have tried it with different routines but without any success.
Now I even have any idea how to correct...
Routine 1:
:TRIVIAACTOR
#STARTREADWEB#
#FINDLINE#=<h4 class="li_group">Trivia #12##ONERROR#=*OK*
#IF# #12#==#00#
// No trivia
#GOTO#=ENDACTORDATA
#ENDIF#
#PUT#=1#28#
#STRING#=#13#=TRIVIA#NEWLINE#
#TAKEACTORBIO#=#13# #ONERROR#=*OK*
#STRING#=#13#=---------------------------- #NEWLINE#
#TAKEACTORBIO#=#13# #ONERROR#=*OK*
:NTRIV
#READNEXTLINE#
#FIND#=<a name="#12#
#IF# #12#==#00#
#RESETCURSOR#
#TAKEWORD#=#13#,#00#,#00#
#CHECKVARIABLE#=#13#
#STARTSUBSTITUTETAGS#
#STARTDELETETAGS#
#CLEARTAGS#
#STRING#=#13#=#13# #NEWLINE#
#TAKEACTORBIO#=#13# #ONERROR#=*OK*
#GOTO#=NTRIV
#ENDIF#
:NOABIOPAGE
Routine 2:
:TRIVIAACTOR
#STARTREADWEB#
#FINDLINE#=<h4 class="li_group">Trivia #12##ONERROR#=*OK*
#IF# #12#==#00#
// No trivia
#GOTO#=ENDACTORDATA
#ENDIF#
#PUT#=1#28#
#STRING#=#13#=TRIVIA#NEWLINE#
#TAKEACTORBIO#=#13# #ONERROR#=*OK*
#STRING#=#13#=---------------------------- #NEWLINE#
#TAKEACTORBIO#=#13# #ONERROR#=*OK*
#PUT#=#13#
#REPEAT#
#READNEXTLINE#
#FIND#=<a name="#12# #ONERROR#=*OK*
#TAKEWORD#=#16#,#00#,#00#
#CHECKVARIABLE#=#16#
#STARTSUBSTITUTETAGS#
#STARTDELETETAGS#
#CLEARTAGS#
#STRING#=#13#=#13##NEWLINE##16#
#WHILE# #12#==#00#
#TAKEACTORBIO#=#13# #ONERROR#=*OK*
:NOABIOPAGE