IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> SayNextWord in web sources broken?
u302320
post Apr 5 2011, 10:31
Post #1


Member


Group: Full Members
Posts: 65
Joined: 20-March 06
Member No.: 2893
Mp3tag Version: 2.49



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>
^

Go to the top of the page
 
+Quote Post
pone
post Apr 5 2011, 11:00
Post #2


Member


Group: Full Members
Posts: 1688
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



seems like there is a problem

as a workaround, you can use:
sayuntil " "
if it is always a space which follows the word.

This post has been edited by pone: Apr 5 2011, 11:20
Go to the top of the page
 
+Quote Post
DetlevD
post Apr 5 2011, 11:14
Post #3


Member


Group: Full Members
Posts: 4917
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



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


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
pone
post Apr 5 2011, 11:19
Post #4


Member


Group: Full Members
Posts: 1688
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd September 2014 - 19:52