Skip to content

Commit

Permalink
Fix issue : <episode-num> default value if missing from xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad BENBOUZID committed Sep 21, 2022
1 parent 9c17fd5 commit eddbe61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/libstalkerclient/xmltv.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include "util.h"

#include <kodi/c-api/addon-instance/pvr/pvr_epg.h>

void *sc_xmltv_create(enum sc_xmltv_strct type) {
size_t size = 0;
void *strct = NULL;
Expand Down Expand Up @@ -60,6 +62,7 @@ void *sc_xmltv_create(enum sc_xmltv_strct type) {
sc_xmltv_programme_t *p = (sc_xmltv_programme_t *) strct;
p->credits = sc_list_create();
p->categories = sc_list_create();
p->episode_num = EPG_TAG_INVALID_SERIES_EPISODE;
break;
}
default:
Expand Down

0 comments on commit eddbe61

Please sign in to comment.