DeutscheMark / homebridge-kodi

Kodi plugin for Homebridge
MIT License
28 stars 4 forks source link

'Title' exceeded max length of 64. #30

Closed Forbish closed 2 years ago

Forbish commented 2 years ago

Describe The Bug:

I use a Kodi plugin called 'Aerial' to provide some very nice screensaver videos courtesy of Apple. The video files used by this screensaver all have long names. When these screensaver videos are playing my Homebridge log receives an entry every 10 seconds to state that the Title is too long

To Reproduce:

Install Aerial Set as screensaver or preview Check homebridge log

Expected behavior:

Would be great if the title characteristic could fit or concatenate the value such that this error does not occur

Logs:

[4/8/2022, 11:38:16 AM] [homebridge-kodi] This plugin generated a warning from the characteristic 'Title': characteristic was supplied illegal value: string 'comp_GMT307_136NC_134K_8277_NY_NIGHT_01_v25_SDR_PS_20180907_SDR_4K_HEVC.mov' exceeded max length of 64. See https://git.io/JtMGR for more info.
[4/8/2022, 11:38:26 AM] [homebridge-kodi] This plugin generated a warning from the characteristic 'Title': characteristic was supplied illegal value: string 'comp_GMT307_136NC_134K_8277_NY_NIGHT_01_v25_SDR_PS_20180907_SDR_4K_HEVC.mov' exceeded max length of 64. See https://git.io/JtMGR for more info.
[4/8/2022, 11:38:36 AM] [homebridge-kodi] This plugin generated a warning from the characteristic 'Title': characteristic was supplied illegal value: string 'comp_GMT307_136NC_134K_8277_NY_NIGHT_01_v25_SDR_PS_20180907_SDR_4K_HEVC.mov' exceeded max length of 64. See https://git.io/JtMGR for more info.
[4/8/2022, 11:38:46 AM] [homebridge-kodi] This plugin generated a warning from the characteristic 'Title': characteristic was supplied illegal value: string 'comp_GMT307_136NC_134K_8277_NY_NIGHT_01_v25_SDR_PS_20180907_SDR_4K_HEVC.mov' exceeded max length of 64. See https://git.io/JtMGR for more info.
[4/8/2022, 11:38:56 AM] [homebridge-kodi] This plugin generated a warning from the characteristic 'Title': characteristic was supplied illegal value: string 'comp_GMT307_136NC_134K_8277_NY_NIGHT_01_v25_SDR_PS_20180907_SDR_4K_HEVC.mov' exceeded max length of 64. See https://git.io/JtMGR for more info.

Plugin Config:

{
            "platform": "Kodi",
            "name": "Kodi",
            "host": "*****",
            "port": "8080",
            "username": "*****",
            "password": "*****",
            "polling": 10,
            "retrytime": 30,
            "television": {
                "controls": {
                    "menuitems": [
                        "movies",
                        "tvshows"
                    ]
                }
            },
            "player": {
                "main": true,
                "play": true,
                "pause": true,
                "stop": true
            },
            "application": {
                "volume": true
            }
        }

Screenshots:

Logs probably suffice

Environment:

DeutscheMark commented 2 years ago

Hi Forbish,

I actually wasn't aware of that limitation. Should be fixed by cutting off too long strings after 64 characters.

Are you still seeing problems with 1.1.0-beta.2? You can install the beta using "npm install -g homebridge-kodi@beta".

Thank you DM

Forbish commented 2 years ago

Hi DM,

I can confirm that the log is no longer receiving these entries in 1.1.0-beta.2, thank you!

Regards, Forbish