summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-09-21 20:55:17 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-09-21 20:55:17 (GMT)
commitecb67efc2ecf7671447d3eb22d94b4b5d817208d (patch)
treef2d87e7b114034fe430b52c4264d36cf9f8a7e94 /abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch
parent7a02c4a15cd6679ba6b8b2f8a9f61ae0e5bff5a5 (diff)
downloadlinhes_pkgbuild-ecb67efc2ecf7671447d3eb22d94b4b5d817208d.zip
linhes_pkgbuild-ecb67efc2ecf7671447d3eb22d94b4b5d817208d.tar.gz
linhes_pkgbuild-ecb67efc2ecf7671447d3eb22d94b4b5d817208d.tar.bz2
mythtv mythplugins mythweb: update to latest fixes
mythweb: add Channel.php_remove_small_icons.patch to remove icons that are less than 100 bytes so that they will be pulled from the backend
Diffstat (limited to 'abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch')
-rw-r--r--abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch b/abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch
new file mode 100644
index 0000000..f786d15
--- /dev/null
+++ b/abs/core/mythtv/stable-29/mythweb/Channel.php_remove_small_icons.patch
@@ -0,0 +1,14 @@
+diff --git a/modules/tv/classes/Channel.php b/modules/tv/classes/Channel.php
+index a4350283..be45b6ff 100644
+--- ./modules/tv/classes/Channel.php
++++ ./modules/tv/classes/Channel.php
+@@ -113,6 +113,9 @@ class Channel extends MythBase {
+ foreach ($channel_data AS $key => $value)
+ $this->$key = $value;
+ $this->icon = 'data/tv_icons/'.basename($channel_data['icon']);
++ // Remove icons smaller than 100 bytes
++ if (file_exists($this->icon) && filesize($this->icon) < 100)
++ unlink($this->icon);
+ // Try to copy over any missing channel icons
+ if ($channel_data['icon'] && !file_exists($this->icon)) {
+ // Local file?