ginjaninja 613 Posted 14 hours ago Posted 14 hours ago I am writing a plugin that copy files and appends tags to the subsequent library items I have it working lazily, looking for the item added event before tagging the library object but i would like to force a scan of the folder immediately avoiding the debounce timer. There seems to be lots of talk on forums but no actual solution, save an old rest endpoints (no longer present on swagger) used by an autoscanutility. The target are folders in a path in scope of a library (but not ingested yet). i dont want to subscribe to have them scanned at a later point. Prefer to use a native plugin but rest api is fine too. any ideas? thanks
ginjaninja 613 Posted 2 hours ago Author Posted 2 hours ago ComingSoonEntryPoint.RegisterPendingPath(folderPath); this.logger.Info("ManageComingSoon: [Step 2] Releasing LibraryMonitor suppression with immediate refresh for {0}", folderPath); this.libraryMonitor.ReportFileSystemChangeComplete(folderPath, true); this.logger.Info("ManageComingSoon: [Step 3] ReportFileSystemChangeComplete called – FileRefresher should start shortly"); // Tag is applied by ComingSoonEntryPoint.OnItemAdded when ItemAdded fires. this.logger.Info("ManageComingSoon: Placeholder created. Awaiting FileRefresher ingest and ItemAdded."); I think this a reasonable approach? it seem emby needs to do all the ffmpeg and provider lookups prior, rather than instantiating the library object 1st and then decorating it with information that comes from the analysis and providers. For completeness with emby paradigm and my learning, might i consider registering as a metadata provider, could my plugin give the known TMDBID for this movies file path to onward providers. (so no mistakes are possible)..if that is a thing i can go and investigate. thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now