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, ...) - Rijs43 - 2021-06-11

(2021-06-11, 00:34)LongMan Wrote:
(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.

Hi, yes please give me more detailed instructions/ step by step guide. I am not that technical unfortunately.


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

Follow https://wiki.libreelec.tv/installation/create-media to install and then follow https://wiki.libreelec.tv/support/update#samba-share to update.


RE: Media importing and library integration (UPnP, Emby, Plex, ...) - Rijs43 - 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.

Cheers mate, hopefully new official version will be available as well due to updates etc.


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

(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...

@webmaher could you give https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/bugfix/myplexpinlogin.zip a try? I added some additional logs to the code where it fails for you so I can better see what the issue is. Thanks a lot for your help!


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

yes..but now i must see first how this work...over night i finally import over 180k episodes... in log file i see a really lot Warning like this:

2021-06-11 07:12:43.414 T:3532  WARNING <general>: Skipped 9 duplicate messages..
2021-06-11 07:12:43.414 T:3532  WARNING <general>: [mediaimporter.plex] unknown exception when receiving data from 'xxx' (plex://XYZ/): timed out


a couple of this:

2021-06-11 03:01:46.811 T:14692 WARNING <general>: [mediaimporter.plex] failed to retrieve item Episode 6: 亦 風 得 知 身 世 秘 密 with key /library/metadata/664448 from 'xxx' (plex://XYZ/): an integer is required (got type NoneType)
2021-06-11 03:01:46.811 T:14692 WARNING <general>: [mediaimporter.plex] retrieving item Episode 6: 亦 風 得 知 身 世 秘 密 with key /library/metadata/664448 from 'xxx' (plex://XYZ/) failed after 5 retries
2021-06-11 03:01:46.811 T:14692 WARNING <general>: [mediaimporter.plex] failed to convert item Episode 6: 亦 風 得 知 身 世 秘 密 with key /library/metadata/664448 from 'xxx' (plex://XYZ/)



and also this:

2021-06-11 03:06:29.302 T:15344 WARNING <general>: [mediaimporter.plex] failed to retrieve item Carr-Ranganathan, OBriain-Peretti, Fielding-Izzard with key /library/metadata/481677 from 'xxx' (plex://XYZ/): an integer is required (got type NoneType)
2021-06-11 03:06:29.302 T:15344 WARNING <general>: [mediaimporter.plex] retrieving item Carr-Ranganathan, OBriain-Peretti, Fielding-Izzard with key /library/metadata/481677 from 'xxx' (plex://XYZ/) failed after 5 retries
2021-06-11 03:06:29.302 T:15344 WARNING <general>: [mediaimporter.plex] failed to convert item Carr-Ranganathan, OBriain-Peretti, Fielding-Izzard with key /library/metadata/481677 from 'xxx' (plex://XYZ/)



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

(2021-06-11, 00:48)LongMan Wrote: Follow https://wiki.libreelec.tv/installation/create-media to install and then follow https://wiki.libreelec.tv/support/update#samba-share to update.

I have installed media importer from the repo, but how can I add plex media to kodi? Media importer does not allow me to run the addon and does not show anything to me.

Thanks.


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

(2021-06-11, 14:14)webmaher Wrote: yes..but now i must see first how this work...over night i finally import over 180k episodes...
With which version did you get it to work?

(2021-06-11, 14:14)webmaher Wrote: in log file i see a really lot Warning like this:
2021-06-11 07:12:43.414 T:3532  WARNING <general>: Skipped 9 duplicate messages..
2021-06-11 07:12:43.414 T:3532  WARNING <general>: [mediaimporter.plex] unknown exception when receiving data from 'xxx' (plex://XYZ/): timed out
This is a known issue.

(2021-06-11, 14:14)webmaher Wrote: a couple of this:

2021-06-11 03:01:46.811 T:14692 WARNING <general>: [mediaimporter.plex] failed to retrieve item Episode 6: 亦 風 得 知 身 世 秘 密 with key /library/metadata/664448 from 'xxx' (plex://XYZ/): an integer is required (got type NoneType)
2021-06-11 03:01:46.811 T:14692 WARNING <general>: [mediaimporter.plex] retrieving item Episode 6: 亦 風 得 知 身 世 秘 密 with key /library/metadata/664448 from 'xxx' (plex://XYZ/) failed after 5 retries
2021-06-11 03:01:46.811 T:14692 WARNING <general>: [mediaimporter.plex] failed to convert item Episode 6: 亦 風 得 知 身 世 秘 密 with key /library/metadata/664448 from 'xxx' (plex://XYZ/)



and also this:

2021-06-11 03:06:29.302 T:15344 WARNING <general>: [mediaimporter.plex] failed to retrieve item Carr-Ranganathan, OBriain-Peretti, Fielding-Izzard with key /library/metadata/481677 from 'xxx' (plex://XYZ/): an integer is required (got type NoneType)
2021-06-11 03:06:29.302 T:15344 WARNING <general>: [mediaimporter.plex] retrieving item Carr-Ranganathan, OBriain-Peretti, Fielding-Izzard with key /library/metadata/481677 from 'xxx' (plex://XYZ/) failed after 5 retries
2021-06-11 03:06:29.302 T:15344 WARNING <general>: [mediaimporter.plex] failed to convert item Carr-Ranganathan, OBriain-Peretti, Fielding-Izzard with key /library/metadata/481677 from 'xxx' (plex://XYZ/)
Hm these look odd. They probably profit from the "retry on failure" functionality I added even though it it mainly intended to cover connection issues but it catches any exception. I'll try to figure out where these are coming from.


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

(2021-06-11, 08:05)Montellese Wrote:
(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...

@webmaher could you give https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/bugfix/myplexpinlogin.zip a try? I added some additional logs to the code where it fails for you so I can better see what the issue is. Thanks a lot for your help!
i just tested and import some movies and series and then set update to manually... but when starting Kodi always get this error:
Plex-last


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

(2021-06-11, 18:15)webmaher Wrote:
(2021-06-11, 08:05)Montellese Wrote:
(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...

@webmaher could you give https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/bugfix/myplexpinlogin.zip a try? I added some additional logs to the code where it fails for you so I can better see what the issue is. Thanks a lot for your help!
i just tested and import some movies and series and then set update to manually... but when starting Kodi always get this error:
Plex-last

Do I understand it right that connecting to your PMS is working fine now?

The error you mentioned above is a known issue with Kodi's Python 3 integration. It can happen with any add-on but since the media importer add-ons are very busy during startup it happens a lot there.


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

(2021-06-11, 20:43)Montellese Wrote:
(2021-06-11, 18:15)webmaher Wrote:
(2021-06-11, 08:05)Montellese Wrote: @webmaher could you give https://github.com/Montellese/mediaimporter.plex/archive/refs/heads/bugfix/myplexpinlogin.zip a try? I added some additional logs to the code where it fails for you so I can better see what the issue is. Thanks a lot for your help!
i just tested and import some movies and series and then set update to manually... but when starting Kodi always get this error:
Plex-last

Do I understand it right that connecting to your PMS is working fine now?

The error you mentioned above is a known issue with Kodi's Python 3 integration. It can happen with any add-on but since the media importer add-ons are very busy during startup it happens a lot there.
Connecting working OK but i must first use your  0.0.9 version from your repository and then upgrade... now i testing importing over 180k episodes with your last version...

P.S. with last version i cant import over 180k episodes... work very slow and the end always stop with error message and import nothing at all...
LOG file

P.S. 2 quick test with 888 movies ... 27 minutes ... this is slow but it works... so problem is when you have 100k and more ...
Now go to install PKC to see if maybe my Plex server is slow...


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

(2021-06-11, 21:17)webmaher Wrote: P.S. 2 quick test with 888 movies ... 27 minutes ... this is slow but it works... so problem is when you have 100k and more ...
Now go to install PKC to see if maybe my Plex server is slow...
Hm that's very slow. I imported 9k movies from a remote PMS in less than 6 minutes. 27k episodes from the same server took less than 15 minutes.


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

your last version its not so fast... so i install again version 3 and imported 15k movies in 10 minutes...now i testing 180k episodes....


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

(2021-06-12, 17:08)webmaher Wrote: your last version its not so fast... so i install again version 3 and imported 15k movies in 10 minutes...now i testing 180k episodes....

Yeah that sounds more like what I saw. And yes my latest version was slower than version 2 and 3 but should be faster than 0.0.9.


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

182095 imported episode in 57 minutes with version 3  Cool


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

(2021-06-12, 18:51)webmaher Wrote: 182095 imported episode in 57 minutes with version 3  Cool

Wow that's great news. Thanks a lot for all the time you invested in this.

Were all episodes imported or did you get some errors like before?


This forum uses Lukasz Tkacz MyBB addons.