Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

[Question] #185

Closed
Blurayx opened this issue May 27, 2020 · 5 comments
Closed

[Question] #185

Blurayx opened this issue May 27, 2020 · 5 comments

Comments

@Blurayx
Copy link

Blurayx commented May 27, 2020

Is there a way to add a "scan for new content" to the options menu?
This has been bugging me for years!!!


The only way I know is from the video source

Thanks

@jurialmunkey
Copy link
Owner

Doesn't that do the same thing as "Update Library" which is already in the menu?

@Blurayx
Copy link
Author

Blurayx commented May 28, 2020

It’s a bit hard to explain but I’ll try my best.

The problem with update library it will perform a full scan(tv shows & movies) This can take a while if you have a large library.

tv shows library: Scan for new content only scans the individual tvshow.

Video source has the option to “scan for new content” for tv shows or movies etc. this is very fast because it only detects newly added tv shows or episodes.

@jurialmunkey
Copy link
Owner

Ah, of course! You only want to scan the specific source to cut down on the update time. Sadly, I don't think it is possible from the skin side of things.

The "Scan for new content" is the same command as UpdateLibrary(video,sourcepath) -- It just specifies the folder location for update library so that it only scans that one particular folder.

The problem is that TVShows section of the library can be made up of multiple sources split into different folders but all those sources can be shown mixed together in the one tvshow library node, so you would need a separate command for each source: e.g.
UpdateLibrary(video,/storage/videos/tvshows/)
UpdateLibrary(video,/storage/videos/documentaries/)
UpdateLibrary(video,/storage/videos/cartoons/)
etc.

There's not really any way for the skin to get thesesources that make up the library node - the skin only sees the virtual path to the node e.g. videodb://tvshows/titles and that won't work because it doesn't map to a specific folder location on the hard-drive.

@Blurayx
Copy link
Author

Blurayx commented May 28, 2020

It's almost unbelievable someone never thought of this feature.
I'll have to rely on the watchdog add-on for now. it's very good and fully automated but has not been updated for years. It puts a very heavy load on the cpu and causes Kodi to crash when existing Kodi. Are you familiar with this add-on?

@Blurayx
Copy link
Author

Blurayx commented Jun 21, 2020

Update:
I don't know when it was updated. Kodi can now scan for new content in the default library 😀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants