pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorting
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo
 View previous topic :: View next topic  
Author Message
Tekniqal



Joined: 11 Apr 2009
Posts: 2

PostPosted: Sun Apr 19, 2009 10:29 pm    Post subject: Reply with quote

is there a way to do what KevinSartori said above, plus ignore the case?
Back to top
View user's profile Send private message AIM Address
choekstr



Joined: 06 Dec 2008
Posts: 134

PostPosted: Sun Apr 19, 2009 11:12 pm    Post subject: Reply with quote

ebf wrote:
choekstr wrote:
Either hit enter and choose alphabetical sort or hit "1" for a hotkey toggle.

Since the date sort method cannot be controlled in subfolders, I wanted to go back to the original, always alpha method.

I thought when you sort by alpha all the subsequent subfolders sort by alpha as well. This would be the same way it used to be.

Does it not sort by alpha in the subdirectories when you sort the parent folder?
Back to top
View user's profile Send private message
ebf



Joined: 22 Mar 2008
Posts: 118

PostPosted: Sun Apr 19, 2009 11:15 pm    Post subject: Reply with quote

choekstr wrote:
... Does it not sort by alpha in the subdirectories when you sort the parent folder?

Not with the mod or creation time option included. I was able to toggle the top level with the 1 key, but the subfolders stayed sorted by mod date.
Back to top
View user's profile Send private message
choekstr



Joined: 06 Dec 2008
Posts: 134

PostPosted: Sun Apr 19, 2009 11:28 pm    Post subject: Reply with quote

ebf wrote:
choekstr wrote:
... Does it not sort by alpha in the subdirectories when you sort the parent folder?

Not with the mod or creation time option included. I was able to toggle the top level with the 1 key, but the subfolders stayed sorted by mod date.

That sounds like the if/else logic isn't working properly. I believe wmcbrine intended it to work as we would expect.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 1160

PostPosted: Mon Apr 20, 2009 12:16 am    Post subject: Reply with quote

Not my fault... the TiVo asks for a date-sorted listing on the lower-level folders, and there's no way to tell it to do otherwise. But, like I say, that's why I'm thinking of an option to force it.

But I repeat myself.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
TheAmigo



Joined: 14 Apr 2009
Posts: 32

PostPosted: Sat Apr 25, 2009 3:27 am    Post subject: Reply with quote

wmcbrine wrote:
No. I just mean:

[Movies]
type = video
path = /where/ev/er
sort = alpha

or something along those lines. Then that share would always be sorted alpha (the old pyTivo behavior).


If you do implement that (which I'd really appreciate), I have a couple requests:
1) Ignore leading articles. As others have posted on how to skip 'the ', but it should also ignore 'a ' and 'an '.
2) Don't sort based on filename, instead, sort by seriesTitle, episodeNumber, then title.

Typically, sorting by filename is good, but when getting metadata for foreign films, the title can be completely different than the filename.

Although I'm sure there are other opinions on the best way to sort.

I gave it a try, but I ended up with shows jumping around as I paged through the list, so I obviously didn't do something right... I just started with python last month, so I've still got some learning to do.

_________________
--
The Amigo
Back to top
View user's profile Send private message
reneg



Joined: 04 Jan 2008
Posts: 98

PostPosted: Sat Apr 25, 2009 12:31 pm    Post subject: Reply with quote

TheAmigo wrote:

If you do implement that (which I'd really appreciate), I have a couple requests:
1) Ignore leading articles. As others have posted on how to skip 'the ', but it should also ignore 'a ' and 'an '.
2) Don't sort based on filename, instead, sort by seriesTitle, episodeNumber, then title.

If this happens, I hope sort is flexible. I sort based on filename.
Back to top
View user's profile Send private message
TheAmigo



Joined: 14 Apr 2009
Posts: 32

PostPosted: Sat Apr 25, 2009 4:14 pm    Post subject: Reply with quote

reneg wrote:
If this happens, I hope sort is flexible. I sort based on filename.


Is your metadata such that sorting by seriesTitle, episodeNumber, then title would be different than filename? In a bad way?

Sorting by filename gives me this messy looking section:

Seven Pounds
Avaze gonjeshk-ha <-- filename: The Song Of Sparrows (2008).mov
Step Brothers
L'heure d'été <-- filename: Summer Hours (2008).mov
Sunshine Cleaning

I'm trying to automate the downloading of trailers. While it may seem easy to rename files, doing so in an automated fashion is likely to cause problems (e.g. matching the wrong release at IMDb and naming the file based on that)

_________________
--
The Amigo
Back to top
View user's profile Send private message
reneg



Joined: 04 Jan 2008
Posts: 98

PostPosted: Sat Apr 25, 2009 8:46 pm    Post subject: Reply with quote

I sort by filename because I have a large collection of TV Series. My filenames contain the series name, season, episode number, and episode title on one line. This allows me to see all the relevant data I need to select episodes without drilling down into metadata.

All I'm saying is that sorting should be flexible because there is more than one right answer on how to sort results. My perfect sort is different than yours.
Back to top
View user's profile Send private message
TheAmigo



Joined: 14 Apr 2009
Posts: 32

PostPosted: Sat Apr 25, 2009 11:52 pm    Post subject: Reply with quote

I name my TV shows the same way... that's why I propose sorting by seriesTitle, then episodeNumber. In your case, that would be the same as filename.
_________________
--
The Amigo
Back to top
View user's profile Send private message
reneg



Joined: 04 Jan 2008
Posts: 98

PostPosted: Sun Apr 26, 2009 12:00 pm    Post subject: Reply with quote

As long as series name, season, episode number, and episode title are displayed on the selection screen without having to examine the metadata info, then I'm happy.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 1160

PostPosted: Mon May 11, 2009 5:12 am    Post subject: Reply with quote

OK, I've added an per-share option "force_alpha" -- set this to "True" to get the old pyTivo behavior. Video shares only. While I was changing things, I made the name sorting when not using force_alpha work more like it does on the TiVo, by not grouping folders and files separately.

I acknowledge the wisdom of these comments:

TheAmigo wrote:
If you do implement that (which I'd really appreciate), I have a couple requests:
1) Ignore leading articles. As others have posted on how to skip 'the ', but it should also ignore 'a ' and 'an '.
2) Don't sort based on filename, instead, sort by seriesTitle, episodeNumber, then title.

However, that involves more work, so it will have to wait. I've put this off this long enough.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
KevinSartori



Joined: 08 Feb 2009
Posts: 23

PostPosted: Fri May 29, 2009 7:25 pm    Post subject: Reply with quote

I just updated pyTivo today with wmcbrine's latest. You are probably already aware of this, but setting force_alpha = True sorts folders and files alphabetically, but the sub-folders contained in those folders are still sorted by date. Previously, I was using wmcbrine's 2009-05-10 .git (the one before the force_alpha option was added) and modifying plugin.py using the combined tips from danimal4326 and ebf. This mod would sort the sub-folders as well.

I appreciate the work you're putting into this and I don't mean this as a criticism, I just thought it was important to point out this bug! Thanks again and keep up the good work!
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 1160

PostPosted: Sat May 30, 2009 2:10 am    Post subject: Reply with quote

No, I'm not aware of it, nor is it true. I suspect you're misusing the option -- remember, it's per-share; you can't put it in the "Server" section.
_________________
My pyTivo fork
Back to top
View user's profile Send private message
KevinSartori



Joined: 08 Feb 2009
Posts: 23

PostPosted: Sat May 30, 2009 3:36 am    Post subject: Reply with quote

I didn't put it in the Server section. I used the pyTivo web interface and added True to the force_alpha option in my video share. I tried updating again and it was still doing it.

So I decided to try totally uninstalling pyTivo (setting and all) and then reinstall pyTivo-wmcbrine-2008.08.20-RC1.zip and then apply the latest update.

Now it's not doing it! Sub-folders are sorting alphabetically now! I have updated a bunch of times... No idea what happened. Very strange. I backed up my old pyTivo.conf file, but when I compare it to the new one, I don't see anything different.

Sorry about that! Honestly, the sub-folders were sorting by date before... Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
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
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.1330s ][ Queries: 12 (0.0374s) ][ Debug on ]