plugin.video.sendtokodi
plugin.video.sendtokodi copied to clipboard
Plugin shouldn't use deprecated ListItem.setInfo()
Description of the bug
When playing video streams with SendToKodi on Kodi 20.x, the log will produce messages like this:
2023-06-27 23:38:24.826 T:7264 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
Steps to reproduce
Play any Youtube or other video via sharing with SendToKodi.
Expected behavior
No warning is produced
Version and plattform:
- Kodi: 20.1.0
- Addon: 0.9.493
- Plattform: Debian bookworm on a generic PC
Kodi log
2023-06-27 23:48:19.052 T:8114 info <general>: plugin.video.sendtokodi: found original manifest: https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1687924098/ei/IlmbZL-3E5Cn6dsPye29yA8/ip/2001%3A4060%3Accc%3A1%3A82ee%3A73ff%3Afe98%3A5800/id/750c38c3d5a05dc4/source/youtube/requiressl/yes/playback_host/rr2---sn-ph2gvf5gx-haie.googlevideo.com/mh/7c/mm/31%2C29/mn/sn-ph2gvf5gx-haie%2Csn-1gi7znek/ms/au%2Crdu/mv/m/mvi/2/pcm2cms/yes/pl/37/tx/24691746/txs/24691743%2C24691744%2C24691745%2C24691746/hfr/1/demuxed/1/tts_caps/1/maudio/1/initcwndbps/2303750/bui/AZ6lgGEgS6w7BfQoZA_biSXkhxX3fhG8RNyy3Vt-ZMCaGKZDWqDkvluJT9GO9CoGLSDjnPgEa_4Opi-Qd3BRnMWQjoz2CxEf/vprv/1/go/1/mt/1687902063/fvip/5/nvgoi/1/short_key/1/ncsapi/1/keepalive/yes/fexp/24007246/beids/24350018/dover/13/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Ctx%2Ctxs%2Chfr%2Cdemuxed%2Ctts_caps%2Cmaudio%2Cbui%2Cvprv%2Cgo%2Citag%2Cplaylist_type/sig/AOq0QJ8wRgIhAJYci73uY0WYQQVzIgjSHDwTPXR2FlGrHGVGAY6-wFi6AiEA406LjnfrqqTjEEIHwAxyku_r7BR7GyALHQ1GuopQON4%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgHgaY2Vr7Sh0zZKGIU23mHPKUSDay_5kmq5AMhuQgkywCIQDdPO63_m7ATJMj7lEmU3HRfvNGgQTu5JpW5u2vxGXHXg%3D%3D/file/index.m3u8
2023-06-27 23:48:19.057 T:8114 info <general>: plugin.video.sendtokodi: creating list item for url https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1687924098/ei/IlmbZL-3E5Cn6dsPye29yA8/ip/2001%3A4060%3Accc%3A1%3A82ee%3A73ff%3Afe98%3A5800/id/750c38c3d5a05dc4/source/youtube/requiressl/yes/playback_host/rr2---sn-ph2gvf5gx-haie.googlevideo.com/mh/7c/mm/31%2C29/mn/sn-ph2gvf5gx-haie%2Csn-1gi7znek/ms/au%2Crdu/mv/m/mvi/2/pcm2cms/yes/pl/37/tx/24691746/txs/24691743%2C24691744%2C24691745%2C24691746/hfr/1/demuxed/1/tts_caps/1/maudio/1/initcwndbps/2303750/bui/AZ6lgGEgS6w7BfQoZA_biSXkhxX3fhG8RNyy3Vt-ZMCaGKZDWqDkvluJT9GO9CoGLSDjnPgEa_4Opi-Qd3BRnMWQjoz2CxEf/vprv/1/go/1/mt/1687902063/fvip/5/nvgoi/1/short_key/1/ncsapi/1/keepalive/yes/fexp/24007246/beids/24350018/dover/13/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Ctx%2Ctxs%2Chfr%2Cdemuxed%2Ctts_caps%2Cmaudio%2Cbui%2Cvprv%2Cgo%2Citag%2Cplaylist_type/sig/AOq0QJ8wRgIhAJYci73uY0WYQQVzIgjSHDwTPXR2FlGrHGVGAY6-wFi6AiEA406LjnfrqqTjEEIHwAxyku_r7BR7GyALHQ1GuopQON4%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgHgaY2Vr7Sh0zZKGIU23mHPKUSDay_5kmq5AMhuQgkywCIQDdPO63_m7ATJMj7lEmU3HRfvNGgQTu5JpW5u2vxGXHXg%3D%3D/file/index.m3u8
2023-06-27 23:48:19.063 T:8114 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
In case a certain website does not work for you
Screenshots
Additional context
This issue should be fixed before the deprecated method is completely removed.