Skip to content

Commit

Permalink
Merge pull request #559 from phunkyfish/release-7.6.13
Browse files Browse the repository at this point in the history
Changelog and version for v7.6.13
  • Loading branch information
phunkyfish authored Sep 11, 2021
2 parents 95c4b92 + de050d2 commit e4e3221
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pvr.iptvsimple/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.iptvsimple"
version="7.6.12"
version="7.6.13"
name="PVR IPTV Simple Client"
provider-name="nightik and Ross Nicholson">
<requires>@ADDON_DEPENDS@
Expand All @@ -21,6 +21,9 @@
<icon>icon.png</icon>
</assets>
<news>
v7.6.13
- Fixed: Apply timezone for first aired date if after 1970

v7.6.12
- Fixed: Always compare to the raw start date and not the localised time to detect NEW programmes
- Fixed: Do not set year if this programme is a TV show
Expand Down
3 changes: 3 additions & 0 deletions pvr.iptvsimple/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v7.6.13
- Fixed: Apply timezone for first aired date if after 1970

v7.6.12
- Fixed: Always compare to the raw start date and not the localised time to detect NEW programmes
- Fixed: Do not set year if this programme is a TV show
Expand Down
4 changes: 2 additions & 2 deletions src/iptvsimple/data/EpgEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ bool EpgEntry::UpdateFrom(const xml_node& channelNode, const std::string& id,
static const std::regex dateRegex("^[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]");
if (std::regex_match(dateString, dateRegex))
{
long long tmpDate = ParseDateTime(dateString.substr(0,8) + strStart.substr(8));
// Windows localtime_s does not support negative time_t
long long tmpDate = ParseDateTime(dateString.substr(0, DATESTRING_LENGTH) + strStart.substr(DATESTRING_LENGTH));
// Protect against negative time_t which can crash on some platforms such as localtime_s on Windows
if (tmpDate < 0)
{
m_firstAired = ParseAsW3CDateString(dateString);
Expand Down
1 change: 1 addition & 0 deletions src/iptvsimple/data/EpgEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace iptvsimple
namespace data
{
static const float STAR_RATING_SCALE = 10.0f;
constexpr int DATESTRING_LENGTH = 8;

class EpgEntry
{
Expand Down

0 comments on commit e4e3221

Please sign in to comment.