Coder Social home page Coder Social logo

script.skin.helper.backgrounds's Issues

Skin.helper error, Rapier

I use the Rapier skin under CE 8.90.2 and get a "Skin Helper Error" at the Kodi start, in the log I find this:
07:18:02.027 T:3654169456 DEBUG: Previous line repeats 287 times. 07:18:02.027 T:3654169456 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeDecodeError'> Error Contents: 'utf8' codec can't decode byte 0xfc in position 35: invalid start byte Traceback (most recent call last): File "/storage/.kodi/addons/script.skin.helper.backgrounds/service.py", line 10, in <module> BackgroundsUpdater().run() File "/storage/.kodi/addons/script.skin.helper.backgrounds/resources/lib/backgrounds_updater.py", line 95, in run self.update_backgrounds() File "/storage/.kodi/addons/script.skin.helper.backgrounds/resources/lib/backgrounds_updater.py", line 394, in update_backgrounds "SkinHelper.AllMusicSongsBackground", "musicdb://songs/", label=32022) File "/storage/.kodi/addons/script.skin.helper.backgrounds/resources/lib/backgrounds_updater.py", line 276, in set_background images = self.get_images_from_vfspath(lib_path) File "/storage/.kodi/addons/script.skin.helper.backgrounds/resources/lib/backgrounds_updater.py", line 200, in get_images_from_vfspath image["thumbnail"] = get_clean_image(media["thumbnail"]) File "/storage/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 318, in get_clean_image return _get_clean_image(*args, **kwargs) File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/utils.py", line 161, in get_clean_image image = image.decode("utf8") File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 35: invalid start byte -->End of Python script error report<-- 07:18:02.028 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.029 T:4094980672 DEBUG: Previous line repeats 9 times. 07:18:02.029 T:4094980672 DEBUG: ------ Window Init (DialogNotification.xml) ------ 07:18:02.032 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.244 T:4017857392 DEBUG: Previous line repeats 134 times. 07:18:02.245 T:4017857392 DEBUG: LIRC: - NEW 6a 0 KEY_RIGHT devinput (KEY_RIGHT) 07:18:02.245 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.246 T:4094980672 DEBUG: Previous line repeats 7 times. 07:18:02.246 T:4094980672 DEBUG: HandleKey: 168 (0xa8, obc87) pressed, action is Right 07:18:02.250 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.281 T:3935286128 DEBUG: Previous line repeats 21 times. 07:18:02.282 T:3935286128 DEBUG: ffmpeg[EA8FB370]: Invalid return value 0 for stream protocol 07:18:02.283 T:4094980672 DEBUG: Previous line repeats 1 times. 07:18:02.283 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.354 T:3935286128 DEBUG: Previous line repeats 44 times. 07:18:02.354 T:3935286128 DEBUG: ffmpeg[EA8FB370]: [swscaler] No accelerated colorspace conversion found from yuv420p to bgra. 07:18:02.362 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.364 T:3654169456 DEBUG: Previous line repeats 9 times. 07:18:02.364 T:3654169456 DEBUG: Skin Helper Simplecache --> Closed 07:18:02.368 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.380 T:3935286128 DEBUG: Previous line repeats 10 times. 07:18:02.380 T:3935286128 DEBUG: DoWork - took 132 ms to load special://masterprofile/Thumbnails/2/21abdb39.jpg 07:18:02.384 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.394 T:4094980672 DEBUG: Previous line repeats 1 times. 07:18:02.394 T:4094980672 DEBUG: GLES: Extension Support Test - GL_EXT_texture_format_BGRA8888 YES 07:18:02.432 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.500 T:3654169456 DEBUG: Previous line repeats 79 times. 07:18:02.500 T:3654169456 INFO: Python script stopped 07:18:02.500 T:3654169456 DEBUG: Thread LanguageInvoker 3654169456 terminating 07:18:02.503 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.514 T:4094980672 DEBUG: Previous line repeats 9 times. 07:18:02.514 T:4094980672 DEBUG: GLES: Extension Support Test - GL_EXT_texture_format_BGRA8888 YES 07:18:02.514 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:02.514 T:4094980672 DEBUG: GLES: Extension Support Test - GL_EXT_texture_format_BGRA8888 YES 07:18:02.515 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:05.101 T:3408917360 DEBUG: Previous line repeats 1247 times. 07:18:05.101 T:3408917360 DEBUG: Skin Helper Service --> Ended Background worker... 07:18:05.112 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found. 07:18:08.431 T:4094980672 DEBUG: Previous line repeats 1594 times. 07:18:08.432 T:4094980672 DEBUG: ------ Window Deinit (DialogNotification.xml) ------ 07:18:08.438 T:4094980672 DEBUG: CSettingsManager: requested setting (videoscreen.limitedrange) was not found.

The entire log is attached
kodi.log.Amazon.zip

Delayed showing backgrounds

Hi Marcel,

I am using Skin.SetString(SkinHelper.RandomFanartDelay,30) for a background slideshow on my homescreen. It seems like the value set here also determines how long it takes for the first image to show up. I am setting the string at startup and using Window(Home).Property(SkinHelper.AllVideosBackground) in a multiimage control, and after entering the homescreen it will take 30 seconds before I see any image.

Support EmbyCon

Hi Marcel, will you be providing support for EmbyCon via the smart shortcuts feature? I looked at the code but could not work it out! I think it would be a nice addition

PIL (Python Image Library) needs update to Pillow for Python 3

As reported in Kodi forums by a set of users (mainly Android), the script.skin.helper.backgrounds crashes when trying to use PIL

           File"/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.backgrounds/resources/lib/wallimages.py", line 24, in <module>
            from PIL import Image
            ModuleNotFoundError: No module named 'PIL'

According to multiple sources on the internet:
Wikipedia: Development appears to be discontinued, with the last commit to the PIL repository coming in 2011.[2] Consequently, a successor project called Pillow has forked the PIL repository and added Python 3.x support.[4] This fork has been adopted as a replacement for the original PIL in Linux distributions including Debian[5] and Ubuntu (since 13.04).[6]

Also: https://pillow.readthedocs.io/en/stable/about.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.