mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed sorting folders before recordings in case of UTF-8
This commit is contained in:
parent
6f1577a659
commit
62dee6514a
@ -2959,3 +2959,4 @@ Jens Vogel <jens.vogel@akjv.de>
|
|||||||
Sören Moch <smoch@web.de>
|
Sören Moch <smoch@web.de>
|
||||||
for a patch that was used to move cleaning up the EPG data and writing the epg.data
|
for a patch that was used to move cleaning up the EPG data and writing the epg.data
|
||||||
file into a separate thread to avoid sluggish response to user input on slow systems
|
file into a separate thread to avoid sluggish response to user input on slow systems
|
||||||
|
for fixing sorting folders before recordings in case of UTF-8
|
||||||
|
3
HISTORY
3
HISTORY
@ -7235,7 +7235,7 @@ Video Disk Recorder Revision History
|
|||||||
function in order to make use of this new feature. See, for instance, the function
|
function in order to make use of this new feature. See, for instance, the function
|
||||||
cSkinClassicDisplayMenu::SetButtons() in skinclassic.c for details.
|
cSkinClassicDisplayMenu::SetButtons() in skinclassic.c for details.
|
||||||
|
|
||||||
2012-09-24: Version 1.7.31
|
2012-09-29: Version 1.7.31
|
||||||
|
|
||||||
- If regenerating an index file fails and no data is written to the file, VDR now
|
- If regenerating an index file fails and no data is written to the file, VDR now
|
||||||
reports this error and removes the empty index file.
|
reports this error and removes the empty index file.
|
||||||
@ -7261,3 +7261,4 @@ Video Disk Recorder Revision History
|
|||||||
- Moved cleaning up the EPG data and writing the epg.data file into a separate
|
- Moved cleaning up the EPG data and writing the epg.data file into a separate
|
||||||
thread to avoid sluggish response to user input on slow systems (based on a patch from
|
thread to avoid sluggish response to user input on slow systems (based on a patch from
|
||||||
Sören Moch).
|
Sören Moch).
|
||||||
|
- Fixed sorting folders before recordings in case of UTF-8 (thanks to Sören Moch).
|
||||||
|
@ -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.62 2012/09/17 08:54:00 kls Exp $
|
* $Id: recording.c 2.63 2012/09/29 10:04:55 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -820,9 +820,13 @@ char *cRecording::StripEpisodeName(char *s)
|
|||||||
t++;
|
t++;
|
||||||
}
|
}
|
||||||
if (s1 && s2) {
|
if (s1 && s2) {
|
||||||
|
// To have folders sorted before plain recordings, the '/' s1 points to
|
||||||
|
// is replaced by the character 'b'. All other slashes will be replaced
|
||||||
|
// by 'a' in SortName() (see below), which will result in the desired
|
||||||
|
// sequence:
|
||||||
|
*s1 = 'b';
|
||||||
s1++;
|
s1++;
|
||||||
memmove(s1, s2, t - s2 + 1);
|
memmove(s1, s2, t - s2 + 1);
|
||||||
*s1 = 0xFF; // sorts folders before plain recordings
|
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user