• 1
  • 21
  • 22
  • 23(current)
  • 24
  • 25
  • 96
WIP Media importing and library integration (UPnP, Emby, Plex, ...)
Ok. Thanks.
Reply
I've started a new build at http://jenkins.kodi.tv/view/Windows/job/WIN-32/5044/ which should upload a new test build to the mirrors in an hour or so. I've finally fixed the bug that provider and import settings couldn't be saved but I had to mess around in some of the interfaces. It's working now but I need to take another look and find a cleaner / more consistent solution.

There's also a problem that imported items are always removed and re-added with the next import synchronisation. Something is going wrong with the URLs that are stored in the database.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
@Montellese

How do I get the latest test build?
Reply
Looks like the build failed. In addition, could you modify the python addon branch on GitHub so that it has a Clone/Download as zip button.

Thanks,
LongMan
Reply
(2017-06-16, 03:17)angelblue05 Wrote: How do I get the latest test build?
The build I started last night failed (unrelated to my changes) but the one I started this morning succeeded and here's the test build: http://mirrors.kodi.tv/test-builds/win32...rt-x86.exe

(2017-06-16, 03:52)LongMan Wrote: Looks like the build failed. In addition, could you modify the python addon branch on GitHub so that it has a Clone/Download as zip button.
I'm not sure what you mean? There already is such a button at https://github.com/Montellese/xbmc/tree/media_import but you have to download the whole Kodi repository.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
'No categories available' is the message I get from settings.
Reply
Please post a debug log which contains you trying to open the settings.

But I'm pretty sure it doesn't work anyway because there's still a hardcoded Emby API key in the python code.

Gesendet von meinem E5823 mit Tapatalk
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
Quote:I'm not sure what you mean? There already is such a button at https://github.com/Montellese/xbmc/tree/media_import but you have to download the whole Kodi repository.


That button is usually present on the page of each addon, not just the entire repo.

eg. https://github.com/MediaBrowser/plugin.video.emby
Reply
https://drive.google.com/open?id=0B9-mTw...jlrdTFMWkk
Reply
(2017-06-16, 17:41)LongMan Wrote:
Quote:I'm not sure what you mean? There already is such a button at https://github.com/Montellese/xbmc/tree/media_import but you have to download the whole Kodi repository.

That button is usually present on the page of each addon, not just the entire repo.

eg. https://github.com/MediaBrowser/plugin.video.emby
Yes if it would be a standalone add-on that would be the case but since I'm only writing this to test the python API I'm trying to provide it doesn't make any sense to have it in a separate repository.

(2017-06-16, 17:48)LongMan Wrote: https://drive.google.com/open?id=0B9-mTw...jlrdTFMWkk
Ah I see what the problem is. The add-on itself does not have any settings. Once the add-on has detected an Emby server (which it does according to the logs) you need to go to "Settings" --> "Media sources" to browse to the automatically detected Emby server media provider and then open the info dialog to see the settings.

But once again there is a hardcoded Emby API key in the python code which won't work with any other Emby server installation. If you want to be able to fully test this you need to create your own API key in your server's configuration and copy & paste it into the code. Originally I had an option for this in the settings but people said it doesn't make any sense and I haven't gotten around to implementing proper user authentication yet.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
Thanks.

I harded coded an API Key and I got the dialogs. It now says "Retieving media items...." It more less the same as before with the very first one before you added the user authentication. i give it a spin.

Edit:The import seems to be going well. The addon seems to be almost on par with the C one. That awesome work when one considers that this is your first python addon. That's Simply Amazing. I lift my hat to you. Brilliant.
Reply
I'm testing the latest build currently. Do you have a decent library set up in Emby? My only question is why is it slow to process episodes? Is this the add-on or C side? It takes half a second to a second to import a single episode. I have over 15000, at 67% imported after 23mins. Just to give you an idea, with Emby for kodi, we are talking 2-3 minutes to import all of them on the same hardware, so I'm looking to see if we can speed this up a bit. The only reason I mention this is that I have a relatively small library compares to others.

Edit: Never mind, it was writing to an old database so that's why it was slow. It was overwriting entries that already exists. Looking a bit faster now that I started with a fresh database. Will let you know once it's done importing. Smile
Edit 2: 30mins to complete only my tv shows - so not much faster than before it seems, which took 38 mins. Now the question is it something we can improve within the add-on, or is it C ++ side?

If that's the speed we are looking at, it must be really slow on a low powered device. My episodes on a firetvstick takes 28 mins to import, so it must take more than an hour with media import.
Reply
TBH I haven't really paid much attention to time for total import because it can be used as soon as something has been imported. Additionally a single library could be imported, so it wasn't a big deal. But you are right, the speed could be improved.

With Emby for Kodi the initial sync was very important because it could not be used until all the items had been synced. What are your first impressions other than speed?

BTW What hardware syncs 15000 episodes in three minutes. Do share.
Reply
Just my gaming tower which I also doubles as my test machine for kodi Wink

It looks good, efficient to setup, once the process was explained. I'm curious to see where this project will lead us.
Reply
Do you think you could knock out some of the low hanging fruits.

For example, User Authentication and Library Tagging and two area that you have worked on recently and would possibly be much easier for you to do than it would be for Montellese. Look at some of his TODOs. Some of the underlying C stuff are already there. I am not 100% sure about the API but they worked before in the C version of Emby Importer.
Reply
  • 1
  • 21
  • 22
  • 23(current)
  • 24
  • 25
  • 96

Logout Mark Read Team Forum Stats Members Help
Media importing and library integration (UPnP, Emby, Plex, ...)10