Posted: Sun Aug 10, 2008 8:12 pm Post subject: Video shares order
I am a fairly new user of pyTivo. My quandary is how to order the Video Shares Sections. I have a fairly large Movie collection that is currently spread across three NAS systems. My Video Shares "Movies A-D", "Movies E-L" and "Movies M-Z". I have not been able to get them to show up in this order, "Movies M-Z" is always first. I have removed all entries and re-entered them in the order I want several times, hoverer they continue to show M-Z first.
I am using wmcbrine-e3202e6bfb6607208a4b3607bf81681ab7ec2d15.tar.
If I'm reading the code correctly, the config file is processed and each "share" definition is thrown into a hashtable. Then pyTivo loops through the shares hashtable to advertise them to your Tivo. Unfortunately, by default the order you put things into a hashtable doesn't have to match the order in which you loop through it. In fact the order is a little magic unless you do something specific to re-sort them when you're looping through.
I don't know enough python off the top of my head to fix it
But I think the change has to be made in pyTivo\httpserver.py's root_container method.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum