PDA

View Full Version : pytivo not sorting my videos correctly


jbernardis
11-08-2009, 06:21 PM
I recently discovered the force_alpha option for my video shares and decided that I liked it, so I set the flag to true, soft-reset pytivo, and voila - my videos were properly sorted in the entire directory tree.

Today, however, I added a video (and metadata file) to one of these directories. Based on the name of the file (and the video title in the metadata file) it should have sorted into the second position in my list. However, it is ending up in the last position - as if it's sorting by date.

I verified that force_alpha was on, I turned it off and back on, I restarted the pytivo service, and I rebooted my PC. I even updated all of the python files to the 10/12/2009 GIT and recompiled them all. Still this file ends up last in the sort order. I'm not sure what is happening here. Does pytivo maintain some kind of cache that needs to be erased? It's the only thing I can think of.

Thanks

reneg
11-08-2009, 06:33 PM
Can't say that I've seen this issue and I use force_alpha on nearly all of my shares. I have seen issues where subtleties in the filename make it appear that pyTivo is sorting wrong, but characters or spaces in the filename are effecting the sort order. Can you post a few entries from a directory listing?

wmcbrine
11-08-2009, 06:46 PM
The only cache is in-memory, so it's cleared if you restart (not soft reset). But it's already been discarded if the new file shows up.

You haven't mentioned the name of the file, which might be the issue.

Date sorting puts the newest files first, not last, BTW.

jbernardis
11-08-2009, 06:58 PM
Stupid me - I see the issue - all of my other files use a capital letter as the first character. The file I am/was having trouble was simply named "bolt.avi". but since it began with lower case, it sorted last.

BTW - it was your suggestions that caused me to take a closer look - so thanks.

jbernardis
11-08-2009, 07:02 PM
So this got me thinking - the sort is based on file name obviously, but it's the title from the metafile that appears in the list. In my case, the metadata was correct with an upper case letter - it was the file name that was wrong - that's why it wasn't obvious to me when I was looking at it on my TV.