Deprecated Extras Addon (Kodi 18/19 and on)
#64
(2021-03-23, 05:36)A600 Wrote: This is what I do (plus removing the extensions and unquoting the name for webdav sources)
Code:
    for name in files:
        if name.lower().endswith(('.avi', '.mkv', '.mp4', '.ogm')):
            li = ListItem(unquote_plus(name).rsplit('.', 1)[0])
        else:
            name = ''
I appreciate the suggestion, but that covers only a small portion of the video types that Kodi can play, and that's the reason this isn't simple.  If the add-on is going to start excluding things, I need to make sure it both doesn't exclude something Kodi could play and stays up to date (without having to manually adding another extension to the list) as things change. So this solution "works"  for the people who will only ever have one of those four types of video files, but might not work for a very large group of other people.
Reply


Messages In This Thread
Extras Addon (Kodi 18/19 and on) - by pkscout - 2020-08-28, 23:53
RE: Extras Addon (Kodi 18/19 and on) - by pkscout - 2021-03-23, 08:24
Logout Mark Read Team Forum Stats Members Help
Extras Addon (Kodi 18/19 and on)0