Merge remote-tracking branch 'origin/pr/372'
This commit is contained in:
commit
d152b6c8e2
1 changed files with 3 additions and 3 deletions
|
@ -215,12 +215,12 @@ static void parse_xmltv_dd_progid
|
|||
|
||||
/* Episode */
|
||||
if (!strncmp("EP", s, 2)) {
|
||||
int e = strlen(buf);
|
||||
while (e && s[e] != '.') e--;
|
||||
int e = strlen(buf)-1;
|
||||
while (e && buf[e] != '.') e--;
|
||||
if (e) {
|
||||
buf[e] = '\0';
|
||||
*suri = strdup(buf);
|
||||
if (s[e+1]) sscanf(s+e+1, "%hu", &(epnum->e_num));
|
||||
if (buf[e+1]) sscanf(&buf[e+1], "%hu", &(epnum->e_num));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue