News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

recordings sort-order?

Started by izeman, December 19, 2006, 08:35:56

Previous topic - Next topic

izeman

hi all

is there a way to change the sort order of recordings? it REALLY annoying that all recordings are displayed in alphabetical order. in case you're want to watch one episode after the other in the right order (as they where broadcasted) you have to search for the oldest episode "by hand".

is there a way to change the order? if not: could you PLEASE make that possible in one of the next releases?

thanks in advance
regards ize|man

Chris

The current algorithm sorts by programme name and then start time. Are your programme names for a series not all the same?

There is no way to change it at the moment.

izeman

hi chris

take that bunch of 'las vegas' recordings, which is in a sub-folder called 'las vegas':

2006-09-26 03:14 Unter_Mordverdacht
2006-10-03 03:17 Der_letzte_Wunsch
2006-10-10 03:18 Der_Traum_vom_Silberschatz
2006-10-17 03:39 Loyalit?t_und_Vertrauen
2006-10-31 03:19 Besuch_aus_Boston
2006-11-06 22:45 Geliebter_Feind
2006-11-14 03:11 Mein_wunderbarer_Waschsalon
2006-11-20 23:05 Silver_Star
2006-11-28 03:16 Der_Schein_tr?gt
2006-12-05 03:25 Kidnapping
2006-12-12 03:18 Die_Rache_einer_Frau
2006-12-18 23:00 Der_Bombenanschlag

so what vomp does now, is showing it this way:

2006-10-31 03:19 Besuch_aus_Boston
2006-12-18 23:00 Der_Bombenanschlag
2006-10-03 03:17 Der_letzte_Wunsch
2006-11-28 03:16 Der_Schein_tr?gt
2006-10-10 03:18 Der_Traum_vom_Silberschatz
2006-12-12 03:18 Die_Rache_einer_Frau
2006-11-06 22:45 Geliebter_Feind
2006-12-05 03:25 Kidnapping
2006-10-17 03:39 Loyalit?t_und_Vertrauen
2006-11-14 03:11 Mein_wunderbarer_Waschsalon
2006-11-20 23:05 Silver_Star
2006-09-26 03:14 Unter_Mordverdacht

so what happened: all recordings got sorted ALPHABETICALLY. and if you're not smart enough to find the oldest recording (what's not too easy sitting away 3m from my 55cm tv screen ;) - you mix up all episodes and keep wondering why persons that already died 2 episodes ago still walk around .... ;))

so pls confirm that this is the way you want it to have and that there is no way to change that (maybe with a special .conf entry or someway else)

thanks,
regards ize|man


Sir George

#3
My suggestion would be a behaviour as in vdr: pressing 0 changes the sort order between alphebetic and time-based.
I'm not sure if that is a base-vdr function or done in the extrecmenu plugin.
If I'm right the sorting algorithm of the vompclient is in directory.* I guess simply exchanging the comparison of times and names would do the job. I'm not that good at c++, so I can't tell for sure.

davep

I also prefer the recordings list in date order. Here is my quick hack to sort the list by programme start date/time:

--- client/directory.h   14 May 2006 18:44:51 -0000   1.4
+++ client/directory.h   19 Dec 2006 17:31:14 -0000
@@ -67,9 +67,9 @@
{
   bool operator() (const Recording* a, const Recording* b)
   {
-    int c = strcmp(b->getProgName(), a->getProgName());
-    if (c > 0) return true;
-    if (c < 0) return false;
+//    int c = strcmp(b->getProgName(), a->getProgName());
+//    if (c > 0) return true;
+//    if (c < 0) return false;

     return a->getStartTime() < b->getStartTime();
   }

izeman

@davep:

cool!! may i ask if you could provide a compiled image file? i never tried compiling images for the mvp myself but i guess i need a special environment, right?

@sir george:

that's exactly how i want it to be. key '0' is not used atm. so imho it's a good idea to use it for 'sort order'.

maybe it will be implemented in the future. i'll keep my fingers crossed ;)

regards ize|man

davep

Quote from: izeman on December 19, 2006, 21:42:41
cool!! may i ask if you could provide a compiled image file? i never tried compiling images for the mvp myself but i guess i need a special environment, right?

Hmmm, I've never tried building a dongle. OTOH Chris's instructions for building the development environment at http://www.loggytronic.com/vomp-devenv.php are straightforward; you could give that a try.

izeman

Quote from: davep on December 20, 2006, 21:15:15
Quote from: izeman on December 19, 2006, 21:42:41
cool!! may i ask if you could provide a compiled image file? i never tried compiling images for the mvp myself but i guess i need a special environment, right?

Hmmm, I've never tried building a dongle. OTOH Chris's instructions for building the development environment at http://www.loggytronic.com/vomp-devenv.php are straightforward; you could give that a try.


hi davep

thanks for the hint. followed the link, read it, scrolled down, scrolled down again, again, and decided that i could easily just WAIT for that feature to be implemented. ;) as i'm no developer the effort for installing all that stuff is way to much. :( (especially just before christmas, i guess i should spend any of my small free time with my family).

so thanks again and merry christmas to all of you ....

regards ize|man

riban

The ability to change sort order may be nice to have but *please* keep ability (preferably as default) to sort alphabetically. I usually know the title of the programme I want to watch (or my wife tells me!) so this is by far the easiest way to find it. Remembering that we recorded Prince Of Darkness on the 20th January 2006 is a bit of a tall order. (We must get round to watching those recordings from last Christmas.)

Chris

Done. It is an option stored in the config, defaults to alphabetical unless the user changes the default. While looking at the recordings list, the sort order can be changed temporarily by pressing 0, and on new remotes also left and right.

This is in CVS and will be in the next release.

izeman

Quote from: Chris on December 29, 2006, 23:54:40
Done. It is an option stored in the config, defaults to alphabetical unless the user changes the default. While looking at the recordings list, the sort order can be changed temporarily by pressing 0, and on new remotes also left and right.

This is in CVS and will be in the next release.


@chris: you totally rock!!! thanks a lot. makes my viewing experience WAYS better ...

happy new year!

regards ize|man