summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-30/mythweb/Channel.php_remove_small_icons.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-01-30 15:48:09 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-01-30 15:48:09 (GMT)
commitfb52b64b5af9edfe83c361916a51c28d802b1d36 (patch)
tree7f6d8c693a47eb3ab348e45785c61a9199ee277e /abs/core/mythtv/stable-30/mythweb/Channel.php_remove_small_icons.patch
parent9b6c8730fe90c05fa38880963f4fea2ac7ab7391 (diff)
downloadlinhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.zip
linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.tar.gz
linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.tar.bz2
mythtv mythplugins mythweb: add fixes/30 branch. refs#1034
Diffstat (limited to 'abs/core/mythtv/stable-30/mythweb/Channel.php_remove_small_icons.patch')
-rw-r--r--abs/core/mythtv/stable-30/mythweb/Channel.php_remove_small_icons.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-30/mythweb/Channel.php_remove_small_icons.patch b/abs/core/mythtv/stable-30/mythweb/Channel.php_remove_small_icons.patch
new file mode 100644
index 0000000..f786d15
--- /dev/null
+++ b/abs/core/mythtv/stable-30/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?