]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
xmltv: fixed episode/season count being off by one.
authorJohn Törblom <john.tornblom@gmail.com>
Tue, 16 Apr 2013 11:41:36 +0000 (13:41 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 11 Jul 2013 19:03:01 +0000 (20:03 +0100)
(cherry picked from commit cbae62c053aba1386fcb47b65df28b37ce5c1f4c)

src/epggrab/module/xmltv.c

index e00d002bee4e89efd6d9e08c0ba2a8a4bdb739ba..8c7bc3891aca59e9d7c961a3be549b5b95fc0157 100644 (file)
@@ -184,8 +184,8 @@ static const char *xmltv_ns_get_parse_num
 
 
  out:
-  if(ap) *ap = a + 1;
-  if(bp) *bp = b + 1;
+  if(ap && a >= 0) *ap = a + 1;
+  if(bp && b >= 0) *bp = b;
   return s;
 }