Skip to content

Commit

Permalink
Logos are back thanks to an ugly hack!
Browse files Browse the repository at this point in the history
  • Loading branch information
aassif committed Nov 20, 2020
1 parent 213c21b commit 5605206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pvr.freebox/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.freebox"
version="6.0.0"
version="6.0.1"
name="PVR Freebox TV"
provider-name="aassif">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
6 changes: 3 additions & 3 deletions src/Freebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,15 +876,15 @@ bool Freebox::ProcessChannels ()
data.emplace_back (ParseSource (t), ParseQuality (q), freebox_replace_server (u, m_server));
}
}
#if 1
#if 0
if (! kodi::vfs::DirectoryExists (m_path + "logos"))
kodi::vfs::CreateDirectory (m_path + "logos");

std::string path = m_path + "logos/" + ch.uuid;
freebox_channel_logo_fix (logo, path);
m_tv_channels.emplace (ChannelId (ch.uuid), Channel (ch.uuid, name, path, ch.major, ch.minor, data));
#else
m_tv_channels.emplace (ChannelId (ch.uuid), Channel (ch.uuid, name, logo, ch.major, ch.minor, data));
m_tv_channels.emplace (ChannelId (ch.uuid), Channel (ch.uuid, name, logo + "|customrequest=GET", ch.major, ch.minor, data));
#endif
}
}
Expand Down Expand Up @@ -1014,7 +1014,7 @@ void Freebox::ProcessEvent (const Event & e, EPG_EVENT_STATE state)

m_mutex.lock ();
bool colors = m_epg_colors;
string picture = ! e.picture.empty () ? URL (e.picture) : "";
string picture = ! e.picture.empty () ? URL (e.picture + "|customrequest=GET") : "";
m_mutex.unlock ();

string actors = e.GetCastActors ();
Expand Down

0 comments on commit 5605206

Please sign in to comment.