» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: Parse trigger skips one line< Next Oldest | Next Newest >
gerhard
Board Fan



Group: Members
Posts: 12
Joined: Oct. 2006
Posted: Oct. 14 2006,19:11

When using "Rename/tag from list" and setting the "parse trigger" with line containing something (for instance a digit), the first matching line is skipped.
I use this to skip "headers" in the file.

Workaround: Add a fake first line.
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Oct. 16 2006,20:51

Please give a full practical example, and I will analyze it and fix it if it is a bug.

--------------
Software author and website owner
Back to top
Profile PM WEB 
gerhard
Board Fan



Group: Members
Posts: 12
Joined: Oct. 2006
Posted: Oct. 17 2006,23:17

directory contains two files:

one.mp3
two.mp3

Input list file contains the following:
---
1;song1
2;song2
3;song3
--

File row format: "<TrackNr>;<Title>"
Case and fix used (mostly defaults, a few extra fields)
Filtering used, selecting extension .mp3

1. Settings->"parse trigger" not used:
=> one.mp3 gets trackNr=1, title=song1
   two.mp3 gets trackNr=2, title=song2

2. "parse trigger" set to ";"
=> one.mp3 gets trackNr=2, title=song2
  two.mp3 gets trackNr=3, title=song3

===============
You can always document around it, requiring a header line
(but I do not like this "solution")
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Oct. 18 2006,00:41

The whole idea with the parse trigger is to activate the parser once the parse triggering sequence is found, and process what's after it in the input file, so your example seems to be in perfect working order to me?

--------------
Software author and website owner
Back to top
Profile PM WEB 
gerhard
Board Fan



Group: Members
Posts: 12
Joined: Oct. 2006
Posted: Oct. 19 2006,00:12

It worked as documented, just not as I wanted: I wanted some kind of matching in the input file. I guess I read the documentation to confirm my wish.
(a little embarrassed)

Edited by gerhard on Oct. 19 2006,00:37
Back to top
Profile PM 
4 replies since Oct. 14 2006,19:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]