Mailing List Archive

Mythweb Channel Icon problem
The routine which copies Channel Icon images from Myth to Mythweb isn’t
working correctly.

At all times when I view Channel Icons on a frontend or in mythtv-setup I
see what I expect, but recently a couple of images were updated and then
they didn’t display on Mythweb – they showed as missing/corrupted image
rather than no image.

The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
group permission mythtv, but they are readable by all.

Mythweb seems to access the images from /var/cache/mythweb/image_cache and
most images here are correct. I understand that when a new icon is added or
used something copies it to the image_cache folder. In my case that process
is producing corrupted images; each is 44Bytes. It is an empty xml file.
This is the same for PNG and jpg.

If I manually copy the icons from channels to image_cache I see the images
I expect on Mythweb, however I would like to see if I can understand what
is going wrong as this may indicate something else is wrong.

I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
Re: Mythweb Channel Icon problem [ In reply to ]
On 09/20/2018 07:36 AM, Edmund Na wrote:
> The routine which copies Channel Icon images from Myth to Mythweb isn’t
> working correctly.
>
> At all times when I view Channel Icons on a frontend or in mythtv-setup I
> see what I expect, but recently a couple of images were updated and then
> they didn’t display on Mythweb – they showed as missing/corrupted image
> rather than no image.
>
> The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
> group permission mythtv, but they are readable by all.
>
> Mythweb seems to access the images from /var/cache/mythweb/image_cache and
> most images here are correct. I understand that when a new icon is added or
> used something copies it to the image_cache folder. In my case that process
> is producing corrupted images; each is 44Bytes. It is an empty xml file.
> This is the same for PNG and jpg.
>
> If I manually copy the icons from channels to image_cache I see the images
> I expect on Mythweb, however I would like to see if I can understand what
> is going wrong as this may indicate something else is wrong.
>
> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS

Interesting. I don't have an image_cache directory anywhere on my 16.04 or
18.04 boxes. apache2 is my web server.

I'd expect the mythweb icons to be located in .../mythweb/data/tv_icons
and that directory is writable by the user/group running the web server.
Mine looks like:

$ ls -ld /var/www/mythweb/data/tv_icons/
drwxrwxr-x 2 mythtv www-data 4096 Aug 11 08:04 /var/www/mythweb/data/tv_icons/

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
On 9/20/2018 5:36 AM, Edmund Na wrote:
>
> The routine which copies Channel Icon images from Myth to Mythweb
> isn’t working correctly.
>
> At all times when I view Channel Icons on a frontend or in
> mythtv-setup I see what I expect, but recently a couple of images were
> updated and then they didn’t display on Mythweb – they showed as
> missing/corrupted image rather than no image.
>
> The icons are stored in /home/mythtv/.mythtv/channels/ and have user
> and group permission mythtv, but they are readable by all.
>
> Mythweb seems to access the images from /var/cache/mythweb/image_cache
> and most images here are correct. I understand that when a new icon is
> added or used something copies it to the image_cache folder. In my
> case that process is producing corrupted images; each is 44Bytes. It
> is an empty xml file. This is the same for PNG and jpg.
>
> If I manually copy the icons from channels to image_cache I see the
> images I expect on Mythweb, however I would like to see if I can
> understand what is going wrong as this may indicate something else is
> wrong.
>
> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
I have observed the same thing, but for only one channel icon (always
the same one).  I even did a find on my machine to see where they were
stored (besides ~/.mythtv/channels/) and removed them from the cache
directories (/var/cache/mythweb/image_cache/,
~/.mythtv/cache/themecache/Arclight.1920.1080/).  Still, that one
channel icon does not work in mythweb, but works fine on the frontend.
Jay
Re: Mythweb Channel Icon problem [ In reply to ]
On Thu, 20 Sep 2018 at 15:01, Bill Meek <keemllib@gmail.com> wrote:

> On 09/20/2018 07:36 AM, Edmund Na wrote:
> > The routine which copies Channel Icon images from Myth to Mythweb isn’t
> > working correctly.
> >
> > At all times when I view Channel Icons on a frontend or in mythtv-setup I
> > see what I expect, but recently a couple of images were updated and then
> > they didn’t display on Mythweb – they showed as missing/corrupted image
> > rather than no image.
> >
> > The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
> > group permission mythtv, but they are readable by all.
> >
> > Mythweb seems to access the images from /var/cache/mythweb/image_cache
> and
> > most images here are correct. I understand that when a new icon is added
> or
> > used something copies it to the image_cache folder. In my case that
> process
> > is producing corrupted images; each is 44Bytes. It is an empty xml file.
> > This is the same for PNG and jpg.
> >
> > If I manually copy the icons from channels to image_cache I see the
> images
> > I expect on Mythweb, however I would like to see if I can understand what
> > is going wrong as this may indicate something else is wrong.
> >
> > I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>
> Interesting. I don't have an image_cache directory anywhere on my 16.04 or
> 18.04 boxes. apache2 is my web server.
>
> I'd expect the mythweb icons to be located in .../mythweb/data/tv_icons
> and that directory is writable by the user/group running the web server.
> Mine looks like:
>
> $ ls -ld /var/www/mythweb/data/tv_icons/
> drwxrwxr-x 2 mythtv www-data 4096 Aug 11 08:04
> /var/www/mythweb/data/tv_icons/
>

I'm not using a front-end, but I put my channel images in:

# ls -la /var/lib/mythtv/.mythtv/channels/
total 116
drwxr-xr-x 2 mythtv mythtv 4096 Jun 17 14:33 .
drwxr-xr-x 8 mythtv mythtv 4096 Jun 25 15:40 ..
-rw-r--r-- 1 root root 5152 Jun 17 14:26 101.png
-rw-r--r-- 1 root root 4659 Jun 17 14:26 102.png
-rw-r--r-- 1 root root 4647 Jun 17 14:27 103.png
-rw-r--r-- 1 root root 2279 Jun 17 14:27 104.png
-rw-r--r-- 1 root root 4694 Jun 17 14:28 105.png
-rw-r--r-- 1 root root 6104 Jun 17 14:28 111.png
-rw-r--r-- 1 root root 3139 Jun 17 14:29 116.png
-rw-r--r-- 1 root root 3035 Jun 17 14:29 118.png
-rw-r--r-- 1 root root 3138 Jun 17 14:29 119.png
-rw-r--r-- 1 root root 2948 Jun 17 14:30 120.png
-rw-r--r-- 1 root root 3524 Jun 17 14:30 128.png
-rw-r--r-- 1 root root 3071 Jun 17 14:31 131.png
-rw-r--r-- 1 root root 3964 Jun 17 14:31 136.png
-rw-r--r-- 1 root root 3846 Jun 17 14:31 137.png
-rw-r--r-- 1 root root 4558 Jun 17 14:32 150.png
-rw-r--r-- 1 root root 3923 Jun 17 14:33 159.png
-rw-r--r-- 1 root root 2590 Jun 17 14:32 211.png
-rw-r--r-- 1 root root 5042 Jun 17 14:32 503.png
-rw-r--r-- 1 root root 4952 Jun 17 14:32 504.png

by hand. These are then copied into:

# ls -la /var/lib/mythtv/mythweb/data/tv_icons/
total 116
drwxr-xr-x 2 www-data www-data 4096 Jun 17 14:33 .
drwxr-xr-x 3 www-data www-data 4096 Jun 17 14:19 ..
-rw-r--r-- 1 www-data www-data 5152 Jun 17 14:32 101.png
-rw-r--r-- 1 www-data www-data 4659 Jun 17 14:32 102.png
-rw-r--r-- 1 www-data www-data 4647 Jun 17 14:32 103.png
-rw-r--r-- 1 www-data www-data 2279 Jun 17 14:32 104.png
-rw-r--r-- 1 www-data www-data 4694 Jun 17 14:32 105.png
-rw-r--r-- 1 www-data www-data 6104 Jun 17 14:32 111.png
-rw-r--r-- 1 www-data www-data 3139 Jun 17 14:32 116.png
-rw-r--r-- 1 www-data www-data 3035 Jun 17 14:32 118.png
-rw-r--r-- 1 www-data www-data 3138 Jun 17 14:32 119.png
-rw-r--r-- 1 www-data www-data 2948 Jun 17 14:32 120.png
-rw-r--r-- 1 www-data www-data 3524 Jun 17 14:32 128.png
-rw-r--r-- 1 www-data www-data 3071 Jun 17 14:32 131.png
-rw-r--r-- 1 www-data www-data 3964 Jun 17 14:32 136.png
-rw-r--r-- 1 www-data www-data 3846 Jun 17 14:32 137.png
-rw-r--r-- 1 www-data www-data 4558 Jun 17 14:32 150.png
-rw-r--r-- 1 www-data www-data 3923 Jun 17 14:33 159.png
-rw-r--r-- 1 www-data www-data 2590 Jun 17 14:32 211.png
-rw-r--r-- 1 www-data www-data 5042 Jun 17 14:33 503.png
-rw-r--r-- 1 www-data www-data 4952 Jun 17 14:33 504.png

after accessing MythWeb.

I have a /var/cache/mythweb/image_cache/ directory, but it's empty.

I'm using the Debian packaged 0.28.2-dmo1+deb9u1 from deb-multimedia.

Ian
Re: Mythweb Channel Icon problem [ In reply to ]
On 09/20/2018 10:20 AM, Jay Foster wrote:
> On 9/20/2018 5:36 AM, Edmund Na wrote:
>>
>> The routine which copies Channel Icon images from Myth to Mythweb isn’t working correctly.
>>
>> At all times when I view Channel Icons on a frontend or in mythtv-setup I see what I expect, but recently a couple of images were updated and
>> then they didn’t display on Mythweb – they showed as missing/corrupted image rather than no image.
>>
>> The icons are stored in /home/mythtv/.mythtv/channels/ and have user and group permission mythtv, but they are readable by all.
>>
>> Mythweb seems to access the images from /var/cache/mythweb/image_cache and most images here are correct. I understand that when a new icon is
>> added or used something copies it to the image_cache folder. In my case that process is producing corrupted images; each is 44Bytes. It is an
>> empty xml file. This is the same for PNG and jpg.
>>
>> If I manually copy the icons from channels to image_cache I see the images I expect on Mythweb, however I would like to see if I can
>> understand what is going wrong as this may indicate something else is wrong.
>>
>> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>>
> I have observed the same thing, but for only one channel icon (always the same one).  I even did a find on my machine to see where they were
> stored (besides ~/.mythtv/channels/) and removed them from the cache directories (/var/cache/mythweb/image_cache/,
> ~/.mythtv/cache/themecache/Arclight.1920.1080/).  Still, that one channel icon does not work in mythweb, but works fine on the frontend.
> Jay

Hi,

The string 'image_cache' doesn't exist in the mythweb source (or even
in the mythtv source.)

Could this be defined in a web server setting? Or, is it a link from
<someDirectory>/mythweb/data/tv_icons?

Try: locate -b '\tv_icons' and ls -ld on the response.

If the mythweb icon doesn't exist under tv_icons, then the Services
API is used to get it from the channels directory mentioned earlier.

WebFrontend does the same. Try: http://yourBackend:6544//Guide/GetChannelIcon?ChanId=someChannelID
It would be interesting if the same icons don't display in WebFrontend.

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
On 9/20/2018 9:02 AM, Bill Meek wrote:
> On 09/20/2018 10:20 AM, Jay Foster wrote:
>> On 9/20/2018 5:36 AM, Edmund Na wrote:
>>>
>>> The routine which copies Channel Icon images from Myth to Mythweb
>>> isn’t working correctly.
>>>
>>> At all times when I view Channel Icons on a frontend or in
>>> mythtv-setup I see what I expect, but recently a couple of images
>>> were updated and then they didn’t display on Mythweb – they showed
>>> as missing/corrupted image rather than no image.
>>>
>>> The icons are stored in /home/mythtv/.mythtv/channels/ and have user
>>> and group permission mythtv, but they are readable by all.
>>>
>>> Mythweb seems to access the images from
>>> /var/cache/mythweb/image_cache and most images here are correct. I
>>> understand that when a new icon is added or used something copies it
>>> to the image_cache folder. In my case that process is producing
>>> corrupted images; each is 44Bytes. It is an empty xml file. This is
>>> the same for PNG and jpg.
>>>
>>> If I manually copy the icons from channels to image_cache I see the
>>> images I expect on Mythweb, however I would like to see if I can
>>> understand what is going wrong as this may indicate something else
>>> is wrong.
>>>
>>> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>>>
>> I have observed the same thing, but for only one channel icon (always
>> the same one).  I even did a find on my machine to see where they
>> were stored (besides ~/.mythtv/channels/) and removed them from the
>> cache directories (/var/cache/mythweb/image_cache/,
>> ~/.mythtv/cache/themecache/Arclight.1920.1080/).  Still, that one
>> channel icon does not work in mythweb, but works fine on the frontend.
>> Jay
>
> Hi,
>
> The string 'image_cache' doesn't exist in the mythweb source (or even
> in the mythtv source.)
>
> Could this be defined in a web server setting? Or, is it a link from
> <someDirectory>/mythweb/data/tv_icons?
>
> Try: locate -b '\tv_icons' and ls -ld on the response.
>
> If the mythweb icon doesn't exist under tv_icons, then the Services
> API is used to get it from the channels directory mentioned earlier.
>
> WebFrontend does the same. Try:
> http://yourBackend:6544//Guide/GetChannelIcon?ChanId=someChannelID
> It would be interesting if the same icons don't display in WebFrontend.
>
jay@mythbox:~$ locate -b '\tv_icons'
/usr/share/mythtv/mythweb/data/tv_icons
jay@mythbox:~$ ls -ld /usr/share/mythtv/mythweb/data/tv_icons
lrwxrwxrwx 1 root root 30 Oct  4  2014
/usr/share/mythtv/mythweb/data/tv_icons -> /var/cache/mythweb/image_cache
jay@mythbox:~$

The problem TV icon DOES appear in that directory, but does not display
correctly in mythweb.
Jay
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
> On Sep 20, 2018, at 12:12 PM, Jay Foster <jayf0ster@roadrunner.com> wrote:
>
> On 9/20/2018 9:02 AM, Bill Meek wrote:
>> On 09/20/2018 10:20 AM, Jay Foster wrote:
>>> On 9/20/2018 5:36 AM, Edmund Na wrote:
>>>>
>>>> The routine which copies Channel Icon images from Myth to Mythweb isn’t working correctly.
>>>>
>>>> At all times when I view Channel Icons on a frontend or in mythtv-setup I see what I expect, but recently a couple of images were updated and then they didn’t display on Mythweb – they showed as missing/corrupted image rather than no image.
>>>>
>>>> The icons are stored in /home/mythtv/.mythtv/channels/ and have user and group permission mythtv, but they are readable by all.
>>>>
>>>> Mythweb seems to access the images from /var/cache/mythweb/image_cache and most images here are correct. I understand that when a new icon is added or used something copies it to the image_cache folder. In my case that process is producing corrupted images; each is 44Bytes. It is an empty xml file. This is the same for PNG and jpg.
>>>>
>>>> If I manually copy the icons from channels to image_cache I see the images I expect on Mythweb, however I would like to see if I can understand what is going wrong as this may indicate something else is wrong.
>>>>
>>>> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>>>>
>>> I have observed the same thing, but for only one channel icon (always the same one). I even did a find on my machine to see where they were stored (besides ~/.mythtv/channels/) and removed them from the cache directories (/var/cache/mythweb/image_cache/, ~/.mythtv/cache/themecache/Arclight.1920.1080/). Still, that one channel icon does not work in mythweb, but works fine on the frontend.
>>> Jay
>>
>>

I have the same problem currently on my myth tv, and I fixed it by copying the channel icon from the .mythv/channels directory to the myth web/data/tv_icon directory to fix it.

NOTE that there was a icon file with the same name as the png file, but was only 47 bytes and had in it a portion of an html header in it as indicated above

The icon file that I copied over was about 4k bytes and does display correctly.
Re: Mythweb Channel Icon problem [ In reply to ]
On 9/20/2018 9:12 AM, Jay Foster wrote:
> On 9/20/2018 9:02 AM, Bill Meek wrote:
>> On 09/20/2018 10:20 AM, Jay Foster wrote:
>>> On 9/20/2018 5:36 AM, Edmund Na wrote:
>>>>
>>>> The routine which copies Channel Icon images from Myth to Mythweb
>>>> isn’t working correctly.
>>>>
>>>> At all times when I view Channel Icons on a frontend or in
>>>> mythtv-setup I see what I expect, but recently a couple of images
>>>> were updated and then they didn’t display on Mythweb – they showed
>>>> as missing/corrupted image rather than no image.
>>>>
>>>> The icons are stored in /home/mythtv/.mythtv/channels/ and have
>>>> user and group permission mythtv, but they are readable by all.
>>>>
>>>> Mythweb seems to access the images from
>>>> /var/cache/mythweb/image_cache and most images here are correct. I
>>>> understand that when a new icon is added or used something copies
>>>> it to the image_cache folder. In my case that process is producing
>>>> corrupted images; each is 44Bytes. It is an empty xml file. This is
>>>> the same for PNG and jpg.
>>>>
>>>> If I manually copy the icons from channels to image_cache I see the
>>>> images I expect on Mythweb, however I would like to see if I can
>>>> understand what is going wrong as this may indicate something else
>>>> is wrong.
>>>>
>>>> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>>>>
>>> I have observed the same thing, but for only one channel icon
>>> (always the same one).  I even did a find on my machine to see where
>>> they were stored (besides ~/.mythtv/channels/) and removed them from
>>> the cache directories (/var/cache/mythweb/image_cache/,
>>> ~/.mythtv/cache/themecache/Arclight.1920.1080/).  Still, that one
>>> channel icon does not work in mythweb, but works fine on the frontend.
>>> Jay
>>
>> Hi,
>>
>> The string 'image_cache' doesn't exist in the mythweb source (or even
>> in the mythtv source.)
>>
>> Could this be defined in a web server setting? Or, is it a link from
>> <someDirectory>/mythweb/data/tv_icons?
>>
>> Try: locate -b '\tv_icons' and ls -ld on the response.
>>
>> If the mythweb icon doesn't exist under tv_icons, then the Services
>> API is used to get it from the channels directory mentioned earlier.
>>
>> WebFrontend does the same. Try:
>> http://yourBackend:6544//Guide/GetChannelIcon?ChanId=someChannelID
>> It would be interesting if the same icons don't display in WebFrontend.
>>
> jay@mythbox:~$ locate -b '\tv_icons'
> /usr/share/mythtv/mythweb/data/tv_icons
> jay@mythbox:~$ ls -ld /usr/share/mythtv/mythweb/data/tv_icons
> lrwxrwxrwx 1 root root 30 Oct  4  2014
> /usr/share/mythtv/mythweb/data/tv_icons -> /var/cache/mythweb/image_cache
> jay@mythbox:~$
>
> The problem TV icon DOES appear in that directory, but does not
> display correctly in mythweb.
> Jay
I just checked again, and now that one channel icon IS displaying
correctly in mythweb (yeah).  Something (apache2?) must have gotten
restarted after I tried fixing the files that now makes it work.
Jay
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
On Thu, Sep 20, 2018 at 12:37 PM Edmund Na <myth.uk.2008@gmail.com> wrote:

> The routine which copies Channel Icon images from Myth to Mythweb isn’t working correctly.

Review the wiki at: https://www.mythtv.org/wiki/Channel_icons

Things have changed over the years, especially with
storage groups, and some approaches and configurations
have changed over the years, along with the results
with the legacy MythWeb support, which is slowly,
but surely, finding new ways to not work (well) with
improvements to the protections in the OS to prevent
exploitation (selinux), and upgrades to the underlying
technologies (php).
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
Thanks for you your replies. I am running apache2. As far as I can remember
almost everything (apart from the TV card driver) is installed using
apt-get install. However I have been using myth since 0.21 and Ubuntu 8.04
LTS, and until recently 0.25 on 12.04 LTS. I normally do an upgrade, then
copy the config files and then do a fresh install, but is possible a few
sim links or something got messed up on the way.
This has been a problem for me on just one channel - BBC2 (I am in the UK),
I think that recently I switched from a regional variation to a national
variant or vice-versa. However, I have replicated this issue for any new
channel icon that doesn't currently have an image in the image cache folder.
I do have a folder /mythweb/data/tv_icons, but it is a link to the
image_cache I mentioned above. Maybe next month I will wipe everything
again and reinstall. (Except everything else is running better than ever at
the moment so maybe I won't.)

Bil, myMythServer:6544 - WOW!, I haven't seen that before. All images work,
but then all images are working as I manually inserted an image into the
mythweb folder. The link you suggested didn't work, but some pages need a
password (no idea what that is) so that might be the problem. I can't see
any links when I hover.

Yes Jay, I thank that summarises my problem, except that it is not an image
- and is only 44 Bytes. So the daemon is running as a file appears, write
permissions must be okay as something is written, the folder images are
coming from is readable by anyone, and these display in mythfrontend and
mythbackend-setup. I have tried both png and jpg and neither work.
Gary thanks for the link, but I have had no problems with mythtv-setup, nor
mythfrontend, my problem is with mythweb, which seems to use a different
folder.

On Thu, Sep 20, 2018 at 1:36 PM Edmund Na <myth.uk.2008@gmail.com> wrote:

> The routine which copies Channel Icon images from Myth to Mythweb isn’t
> working correctly.
>
> At all times when I view Channel Icons on a frontend or in mythtv-setup I
> see what I expect, but recently a couple of images were updated and then
> they didn’t display on Mythweb – they showed as missing/corrupted image
> rather than no image.
>
> The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
> group permission mythtv, but they are readable by all.
>
> Mythweb seems to access the images from /var/cache/mythweb/image_cache and
> most images here are correct. I understand that when a new icon is added or
> used something copies it to the image_cache folder. In my case that process
> is producing corrupted images; each is 44Bytes. It is an empty xml file.
> This is the same for PNG and jpg.
>
> If I manually copy the icons from channels to image_cache I see the images
> I expect on Mythweb, however I would like to see if I can understand what
> is going wrong as this may indicate something else is wrong.
>
> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>
Re: Mythweb Channel Icon problem [ In reply to ]
On 20/09/18 13:36, Edmund Na wrote:
> The routine which copies Channel Icon images from Myth to Mythweb isn’t
> working correctly.
>
> At all times when I view Channel Icons on a frontend or in mythtv-setup
> I see what I expect, but recently a couple of images were updated and
> then they didn’t display on Mythweb – they showed as missing/corrupted
> image rather than no image.
>
> The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
> group permission mythtv, but they are readable by all.
>
> Mythweb seems to access the images from /var/cache/mythweb/image_cache
> and most images here are correct. I understand that when a new icon is
> added or used something copies it to the image_cache folder. In my case
> that process is producing corrupted images; each is 44Bytes. It is an
> empty xml file. This is the same for PNG and jpg.
>
> If I manually copy the icons from channels to image_cache I see the
> images I expect on Mythweb, however I would like to see if I can
> understand what is going wrong as this may indicate something else is wrong.
>
> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>

I've been puzzled by this thread. I haven't seen channel icons for
several months and understood that direct downloads in mythtv-setup were
being blocked at source. I just tried it and still see no icons.
Perhaps you have a different source or are using old downloads.

See the last section of

https://www.mythtv.org/wiki/Channel_icons

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
Yes I have old icons. I also am happy to stick an icon into the folder. The
icon I needed was for a regional variation of BBC2. The icon was the same
as one from years ago. But I thought that the image file might be corrupted
and so I have put a new similar icon into the folder.

I don't like errors that I don't understand in case something else is going
wrong and in this case all I have done is fix the symptom.

On Sat, Sep 22, 2018 at 5:20 PM John Pilkington <johnpilk222@gmail.com>
wrote:

> On 20/09/18 13:36, Edmund Na wrote:
> > The routine which copies Channel Icon images from Myth to Mythweb isn’t
> > working correctly.
> >
> > At all times when I view Channel Icons on a frontend or in mythtv-setup
> > I see what I expect, but recently a couple of images were updated and
> > then they didn’t display on Mythweb – they showed as missing/corrupted
> > image rather than no image.
> >
> > The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
> > group permission mythtv, but they are readable by all.
> >
> > Mythweb seems to access the images from /var/cache/mythweb/image_cache
> > and most images here are correct. I understand that when a new icon is
> > added or used something copies it to the image_cache folder. In my case
> > that process is producing corrupted images; each is 44Bytes. It is an
> > empty xml file. This is the same for PNG and jpg.
> >
> > If I manually copy the icons from channels to image_cache I see the
> > images I expect on Mythweb, however I would like to see if I can
> > understand what is going wrong as this may indicate something else is
> wrong.
> >
> > I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
> >
>
> I've been puzzled by this thread. I haven't seen channel icons for
> several months and understood that direct downloads in mythtv-setup were
> being blocked at source. I just tried it and still see no icons.
> Perhaps you have a different source or are using old downloads.
>
> See the last section of
>
> https://www.mythtv.org/wiki/Channel_icons
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: Mythweb Channel Icon problem [ In reply to ]
On 09/22/2018 09:19 AM, John Pilkington wrote:
> On 20/09/18 13:36, Edmund Na wrote:
>> The routine which copies Channel Icon images from Myth to Mythweb
>> isn’t working correctly.
>>
>> At all times when I view Channel Icons on a frontend or in
>> mythtv-setup I see what I expect, but recently a couple of images
>> were updated and then they didn’t display on Mythweb – they showed as
>> missing/corrupted image rather than no image.
>>
>> The icons are stored in /home/mythtv/.mythtv/channels/ and have user
>> and group permission mythtv, but they are readable by all.
>>
>> Mythweb seems to access the images from
>> /var/cache/mythweb/image_cache and most images here are correct. I
>> understand that when a new icon is added or used something copies it
>> to the image_cache folder. In my case that process is producing
>> corrupted images; each is 44Bytes. It is an empty xml file. This is
>> the same for PNG and jpg.
>>
>> If I manually copy the icons from channels to image_cache I see the
>> images I expect on Mythweb, however I would like to see if I can
>> understand what is going wrong as this may indicate something else is
>> wrong.
>>
>> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>>
>
> I've been puzzled by this thread.  I haven't seen channel icons for
> several months and understood that direct downloads in mythtv-setup
> were being blocked at source.  I just tried it and still see no icons.
> Perhaps you have a different source or are using old downloads.
>
> See the last section of
>
> https://www.mythtv.org/wiki/Channel_icons
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

For me, the auto icon download has never worked (started with 0.21, now
on 0.28), so I have always manually searched for the channel icon and
manually download it (to ~/.mythtv/channels), and manually configure it
in mythtv-backend-setup -> channel editor.

Jay

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythweb Channel Icon problem [ In reply to ]
On 09/22/2018 12:19 PM, John Pilkington wrote:
> On 20/09/18 13:36, Edmund Na wrote:
>> The routine which copies Channel Icon images from Myth to Mythweb
>> isn’t working correctly.
>>
>> At all times when I view Channel Icons on a frontend or in
>> mythtv-setup I see what I expect, but recently a couple of images
>> were updated and then they didn’t display on Mythweb – they showed as
>> missing/corrupted image rather than no image.
>>
>> The icons are stored in /home/mythtv/.mythtv/channels/ and have user
>> and group permission mythtv, but they are readable by all.
>>
>> Mythweb seems to access the images from
>> /var/cache/mythweb/image_cache and most images here are correct. I
>> understand that when a new icon is added or used something copies it
>> to the image_cache folder. In my case that process is producing
>> corrupted images; each is 44Bytes. It is an empty xml file. This is
>> the same for PNG and jpg.
>>
>> If I manually copy the icons from channels to image_cache I see the
>> images I expect on Mythweb, however I would like to see if I can
>> understand what is going wrong as this may indicate something else is
>> wrong.
>>
>> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>>
>
> I've been puzzled by this thread.  I haven't seen channel icons for
> several months and understood that direct downloads in mythtv-setup
> were being blocked at source.  I just tried it and still see no icons.
> Perhaps you have a different source or are using old downloads.
>
> See the last section of
>
> https://www.mythtv.org/wiki/Channel_icons
>

If you use Schedules Direct json xmltv  (
https://www.mythtv.org/wiki/XMLTV#Schedules_Direct_Setup ) you
automatically get icons for all of your channels.

Peter
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org