File tree 4 files changed +12
-3
lines changed
4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 27
27
28
28
#include "util.h"
29
29
30
+ #include <kodi/c-api/addon-instance/pvr/pvr_epg.h>
31
+
30
32
void * sc_xmltv_create (enum sc_xmltv_strct type ) {
31
33
size_t size = 0 ;
32
34
void * strct = NULL ;
@@ -60,6 +62,7 @@ void *sc_xmltv_create(enum sc_xmltv_strct type) {
60
62
sc_xmltv_programme_t * p = (sc_xmltv_programme_t * ) strct ;
61
63
p -> credits = sc_list_create ();
62
64
p -> categories = sc_list_create ();
65
+ p -> episode_num = EPG_TAG_INVALID_SERIES_EPISODE ;
63
66
break ;
64
67
}
65
68
default :
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<addon
3
3
id =" pvr.stalker"
4
- version =" 20.3.0 "
4
+ version =" 20.3.1 "
5
5
name =" Stalker Client"
6
6
provider-name =" Jamal Edey" >
7
7
<requires >@ADDON_DEPENDS@</requires >
Original file line number Diff line number Diff line change
1
+ v20.3.1
2
+ - Fix issue #189 : "year" and "starRating" are optional in xmltv contract
3
+ - Fix issue : init episodeNumber to undefined instead of "0"
4
+
1
5
v20.3.0
2
6
- Kodi inputstream API update to version 3.2.0
3
7
- Kodi PVR API update to version 8.0.2
Original file line number Diff line number Diff line change @@ -183,12 +183,14 @@ int GuideManager::AddEvents(
183
183
e.cast = p->extra .cast ;
184
184
e.directors = p->extra .directors ;
185
185
e.writers = p->extra .writers ;
186
- e.year = std::stoi (p->date .substr (0 , 4 ));
186
+ if (!p->date .empty ())
187
+ e.year = std::stoi (p->date .substr (0 , 4 ));
187
188
e.iconPath = p->icon ;
188
189
e.genreType = p->extra .genreType ;
189
190
e.genreDescription = p->extra .genreDescription ;
190
191
e.firstAired = p->previouslyShown ;
191
- e.starRating = std::stoi (p->starRating .substr (0 , 1 ));
192
+ if (!p->starRating .empty ())
193
+ e.starRating = std::stoi (p->starRating .substr (0 , 1 ));
192
194
e.episodeNumber = p->episodeNumber ;
193
195
e.episodeName = p->subTitle ;
194
196
You can’t perform that action at this time.
0 commit comments