Bug #2906 ยป fix_rec_slash.patch
src/dvr/dvr_rec.c | ||
---|---|---|
239 | 239 | |
240 | 240 |
static const char *dvr_sub_title(const char *id, const void *aux) |
241 | 241 |
{ |
242 |
return dvr_do_prefix(id, lang_str_get(((dvr_entry_t *)aux)->de_title, NULL)); |
|
242 |
int i; |
|
243 |
char* buf = (char*) dvr_do_prefix(id, lang_str_get(((dvr_entry_t *)aux)->de_title, NULL)); |
|
244 | ||
245 |
/* Remove / from title */ |
|
246 |
for (i=0; i<strlen(buf); i++) { |
|
247 |
if (buf[i] == '/') |
|
248 |
{ |
|
249 |
tvherror("dvr", "Removed '/' char from file name"); |
|
250 |
buf[i] = '-'; |
|
251 |
} |
|
252 |
} |
|
253 | ||
254 |
return (const char*) buf; |
|
243 | 255 |
} |
244 | 256 | |
245 | 257 |
static const char *dvr_sub_subtitle(const char *id, const void *aux) |