New MythTV Plasmoid

Post Reply
muh3
Newcomer
Posts: 7
Joined: Fri Oct 17, 2014 10:22 am
Germany

New MythTV Plasmoid

Post by muh3 »

Hi,

(i cleaned this post)

so, this is a MythTV Plasmoid.

Here is the git repo:
https://github.com/michi3/MythInfo

thx and have fun!
Attachments
mythtv plasmoid screenshot
mythtv plasmoid screenshot
mythtv_plasmoid.png (254.54 KiB) Viewed 3150 times
Last edited by muh3 on Fri Oct 31, 2014 11:45 am, edited 5 times in total.
muh3
Newcomer
Posts: 7
Joined: Fri Oct 17, 2014 10:22 am
Germany

Re: New MythTV Plasmoid

Post by muh3 »

check out the first post, some progress happend.

P.S.: does somebody have an idea to get the channel-icons transparent?
mythtv provides the icons as jpeg ;(
i don't want to do things like "real-time client image type conversion to png"

the qml image type doesn't have a "transparent color feature"
User avatar
dekarl
Developer
Posts: 228
Joined: Thu Feb 06, 2014 11:01 pm
Germany

Re: New MythTV Plasmoid

Post by dekarl »

Maybe someone can post a mapping of DVB/XMLTV/Atlas identifiers to third party logos, like https://github.com/3PO/Senderlogos, which have lots of channel icons from europe. Then people can integrate these list(s) into their guide services. E.g. we could batch update the mapping in our logo service.

Edit: e.g. for the channel in your screenshot
Image
muh3
Newcomer
Posts: 7
Joined: Fri Oct 17, 2014 10:22 am
Germany

Re: New MythTV Plasmoid

Post by muh3 »

this would be cool to be integrated in mythtv.

if i'm going to use an external service this has some disadvantages:
- online connection required
- someone has to take care about the mapping

P.S.: check the first post, there you can find the source now
User avatar
dekarl
Developer
Posts: 228
Joined: Thu Feb 06, 2014 11:01 pm
Germany

Re: New MythTV Plasmoid

Post by dekarl »

muh3 wrote:if i'm going to use an external service this has some disadvantages:
- online connection required
- someone has to take care about the mapping
Let me reword that. My thought was
  • Someone creates a mapping in a machine readable format and puts it on a webserver (e.g. GitHub)
  • The MythTV project imports this map into their channel icon service backend
  • the users runs a channel scan, looks up the icons and downloads them to their box
  • you request the channel icon via the Services API and get a nicer logo with transparency, even if your internet link is down
Someone will always have to do the manual mapping, there is no way around that. I prefer to do it once centrally instead of everybody doing it over and over again.
A centrally stored map connecting the various channel IDs / icons together can be shared between many projects.
muh3
Newcomer
Posts: 7
Joined: Fri Oct 17, 2014 10:22 am
Germany

Re: New MythTV Plasmoid

Post by muh3 »

dekarl wrote:
muh3 wrote:if i'm going to use an external service this has some disadvantages:
- online connection required
- someone has to take care about the mapping
Let me reword that. My thought was
  • Someone creates a mapping in a machine readable format and puts it on a webserver (e.g. GitHub)
  • The MythTV project imports this map into their channel icon service backend
  • the users runs a channel scan, looks up the icons and downloads them to their box
  • you request the channel icon via the Services API and get a nicer logo with transparency, even if your internet link is down
this is what i meant with "this would be cool to be integrated..." ;)
dekarl wrote: Someone will always have to do the manual mapping, there is no way around that. I prefer to do it once centrally instead of everybody doing it over and over again.
A centrally stored map connecting the various channel IDs / icons together can be shared between many projects.
It would really be cool if someone takes care about this icons stuff ;)
User avatar
stuartm
Developer
Posts: 129
Joined: Wed Feb 05, 2014 5:17 pm
Great Britain

Re: New MythTV Plasmoid

Post by stuartm »

muh3 wrote:P.S.: does somebody have an idea to get the channel-icons transparent?
mythtv provides the icons as jpeg ;(
I'll add an option to GetChannelIcon to return the icons in PNG format.
muh3
Newcomer
Posts: 7
Joined: Fri Oct 17, 2014 10:22 am
Germany

Re: New MythTV Plasmoid

Post by muh3 »

stuartm wrote:
muh3 wrote:P.S.: does somebody have an idea to get the channel-icons transparent?
mythtv provides the icons as jpeg ;(
I'll add an option to GetChannelIcon to return the icons in PNG format.
This would be great. Looking forward to it.
( should i write a bug report? )

check the first post...git repo is up. There you can find the latest version. I removed the version from this thread, since it was outdated. (a lot of refacrtoring happend)
User avatar
dekarl
Developer
Posts: 228
Joined: Thu Feb 06, 2014 11:01 pm
Germany

Re: New MythTV Plasmoid

Post by dekarl »

muh3 wrote:
stuartm wrote:
muh3 wrote:P.S.: does somebody have an idea to get the channel-icons transparent?
mythtv provides the icons as jpeg ;(
I'll add an option to GetChannelIcon to return the icons in PNG format.
This would be great. Looking forward to it.
I have just looked at my channel icon for that station and the white background appears to be part of the original image. So getting a picture in a different file format from the service may not have the effect that you are hoping for... The fix will help keeping existing transparency intact, but it will not add new transparency magically :-)
muh3
Newcomer
Posts: 7
Joined: Fri Oct 17, 2014 10:22 am
Germany

Re: New MythTV Plasmoid

Post by muh3 »

thats true.

i implicitly thought: providing the icons as png means, they have a correct transparency information.

So, i'm not into this mythtv icon feature. I don't know where mythtv get's the icons from.
But trancparency would also be a benefit for frontends.

EDIT: providing icons in a format which has a transparency feature is basically a good idea. To provide correct transparent icons, this step is still necessary.
Post Reply