Kodi Community Forum
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 (UPnP, Emby, Plex, ...) - LongMan - 2021-06-10

Quote:Just ran an import from a PMS with 27k+ episodes which took ~15 minutes.
Quote:I just tested my latest performance improvements of mediaimporter.plex on a movie library with 9k+ movies. Last time I ran the import (back in March) it took 95 minutes. Now it took 6 minutes. That's not a bad speedup.

Not bad at all.


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - webmaher - 2021-06-10

(2021-06-10, 03:20)LongMan Wrote:
Quote:Just ran an import from a PMS with 27k+ episodes which took ~15 minutes.
Quote:I just tested my latest performance improvements of mediaimporter.emby on a movie library with 9k+ movies. Last time I ran the import (back in March) it took 95 minutes. Now it took 6 minutes. That's not a bad speedup.

Not bad at all.
I have time to test plex...can you please upload this new version ASAP... if work OK then i ask arvvoid if any chance to create also HBO importer...


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2021-06-10

https://github.com/Montellese/mediaimporter.plex/tree/improvement/parallel_conversion. Hit the green button and download the zip file.  the latest Media Import Builds are here https://github.com/Montellese/xbmc/wiki/Downloads#downloads.


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2021-06-10

(2021-06-10, 11:30)webmaher Wrote:
(2021-06-10, 03:20)LongMan Wrote:
Quote:Just ran an import from a PMS with 27k+ episodes which took ~15 minutes.
Quote:I just tested my latest performance improvements of mediaimporter.emby on a movie library with 9k+ movies. Last time I ran the import (back in March) it took 95 minutes. Now it took 6 minutes. That's not a bad speedup.

Not bad at all.
I have time to test plex...can you please upload this new version ASAP... if work OK then i ask arvvoid if any chance to create also HBO importer...

There are three different versions you can try:
  1. master from https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/master.zip which contains the ~50% improvements from optimizing the queries with python-plexapi version 4.6.0
  2. improvement/parallel_conversion from https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/improvement/parallel_conversion.zip which is based on master and even faster by using multiple threads to retrieve the imported metadata.
  3. improvement/retry_requests from https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/improvement/retry_requests.zip which is based on improvement/parallel_conversion and contains additional retry logic on connection problems to be more resilient against network issues etc.



RE: Media importing and library integration (UPnP, Emby, Plex, ...) - webmaher - 2021-06-10

with 1. master from.... i cant connect to my Plex I got this....

log file


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - webmaher - 2021-06-10

(2021-06-10, 14:35)webmaher Wrote: with 1. master from.... i cant connect to my Plex I got this....

log file
same story with second version...


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - webmaher - 2021-06-10

(2021-06-10, 14:42)webmaher Wrote:
(2021-06-10, 14:35)webmaher Wrote: with 1. master from.... i cant connect to my Plex I got this....

log file
same story with second version...
and also with third... before i never have this problem...


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2021-06-10

(2021-06-10, 14:35)webmaher Wrote: with 1. master from.... i cant connect to my Plex I got this....

log file

Thanks for the feedback. That's odd. I haven't touched this code in a while and it doesn't look like anything has changed for MyPlex PIN login in python-plexapi either (which makes sense because I provided the implementation). Did you start with an existing database with credentials / access to your PMS already configured or did you start fresh? I just tried both and everything works fine. When I choose "Link MyPlex account" in the media provider settings it shows me the PIN and after entering it in the browser it says that I was successfully linked to my MyPlex account and I can start adding imports for the provider.

EDIT: I also just tried manually adding a Plex server as a media provider through MyPlex and that worked fine for me as well.


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - webmaher - 2021-06-10

Here is complete log file with importer 1....
PLex01
I started fresh...browser says successfully linked....really strange...


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Montellese - 2021-06-10

(2021-06-10, 15:10)webmaher Wrote: Here is complete log file with importer 1....
PLex01
I started fresh...browser says successfully linked....really strange...
And it works fine with the "official" 0.0.9 version from my repository?


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - webmaher - 2021-06-10

yes..just tested and import 1490movies in 10 minutes...and now made upgrade and importing series...it looks good for now  Smile


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Rijs43 - 2021-06-10

Can I install media importer on Raspberry Pi4 with OS LibreElec?

Thanks.


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2021-06-10

There is no official build. However I build for my own use. If you ok with that, you can get a copy here


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Rijs43 - 2021-06-10

(2021-06-10, 22:58)LongMan Wrote: There is no official build. However I build for my own use. If you ok with that, you can get a copy here

Thanks- however this is TAR format instead of ZIP and therefor unable to install.


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - LongMan - 2021-06-11

(2021-06-10, 23:52)Rijs43 Wrote:
(2021-06-10, 22:58)LongMan Wrote: There is no official build. However I build for my own use. If you ok with that, you can get a copy here

Thanks- however this is TAR format instead of ZIP and therefor unable to install.
Use an official build to install and use the given file to upgrade. Let me know if you need detailed instructions.


This forum uses Lukasz Tkacz MyBB addons.