mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed sorting recordings in the top level video directory
This commit is contained in:
parent
c13dd17505
commit
f4aabad2ae
4
HISTORY
4
HISTORY
@ -7190,3 +7190,7 @@ Video Disk Recorder Revision History
|
|||||||
- The new setup option "Miscellaneous/Show channel names with source" can be used to
|
- The new setup option "Miscellaneous/Show channel names with source" can be used to
|
||||||
turn on adding the source character to channel names whenever they are displayed
|
turn on adding the source character to channel names whenever they are displayed
|
||||||
(suggested by Ludi Kaleni).
|
(suggested by Ludi Kaleni).
|
||||||
|
|
||||||
|
2012-07-15: Version 1.7.30
|
||||||
|
|
||||||
|
- Fixed sorting recordings in the top level video directory.
|
||||||
|
10
config.h
10
config.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: config.h 2.49 2012/06/17 11:14:50 kls Exp $
|
* $Id: config.h 2.50 2012/07/15 10:51:56 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
@ -22,13 +22,13 @@
|
|||||||
|
|
||||||
// VDR's own version number:
|
// VDR's own version number:
|
||||||
|
|
||||||
#define VDRVERSION "1.7.29"
|
#define VDRVERSION "1.7.30"
|
||||||
#define VDRVERSNUM 10729 // Version * 10000 + Major * 100 + Minor
|
#define VDRVERSNUM 10730 // Version * 10000 + Major * 100 + Minor
|
||||||
|
|
||||||
// The plugin API's version number:
|
// The plugin API's version number:
|
||||||
|
|
||||||
#define APIVERSION "1.7.29"
|
#define APIVERSION "1.7.30"
|
||||||
#define APIVERSNUM 10729 // Version * 10000 + Major * 100 + Minor
|
#define APIVERSNUM 10730 // Version * 10000 + Major * 100 + Minor
|
||||||
|
|
||||||
// When loading plugins, VDR searches them by their APIVERSION, which
|
// When loading plugins, VDR searches them by their APIVERSION, which
|
||||||
// may be smaller than VDRVERSION in case there have been no changes to
|
// may be smaller than VDRVERSION in case there have been no changes to
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: recording.c 2.57 2012/06/09 13:57:30 kls Exp $
|
* $Id: recording.c 2.58 2012/07/15 10:47:58 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -831,8 +831,8 @@ char *cRecording::SortName(void) const
|
|||||||
{
|
{
|
||||||
char **sb = (RecordingsSortMode == rsmName) ? &sortBufferName : &sortBufferTime;
|
char **sb = (RecordingsSortMode == rsmName) ? &sortBufferName : &sortBufferTime;
|
||||||
if (!*sb) {
|
if (!*sb) {
|
||||||
char *s = (RecordingsSortMode == rsmName) ? strdup(FileName() + strlen(VideoDirectory) + 1)
|
char *s = (RecordingsSortMode == rsmName) ? strdup(FileName() + strlen(VideoDirectory))
|
||||||
: StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) + 1));
|
: StripEpisodeName(strdup(FileName() + strlen(VideoDirectory)));
|
||||||
strreplace(s, '/', 'a'); // some locales ignore '/' when sorting
|
strreplace(s, '/', 'a'); // some locales ignore '/' when sorting
|
||||||
int l = strxfrm(NULL, s, 0) + 1;
|
int l = strxfrm(NULL, s, 0) + 1;
|
||||||
*sb = MALLOC(char, l);
|
*sb = MALLOC(char, l);
|
||||||
|
Loading…
Reference in New Issue
Block a user