Kodi Community Forum

Full Version: Media importing and library integration (UPnP, Emby, Plex, ...)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(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.
(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.
(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/mediaimpor...nlogin.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!
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/)
(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.
(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.
(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/mediaimpor...nlogin.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
(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/mediaimpor...nlogin.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.
(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/mediaimpor...nlogin.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...
(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.
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....
(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.
182095 imported episode in 57 minutes with version 3  Cool
(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?