Hi Paul,

As you've probably guessed I was away last month so am just catching up 
on the PyKaraoke mods tonight.

 > Having no answer I then renamed the individual files to the Track 
name e.g. mv 80s Hits-Vol000.mpg Don’t\ You\ Want\ Me
 >
 > Now when I search for Wham I see two entries in the list for each 
track. I’m guessing the search matches on both the filename and the 
track name from the titles. So question the second is:-
 >    2. Can you remove duplicates from the search results?

I haven't been able to reproduce this here. I created a titles.txt file 
with the same keywords for title and artist as are contained in the 
filename, but it only shows up once. That is certainly the intended 
behaviour and I'm not sure yet why this happens for you.

 >    3. and subsequently can you display only the filename and artist in
 >       the result list?

I was thinking about making it possible to reorder the columns or only 
show certain ones, but while looking I realised that the column sizing 
wasn't particularly friendly anyway. What I've done instead is to make 
the column sizing more sensible so that the filename, title and artist 
columns always show up without any horizontal scrolling necessary. Long 
filenames get truncated to make room for the title and artist, but you 
can resize the columns as you wish.

It also doesn't auto-resize every time you change the window size now, 
so if you resize your columns they'll stay that way until you perform a 
new search. The sizing is rejigged every time you do a new search 
because it's based on the length of the strings in the results, so if 
you have only short strings in the artists column, for instance, then 
that column will be suitably small.

One side effect of these changes is that users who don't use a 
titles.txt will still see the Title and Artist column in their search 
results, although they will be small. I figure that we might want to 
start filling this in with info from ID3 tags in future, though, so it's 
probably no bad thing.

The change is committed to CVS, so it would be good if you could grab it 
and have a play around with it. It may be that the new results layout 
fits your needs without adding configuration knobs for hiding or moving 
columns.

As for the duplicate results, could you let me know if you're still 
getting this problem. I can't reproduce it here so I thought I'd check 
whether you've made any progress on that since you last wrote.

Cheers,
Kelvin.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pykaraoke-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss

Reply via email to