]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Bugfix for season end episode decoder
authorroot <root@hoppy.lan>
Thu, 18 Jan 2018 21:52:10 +0000 (22:52 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Jan 2018 22:38:49 +0000 (23:38 +0100)
src/dvr/dvr_db.c

index a70b58856629f59dfe62f190b9ac3a107459ba95..fd43b8c13d21ddff8bf3a3509d3d305f91ef6be2 100644 (file)
@@ -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: