willforde / script.module.codequick

Kodi addon framework
GNU General Public License v2.0
33 stars 6 forks source link

[enhancement] A way to disable "Sets fanart to add-on fanart image if not set" feature #24

Closed sy6sy2 closed 5 years ago

sy6sy2 commented 5 years ago

Hi willforde,

CodeQuick has the features:

Are you able to modify slightly you framework in order to force CodeQuick to not set an element to the plugin one if the element in not set?

Something like:

item = Listitem()

# I do not want to have my addon icon here
# Just do not set "thumb" for this item
item.art["thumb"] = "disable"

Here, the "magic" keyword disable act as a "kill switch".

Thank you very munch!

@wwark: In the case of M6 Live TV from M3U, with this modification we would be able to have in the "media information" (keyboard "i" key) the logo from the M3U/XMLTV file instead of the Catch Up TV & More logo.

willforde commented 5 years ago

Yeah I can make changes to allow for that, something like item.art["thumb"] = None or del item.art["thumb"]

sy6sy2 commented 5 years ago

Yes the item.art["thumb"] = None should be perfect! Thank you!

willforde commented 5 years ago

Done. Feel free to let me know if you have any more suggestions.

Thanks.

willforde commented 5 years ago

After doing some testing, I had to change it to accept an empty string in order to disable the automatic setting. item.art["thumb"] = ""

sy6sy2 commented 5 years ago

Do you know what is the key to modify this one? We are in a Live TV here.

Capture d’écran 2019-04-06 à 08 40 34

Thank you!

willforde commented 5 years ago

I'm not sure about that one. I can't test it as I have not seen that issue on my side.

sy6sy2 commented 5 years ago

No problem, we will try to find the correct key for this one.