-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread Terminating with Exception: stoi: no conversion #189
Comments
As shown in the DTD, |
Can you PR the change? I’m happy to review it you do so. On the Nexus branch first please. |
Macadoshis
pushed a commit
to Macadoshis/pvr.stalker
that referenced
this issue
Sep 12, 2022
Macadoshis
pushed a commit
to Macadoshis/pvr.stalker
that referenced
this issue
Sep 17, 2022
Macadoshis
pushed a commit
to Macadoshis/pvr.stalker
that referenced
this issue
Sep 20, 2022
Macadoshis
pushed a commit
to Macadoshis/pvr.stalker
that referenced
this issue
Sep 21, 2022
phunkyfish
added a commit
that referenced
this issue
Sep 21, 2022
(Matrix) Fix issue #189 : "year" and "starRating" are optional in xmltv contract
phunkyfish
added a commit
that referenced
this issue
Sep 21, 2022
(Nexus) Fix issue #189 : "year" and "starRating" are optional in xmltv contract
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @AlwinEsch , @phunkyfish,
(sorry for the mentions but you look like the only 2 guys active)
I think there's an issue in the following process :
pvr.stalker/src/GuideManager.cpp
Lines 186 to 191 in ef24347
I get following error when loading my XMLEPG :
Indeed for a
programme
as follow :there's actually no default fallback in the instantiation of a
programme
from xml for the 2 propertiesdate
andstar-rating
that actually most of the XMLTV providers don't offer (!)pvr.stalker/lib/libstalkerclient/xmltv.c
Line 266 in ef24347
So the
std::stoi
method tries to read a null value producing this error.I've tested with the following fix, by manually adding in epg_xmltv.xml :
and it worked (stalkerclient managed to create the guide for this program and channel).
TL;DR
So can you please :
Either check upon null/empty before read or instantiate by default the
XMLTV::Programme#date
from thestart
(YYYYMMDD).Either check upon null/empty before read or instantiate by default the
XMLTV::Programme#starRating
to0
or1
.Thanks a lot.
I think it might help a lot of people and prevent me from having to fork just for those 2 minor fixes.
The text was updated successfully, but these errors were encountered: