Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 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="20.9.1"
version="20.9.2"
name="IPTV Simple Client"
provider-name="nightik and Ross Nicholson">
<requires>@ADDON_DEPENDS@
Expand Down
5 changes: 4 additions & 1 deletion pvr.iptvsimple/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
v20.9.1
v20.9.2
- Revert async connect support

v20.9.2
- Don't URL encode paths using resource:// or special:// protocols

v20.9.0
Expand Down
10 changes: 1 addition & 9 deletions src/IptvSimple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ bool IptvSimple::Initialise()
{
std::lock_guard<std::mutex> lock(m_mutex);

ConnectionStateChange("", PVR_CONNECTION_STATE_CONNECTING, "");

m_channels.Init();
m_channelGroups.Init();
m_providers.Init();
Expand All @@ -45,11 +43,6 @@ bool IptvSimple::Initialise()
{
m_channels.ChannelsLoadFailed();
m_channelGroups.ChannelGroupsLoadFailed();
ConnectionStateChange("", PVR_CONNECTION_STATE_DISCONNECTED, "");
}
else
{
ConnectionStateChange("", PVR_CONNECTION_STATE_CONNECTED, "");
}
m_epg.Init(EpgMaxPastDays(), EpgMaxFutureDays());

Expand Down Expand Up @@ -123,8 +116,7 @@ void IptvSimple::Process()
std::this_thread::sleep_for(std::chrono::milliseconds(1000));

m_settings->ReloadAddonInstanceSettings();
if (m_playlistLoader.ReloadPlayList())
ConnectionStateChange("", PVR_CONNECTION_STATE_CONNECTED, "");
m_playlistLoader.ReloadPlayList();
m_epg.ReloadEPG(); // Reloading EPG also updates media

m_reloadChannelsGroupsAndEPG = false;
Expand Down
6 changes: 1 addition & 5 deletions src/iptvsimple/PlaylistLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ void PlaylistLoader::ParseSinglePropertyIntoChannel(const std::string& line, Cha
}
}

bool PlaylistLoader::ReloadPlayList()
void PlaylistLoader::ReloadPlayList()
{
m_m3uLocation = m_settings->GetM3ULocation();

Expand All @@ -532,15 +532,11 @@ bool PlaylistLoader::ReloadPlayList()
m_client->TriggerChannelGroupsUpdate();
m_client->TriggerProvidersUpdate();
m_client->TriggerRecordingUpdate();

return true;
}
else
{
m_channels.ChannelsLoadFailed();
m_channelGroups.ChannelGroupsLoadFailed();

return false;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/iptvsimple/PlaylistLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace iptvsimple
bool Init();

bool LoadPlayList();
bool ReloadPlayList();
void ReloadPlayList();

private:
static std::string ReadMarkerValue(const std::string& line, const std::string& markerName);
Expand Down