WIP Media importing and library integration (UPnP, Emby, Plex, ...) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: WIP Media importing and library integration (UPnP, Emby, Plex, ...) (/showthread.php?tid=224794) |
RE: Media importing and library integration of UPnP - rterblanche - 2015-04-21 Quick question. How does the episode update work. Deltas or full sync every time? On the Pi it takes a while. Not sure if it's the download of the list or processing of the list after the download. RE: Media importing and library integration of UPnP - Montellese - 2015-04-21 (2015-04-20, 21:58)rterblanche Wrote: Ok very impressed. Thanks for taking the time to test this. Yeah the settings window for tvshows, seasons and episodes doesn't automatically open yet. I still have to figure out a way to handle grouped media types. (2015-04-20, 22:29)rterblanche Wrote: First funny.Will put it on the TODO list. There are a lot of places in our code were UPnP items are specifically excluded from doing certain actions but those need to be revisited for imported items. (2015-04-20, 23:01)LongMan Wrote: Beautiful work. I have been waiting a long time for this day. Thanks for your efforts.The only other way I can think of right now is to add all those movies to a "Kids Movies" tag and do the filtering on that. The problem is that UPnP importing doesn't really care about your library organization. It simply asks the server to provide all movies independent of how they are structured/organized and we can't reverse engineer these custom library paths from the media items because the custom library paths are just virtual folders for a filtered list of items. It might even be that an item is part of multiple virtual folders in which case there won't be a single valid custom library path. (2015-04-20, 23:53)LongMan Wrote: Unexpected BehaviourProbably same problem as with marking a tvshow or season as watched as explained above. (2015-04-21, 07:04)rterblanche Wrote: Quick question. How does the episode update work. Deltas or full sync every time? On the Pi it takes a while. Not sure if it's the download of the list or processing of the list after the download.Right now it does a full download and then tries to detect any changes. If nothing changed the episodes won't be touched. But both the full download and the changeset detection take time. Ideally we'd only have to synchronise changes/updates but that's currently not possible. RE: Media importing and library integration of UPnP - Montellese - 2015-04-21 Latest test builds: April 21 2015:
Changelog
RE: Media importing and library integration of UPnP - LongMan - 2015-04-21 OpenELEC Builds? RE: Media importing and library integration of UPnP - Montellese - 2015-04-21 (2015-04-21, 15:06)LongMan Wrote: OpenELEC Builds? We'll have to wait for Milhouse to provide some. Jenkins doesn't do OpenELEC builds. RE: Media importing and library integration of UPnP - Milhouse - 2015-04-21 I've uploaded build #0420x in the wipupnp folder, untested though (I intend to test the db migration later today when I get a chance): RPi: http://milhouse.openelec.tv/builds/wipupnp/RPi/OpenELEC-RPi.arm-Milhouse-20150421115731-%230420x-gec6715e.tar RPi2: http://milhouse.openelec.tv/builds/wipupnp/RPi2/OpenELEC-RPi2.arm-Milhouse-20150421115731-%230420x-gec6715e.tar Generic: http://milhouse.openelec.tv/builds/wipupnp/Generic/OpenELEC-Generic.x86_64-Milhouse-20150421115731-%230420x-gec6715e.tar (The RPi builds include the latest firmware with fix for "deinterlace jaggies") Edit: Updated urls... # -> %023 RE: Media importing and library integration of UPnP - Montellese - 2015-04-21 Cool thanks. I also already found the issues with marking tvshows and seasons as watched and why tvshow and season imports couldn't be properly deleted but that didn't make it into these test builds yet. RE: Media importing and library integration of UPnP - LongMan - 2015-04-21 Thanks a million. RE: Media importing and library integration of UPnP - LongMan - 2015-04-21 With regards to the library sections, I was hoping that we would be able to add upnp sources similar to the current behaviour. In which case when the browse button is clicked, it takes you to the video nodes folder in userdata/library/video/ where one can choose what nodes to add. (I keep my custom nodes there and they show up in the upnp browser. I will try the tag method. However, unlike my current setup which only require me to place the video file in a specific folder, with tags I will have to mark each file after it has been scanned into the library on the server. If I understand correctly you are actually accessing the database at a lower level so only the three media types are available. A bit disaapointing but that is one negative in a million positives. cheers RE: Media importing and library integration of UPnP - Montellese - 2015-04-21 Yes the problem is that I would like this approach / system / framework to be as generic as possible so all a media provider needs to be able to do is provide a list of media items of a specific type. That way it may also work with other UPnP servers in the future which we don't control ourselves. The same goes for being able to import from plugins. Assuming a specific directory structure or forcing it on plugins makes the system much less powerful. But I understand that having to manually tag every movie is cumbersome. We really need better desktop tools for these kinds of things where you could e.g. drag and drop a list of movies into a tag etc. RE: Media importing and library integration of UPnP - LongMan - 2015-04-21 Speaking of Tags; Is there an infolabel for tags similar to ListItem.Cast or ListItem.Genre that will give a list of tags associated with a mediaitem. A ListItem.Tags perhaps? Thinking about the system framework further, you should consider say a netflix plugin or USTV VoD or BBc iplayer which will have many more media items than a user might want to scan into their library. I might want to add a single show or genre. To add everything from the plugin would explode my library, but adding the drama section from iplayer would be fine. So maybe a advanced mediasources section in the advancedsettings.xml could be a consideration for the future. Cheers Edit: An approach similar to the search filters here could be considered. The search filters are placed in the Config.xml file. http://forum.kodi.tv/showthread.php?tid=98210 RE: Media importing and library integration of UPnP - LongMan - 2015-04-21 Btw the openELEC builds links above give a 404 error. RE: Media importing and library integration of UPnP - popcornmix - 2015-04-21 (2015-04-21, 18:25)LongMan Wrote: Btw the openELEC builds links above give a 404 error. If you start here: http://milhouse.openelec.tv/builds/wipupnp/ you can browse to them. RE: Media importing and library integration of UPnP - rterblanche - 2015-04-21 Which url must be used with the openelec dev update. I configured a new path based on the above but keep on getting an Pi2.arm release not found error message. RE: Media importing and library integration of UPnP - Montellese - 2015-04-21 (2015-04-21, 18:24)LongMan Wrote: Speaking of Tags; Is there an infolabel for tags similar to ListItem.Cast or ListItem.Genre that will give a list of tags associated with a mediaitem. A ListItem.Tags perhaps?Not that I know of. (2015-04-21, 18:24)LongMan Wrote: Thinking about the system framework further, you should consider say a netflix plugin or USTV VoD or BBc iplayer which will have many more media items than a user might want to scan into their library. I might want to add a single show or genre. To add everything from the plugin would explode my library, but adding the drama section from iplayer would be fine. So maybe a advanced mediasources section in the advancedsettings.xml could be a consideration for the future. Yes I've already considered this. Theortically any import can be specified for a certain path. But since that doesn't work for the UPnP importer and it's the only one that I have right now I didn't fully integrate that functionality yet. But the idea would be that you could go into a plugin, select a folder, open up the context menu and choose "Import items" and it would only import the items from that folder/path. |