Closed michaelarnauts closed 3 years ago
Only remark is to rename it to kodiprops
as it represents a list.
Only remark is to rename it to
kodiprops
as it represents a list.
Good point. Will change this.
When using plugin://
-URI's as a stream, you will probably need to set the use the list_item.setProperty()
before you pass them to setResolvedUrl
.
I think these #KODIPROP
are only needed when using direct http:// links in the stream
-attribute of the JSON-STREAMS
.
@Lunatixz when do you use #KODIPROP
in your playlists?
It's only needed when using direct url as your stream not for resolved paths.
I think that is valid, even when our normal use case tends to be plugin:// URLs (e.g. to reauthenticate when needed, or do additional lookups) there are cases where a direct URL is sufficient.
And we always wanted JSON-STREAMS to represent a full M3U8 feature set for Kodi use.
Typically, if you're redirecting to a plugin:// path; it ought to inject kodi player properties... as you mentioned there could be a need somewhere and your m3u/xmltv feature set ought represent all parameters available.
This PR adds support to put
#KODIPROP
-lines in the generated m3u playlist. These properties can be used to give additional information to Kodi on how to play an URI. The property is optional.Example python JSON-STREAMS object:
This will generate the following m3u: