`$x` | Filename extension (from the active stream muxer | mkv
`%F` | ISO 8601 date format | 2011-03-19
`%R` | The time in 24-hour notation | 14:12
+
The format strings `$t`,`$s`,`%e`,`$c` also have delimiter variants such as
`$ t` (space after the dollar character), `$-t`, `$_t`,
`$.t`, `$,t`, `$;t`. In these cases, the delimiter is applied
static const char *
_dvr_sub_scraper_friendly(const char *id, const char *fmt, const void *aux, char *tmp, size_t tmplen, int with_genre_subdir)
{
- char date_buf[MAX(PATH_MAX, 512)] = { 0 };
- char episode_buf[MAX(PATH_MAX, 512)] = { 0 };
+ char date_buf[512] = { 0 };
+ char episode_buf[512] = { 0 };
const dvr_entry_t *de = aux;
/* Can't be const due to call to epg_episode_number_format */
/*const*/ epg_episode_t *episode = de->de_bcast ? de->de_bcast->episode : 0;
subtitle = desc = NULL;
}
- char title_buf[MAX(PATH_MAX, 512)] = { 0 };
- char subtitle_buf[MAX(PATH_MAX, 512)] = { 0 };
+ char title_buf[512] = { 0 };
+ char subtitle_buf[512] = { 0 };
/* Copy a cleaned version in to our buffers.
* Since dvr_clean_directory_separator _can_ modify source if source!=dest
* it means we have to remove our const when we call it.