Help - Search - Members - Calendar
Full Version: SayNextWord in web sources broken?
Mp3tag Forums > Mp3tag - International > Development > Web Sources Discussion
u302320
Here is an debug excerpt which shows - in my opinion - that SayNextWord is broken. The log shows that SayNextWord only outputs the first character not the complete word. I expected mp3tag to output the text 'clearcut' in that particular case.

Thanks for reading
-u302320

CODE
Script-Line : 243
Command : findinline
Parameter 1 : ><td><
Parameter 2 : >1<
Parameter 3 : >1<

Output : ><

Line and position:
<td>clearcut 2006 50 Min. - Originalhörspiel dt. </td></tr>
^

------------------------------------------------------------

Script-Line : 244
Command : saynextword

Output : >c<

Line and position:
<td>clearcut 2006 50 Min. - Originalhörspiel dt. </td></tr>
^

pone
seems like there is a problem

as a workaround, you can use:
sayuntil " "
if it is always a space which follows the word.
DetlevD
QUOTE (u302320 @ Apr 5 2011, 11:31) *
... The log shows that SayNextWord only outputs the first character not the complete word. ...

It seems that SayNextWord needs the boundary of a previous word to detect where the next word start, something of \b in a regexp.

DD.20110405.1215.CEST
pone
ZITAT(DetlevD @ Apr 5 2011, 12:14) *
It seems that SayNextWord needs the boundary of a previous word to detect where the next word start, something of \b in a regexp.


If so, try
findinline "<td"
instead of
findinline "<td>"
before the saynextword command. then the parser shoul be able to read > as the word boundary before the word.
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.