diff --git a/pvr.plutotv/addon.xml.in b/pvr.plutotv/addon.xml.in index bc8a728..a2610b8 100644 --- a/pvr.plutotv/addon.xml.in +++ b/pvr.plutotv/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.plutotv/changelog.txt b/pvr.plutotv/changelog.txt index c30ab6b..9e910d4 100644 --- a/pvr.plutotv/changelog.txt +++ b/pvr.plutotv/changelog.txt @@ -1,3 +1,6 @@ +v20.3.2 +- Fix crash when no channels are returned from pluto API + v20.3.1 - TM free logo diff --git a/src/PlutotvData.cpp b/src/PlutotvData.cpp index bcc76c2..09cc921 100644 --- a/src/PlutotvData.cpp +++ b/src/PlutotvData.cpp @@ -90,7 +90,7 @@ bool PlutotvData::LoadChannelsData() kodi::Log(ADDON_LOG_DEBUG, "[load data] GET CHANNELS"); std::string jsonChannels = HttpGet("https://api.pluto.tv/v2/channels.json"); - if (jsonChannels.empty()) + if (jsonChannels.empty() || jsonChannels == "[]") { kodi::Log(ADDON_LOG_ERROR, "[channels] ERROR - empty response"); return false;