Skip to content

Support smart views/playlists #1143

Open

Description

@LukePulverenti

Design a standalone c# portable class library that parse Kodi smart playlists into an object. Also provide the ability to modify the object and write it back to the original file.

Activity

  1. ShanePe commented on Jan 1, 2017

    @ShanePe

    Hi Luke, I would like to tackle this one if you still need it, it's my first open source contribution but have been developing for years.

  2. LukePulverenti commented on Jan 11, 2017

    @LukePulverenti
    MemberAuthor

    Hi @ShanePe thanks, I can help you get started. Can you refresh my memory on one thing. Where does Kodi store smart playlist definitions? Is it in the database or an nfo? Thanks.

  3. ShanePe commented on Jan 11, 2017

    @ShanePe
  4. LukePulverenti commented on Jan 11, 2017

    @LukePulverenti
    MemberAuthor

    Hi Shane. I would imagine we would adopt the same kind of approach as XmlTV. What we did there was create a standalone class library and I think that's a good way to go here. So you'd start by creating a library that can read the xsp to an object, as well as save the xsp back to a file. You can define the object inside the library. Once we have the library, then we can look at deciding how Emby Server will make use of it. You'll also want to make sure it has unit tests along with some sample files.

    The only part that's somewhat of a pain is that it needs to be a PCL targeting Win 8.1/.NET 4.5. That is really the best approach right now for dual compatibility with .NET and .NET Core.

    That means file system access won't be available, so you'll want to have the library just work with a Stream. The unit test project can then use the full .net 4.5 framework and can pass in a FileStream. Let me know if this helps. Thanks.

  5. ShanePe commented on Jan 11, 2017

    @ShanePe
  6. LukePulverenti commented on Jan 11, 2017

    @LukePulverenti
    MemberAuthor

    What you can do is create a github repository with your own account along with an MIT license, or something similar. Then we can just fork it and our repository will just be a fork of ours. If you don't want to have a public repository then yes you can zip it up and we'll just create it under ours. Thanks !

  7. ShanePe commented on Jan 11, 2017

    @ShanePe
  8. ShanePe commented on Jan 22, 2017

    @ShanePe
  9. LukePulverenti commented on Jan 26, 2017

    @LukePulverenti
    MemberAuthor

    Perfect, thanks ! How are these handled in the user's file system? Is it a matter of creating a smart playlist in the UI and the xps gets saved to an internal location...or can users create their own and put the xsp's anywhere they like, perhaps with images and fanart just like a video file?

  10. ShanePe commented on Jan 26, 2017

    @ShanePe
  11. LukePulverenti commented on Jan 26, 2017

    @LukePulverenti
    MemberAuthor

    Minimizing dependencies is the key to multi-platform support. So on that note, would you mind removing the PCL third party library and just having the class work with a Stream? If you don't want to, that's fine, I'll do it when we fork this. But since we already have our own file system interfaces we will want to use those to resolve a path into a Stream.

    Also, question, does Kodi always display smart playlists as a text-based list. What if you wanted a smart playlist to have a poster, does it support customizing that, or is it auto-generated based on the media?

  12. ShanePe commented on Jan 26, 2017

    @ShanePe
  13. ShanePe commented on Jan 26, 2017

    @ShanePe
  14. ShanePe commented on Jan 28, 2017

    @ShanePe
  15. LukePulverenti commented on Feb 25, 2017

    @LukePulverenti
    MemberAuthor

    Hi Shane,
    Just for an update, the only holdup here is our ability now to do the UI work needed for this. I'm starting to think about how that will impact or change screens we currently have. Thanks.

  16. ShanePe commented on Feb 26, 2017

    @ShanePe
  17. LukePulverenti commented on Feb 26, 2017

    @LukePulverenti
    MemberAuthor

    That would actually be fantastic. Are you in the Emby community? Can you send me a PM there? Thanks !

  18. ShanePe commented on Feb 26, 2017

    @ShanePe
  19. LukePulverenti commented on Feb 26, 2017

    @LukePulverenti
    MemberAuthor

    Yea, exactly.

  20. artorius commented on Jul 25, 2018

    @artorius

    Is this feature still being worked on? This is the one killer enhancement that I would love to see.

  21. LukePulverenti commented on Aug 19, 2018

    @LukePulverenti
    MemberAuthor

    Yes we are still planning on this for the future. thanks.

  22. changed the title [-]Support parsing Kodi smart playlists[/-] [+]Support smart views/playlists[/+] on Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions