From: root Date: Thu, 18 Jan 2018 21:52:10 +0000 (+0100) Subject: Bugfix for season end episode decoder X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9df7b94f3341ad4f6c6d455194afbbb59b651e7d;p=thirdparty%2Ftvheadend.git Bugfix for season end episode decoder --- 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: