mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed writing group separators to channels.conf that contain a comma
This commit is contained in:
parent
e61e1ed425
commit
1caa78a3e7
@ -3185,3 +3185,6 @@ Thomas Maass <mase@setho.org>
|
|||||||
Martin Prochnow <nordlicht@martins-kabuff.de>
|
Martin Prochnow <nordlicht@martins-kabuff.de>
|
||||||
for writing the "extrecmenu" plugin, which inspired the implementation of editing
|
for writing the "extrecmenu" plugin, which inspired the implementation of editing
|
||||||
recording properties
|
recording properties
|
||||||
|
|
||||||
|
Eike Edener <eike@edener.de>
|
||||||
|
for reporting a bug in writing group separators to channels.conf that contain a comma
|
||||||
|
4
HISTORY
4
HISTORY
@ -7920,7 +7920,7 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed cleaning up old EPG events in case no epg data file is given (reported by
|
- Fixed cleaning up old EPG events in case no epg data file is given (reported by
|
||||||
Dave Pickles).
|
Dave Pickles).
|
||||||
|
|
||||||
2013-10-10: Version 2.1.2
|
2013-10-11: Version 2.1.2
|
||||||
|
|
||||||
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
||||||
- Fixed displaying DVB subtitles (thanks to Rolf Ahrenberg for helping to debug and
|
- Fixed displaying DVB subtitles (thanks to Rolf Ahrenberg for helping to debug and
|
||||||
@ -7984,3 +7984,5 @@ Video Disk Recorder Revision History
|
|||||||
- Changed some variable names in positioner.c to match the names used in the page with
|
- Changed some variable names in positioner.c to match the names used in the page with
|
||||||
the explanation on vdr-portal.de.
|
the explanation on vdr-portal.de.
|
||||||
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
||||||
|
- Fixed writing group separators to channels.conf that contain a comma (reported by
|
||||||
|
Eike Edener).
|
||||||
|
16
channels.c
16
channels.c
@ -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: channels.c 2.24 2012/07/14 12:15:00 kls Exp $
|
* $Id: channels.c 3.1 2013/10/11 11:03:26 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
@ -503,12 +503,14 @@ cString cChannel::ToText(const cChannel *Channel)
|
|||||||
char FullName[strlen(Channel->name) + 1 + strlen(Channel->shortName) + 1 + strlen(Channel->provider) + 1 + 10]; // +10: paranoia
|
char FullName[strlen(Channel->name) + 1 + strlen(Channel->shortName) + 1 + strlen(Channel->provider) + 1 + 10]; // +10: paranoia
|
||||||
char *q = FullName;
|
char *q = FullName;
|
||||||
q += sprintf(q, "%s", Channel->name);
|
q += sprintf(q, "%s", Channel->name);
|
||||||
if (!isempty(Channel->shortName))
|
if (!Channel->groupSep) {
|
||||||
q += sprintf(q, ",%s", Channel->shortName);
|
if (!isempty(Channel->shortName))
|
||||||
else if (strchr(Channel->name, ','))
|
q += sprintf(q, ",%s", Channel->shortName);
|
||||||
q += sprintf(q, ",");
|
else if (strchr(Channel->name, ','))
|
||||||
if (!isempty(Channel->provider))
|
q += sprintf(q, ",");
|
||||||
q += sprintf(q, ";%s", Channel->provider);
|
if (!isempty(Channel->provider))
|
||||||
|
q += sprintf(q, ";%s", Channel->provider);
|
||||||
|
}
|
||||||
*q = 0;
|
*q = 0;
|
||||||
strreplace(FullName, ':', '|');
|
strreplace(FullName, ':', '|');
|
||||||
cString buffer;
|
cString buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user