From 9df7b94f3341ad4f6c6d455194afbbb59b651e7d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Jan 2018 22:52:10 +0100 Subject: [PATCH] Bugfix for season end episode decoder --- src/dvr/dvr_db.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index a70b58856..fd43b8c13 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -892,10 +892,10 @@ static int extract_season_episode(epg_episode_num_t *epnum, const char *text) memset(epnum, 0, sizeof(*epnum)); /* Extract season and season count */ - if (strncasecmp(ch, "Season", 7)) + if (strncasecmp(ch, "Season", 6)) goto _episode; - ch += 7; + ch += 6; for (; *ch == ' '; ch++); for (; isdigit(*ch); ch++) s = (s * 10) + (*ch - '0'); @@ -907,6 +907,7 @@ static int extract_season_episode(epg_episode_num_t *epnum, const char *text) /* Sanity check */ if (*ch != '.') return 0; + ch++; /* Extract episode and episode count */ _episode: -- 2.47.3