Beta TVLogo Downloader - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151) +---- Thread: Beta TVLogo Downloader (/showthread.php?tid=233068) |
TVLogo Downloader - enen92 - 2015-07-24 What is it? TVLogo Downloader is a Kodi program addon (+ context menu addon) to help you find, download and set logos for your TV or Radio stations. It uses www.thelogodb.com as the source for logos. Features
How does it work TVLogo Downloader automatically sets the channel icons folder to the same folder the user defines in the addon settings. It tries to match each channel with the channels (that have logos) on the database. If a match is found, the logo is downloaded and the pvr is "refreshed" so the logos can be shown. In Kodi 16+ this is achieved by triggering `PVR.SearchMissingChannelIcons`. In Kodi versions lower than v16, the pvr manager is restarted. To improve the precision of the match the addon checks also if the channel is HD and a logo for the corresponding non-HD channel exists on the database and it checks also for the name of the channel after removing ascii characters. You can define a minimum similarity ratio to assume the channels match. Be aware that using low values for this ratio can cause certain channels to have a bad match, specially those that only differ on a single letter or number. You can also define a set of words to be ignored/replaced from your channel names when performing queries to the database. Showcase Download script.tvlogo.downloader: https://github.com/enen92/script.tvlogo.downloader/releases/tag/0.0.11beta context.tvlogo.downloader: https://github.com/enen92/context.tvlogo.downloader/releases/tag/0.0.5-beta License GNU GENERAL PUBLIC LICENSE. Version 2, June 1991 Acknowledgments To Zag for the wonderful work on thelogodb.com and continuous support. To xhaggi for the help on the pull request. Donate Thelogodb has costs. To assure the future of the site please donate to thelogodb.com: RE: TVLogo Downloader - enen92 - 2015-07-24 Please help by reporting bugs or sending pull requests. Please attach a debug log in case of a script error. RE: TVLogo Downloader - Lunatixz - 2015-07-24 Great work! RE: TVLogo Downloader - jamesp26 - 2015-07-24 Wow - can't wait to try this later. Looks like great work. RE: TVLogo Downloader - Frozin - 2015-07-25 amazeballs!! RE: TVLogo Downloader - Leo2807 - 2015-07-25 Perfect thank you. Unfortunately no logos for my region per Thelogodb TVLogo Downloader - iRubin - 2015-07-25 For my region too... [DISAPPOINTED FACE] RE: TVLogo Downloader - bry - 2015-07-25 @Leo2807 and @iRubin you know that you can add them yourself to the dB. Fyi RE: TVLogo Downloader - enen92 - 2015-07-25 Upload them RE: TVLogo Downloader - enen92 - 2015-07-26 New version here with some reported bugs fixed: https://github.com/enen92/script.tvlogo.downloader/releases/download/0.0.6-beta/script.tvlogo.downloader-0.0.6.zip RE: TVLogo Downloader - enen92 - 2015-07-30 New beta version here (0.0.11) which adds new features and fixes some reported bugs: https://github.com/enen92/script.tvlogo.downloader/releases/tag/0.0.11beta -Resize option using python pil (this is usefull if you don't have a powerfull device such as the raspbery pi 1. You can now resize the logos on a specific % just after downloading them). -Support for formatted labels (colours, italic, bold) - Please read below -Test HD version if HQ on the channel label -Regular expression substitution -Bug fixes Some people apparently like to have colours and other formatting stuff on their channel labels. To make that kind of labels to work when querying the database, the plain-text label should be passed to the database. This means that if you have a bold yellow label, the label kodi stores is: Code: [B][COLOR yellow]ITV[/COLOR][/B] For the addon to match the channel on the database, we just need to pass "itv" to thelogodb. So, to accomplish this there is an option on the addon settings to automatically replace any string or regular expression from the channel label before querying the db. Those strings are separated by commas (,). This means that, for the example above to work, you need to add the following string to the addon settings: Code: [COLOR (.+?)],[/COLOR],[B],[/B] Then the resulting label after replacement will be correctly detected. Note the code is now pretty stable and, if no issues are reported, I'll just apply the translations and send it over to the official repository. You'll have still a few days to test and report bugs. Once the addon is submitted don't count with too many regular updates or bug fixes. So, your fault not mine. Also for anyone interested in the way this addon (and kodi itself works for logos) I just made some improvements to that section of kodi wiki: http://kodi.wiki/view/Settings/Live_TV#Menu.2FOSD Cheers RE: TVLogo Downloader - Hustler1337 - 2015-08-04 Hi enen92, I'm glad someone has taken the initiative to develop an addon for logo downloads and set up a website, much appreciated . I've downloaded 0.0.11 beta of the script and selected 'Automatic (only user channels without logos)'. After a brief hang, I get an error. Here's the log: PHP Code: 15:51:34 T:1776878640 NOTICE: -->Python Interpreter Initialized<-- I already have channel logos on my device, but I wanted the script to find the channels that have missing logos and download them. The channel logos is set via Kodi's Settings> TV> Menu/OSD> Folder with channel icons and not through the PVR client I am using. Running: Kodi 15 on Amazon Fire TV (Android ARM). Hope that helps EDIT: Also, I've noticed that the "Download logo" option appears twice in the context menu (both are working however). RE: TVLogo Downloader - enen92 - 2015-08-04 Yeah, I noticed the bug yesterday on my raspberry pi, it looks like some module is different in arm (maybe os module giving encoding problems). I'm trying to fix it now to be honest. Can you activate the webserver on settings -> services -> webserver and open this url: Quote:http://webserver_IP:webserver_PORT/jsonrpc?request={"jsonrpc":"2.0","method":"PVR.GetChannels","params":{"channelgroupid":"alltv"},"id":2} Then pm me a pastebin of the result or just post it here. It would be nice since that way I can "inject" your channel labels into the addon and try to find out exactly what is failing Thanks for reporting, cheers PS: Replace webserver_IP and webserver_Port with the ip and port of kodi webserver RE: TVLogo Downloader - Hustler1337 - 2015-08-04 (2015-08-04, 17:09)enen92 Wrote: Yeah, I noticed the bug yesterday on my raspberry pi, it looks like some module is different in arm (maybe os module giving encoding problems). I'm trying to fix it now to be honest. Can you activate the webserver on settings -> services -> webserver and open this url: Sure, stay put, I'll post the results in a moment. Bear with me... EDIT: where do you want me to open the URL, can I open the url on my PC? And I'm guessing the webserver IP is the IP of my Fire TV? Thanks. EDIT 2: Don't worry, here's the results: http://pastebin.com/eu9hfXWj RE: TVLogo Downloader - enen92 - 2015-08-04 That's great thanks. After I trace the bug in my PI I'll try to run your data instead of mine (y) |