2012-02-27, 19:08
I have a large video library and when I trigger an update on it, XBMC usually takes 3-5 minutes to finish scanning everything.
I am seeing a problem when I call Videolibrary.Scan when XBMC is already scanning. In fact, calling it seems to stop the current scan, which is counter-intuitive.
See debug log below. I first call it at 11:00:02. XBMC starts its scanning routine. Then I call it agan a second later at 11:00:03 and XBMC immediately stops its scanning and ends the update.
I'd recommend either a query method like VideoLibrary.IsCurrentlyUpdating so we can query the status.
Or at least the JSON-RPC interface should prevent Videolibrary.Scan when XBMC is already scanning, and not return "result":"OK" (like it currently does).
EDIT - It also would be nice to be able to trigger a "Scan for content" on a specific directory instead of having to update my entire library and scan thousands of folders when I just need one scanned.
Is there a trac ticket/feature request for this yet?
I am seeing a problem when I call Videolibrary.Scan when XBMC is already scanning. In fact, calling it seems to stop the current scan, which is counter-intuitive.
See debug log below. I first call it at 11:00:02. XBMC starts its scanning routine. Then I call it agan a second later at 11:00:03 and XBMC immediately stops its scanning and ends the update.
I'd recommend either a query method like VideoLibrary.IsCurrentlyUpdating so we can query the status.
Or at least the JSON-RPC interface should prevent Videolibrary.Scan when XBMC is already scanning, and not return "result":"OK" (like it currently does).
Code:
[b]11:00:02 T:8908 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.Scan", "params": {}, "id": "1"}[/b]
11:00:02 T:8908 DEBUG: JSONRPC: Calling videolibrary.scan
11:00:03 T:5012 DEBUG: ------ Window Init (DialogVideoScan.xml) ------
11:00:03 T:5012 INFO: Loading skin file: DialogVideoScan.xml
11:00:03 T:12232 DEBUG: Thread VIDEO::CVideoInfoScanner start, auto delete: 0
11:00:03 T:12232 NOTICE: VideoInfoScanner: Starting scan ..
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data-2tb/Videos/BluRays/' due to no change (fasthash)
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data-2tb/Videos/DVDs/' due to no change (fasthash)
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data-2tb/Videos/Movies/' due to no change
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data-2tb/Videos/Movies/Knight and Day/' due to no change (fasthash)
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data-2tb/Videos/Movies/The Other Guys/' due to no change (fasthash)
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data/compressed/Movies/' due to no change (fasthash)
11:00:03 T:12232 DEBUG: VideoInfoScanner: Skipping dir 'smb://ONYX/Data/compressed/StreamingVideos/Movies/' due to no change (fasthash)
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/24/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/30.Days/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/30.Rock/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/Alcatraz/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/America/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/Arrested.Development/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/Battle.360/
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/Blue's.Clues/
[b]11:00:03 T:8908 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.Scan", "params": {}, "id": "1"}
[/b]11:00:03 T:8908 DEBUG: JSONRPC: Calling videolibrary.scan
11:00:03 T:12232 DEBUG: VideoInfoScanner: No (new) information was found in dir smb://ONYX/Data/compressed/StreamingVideos/TV Shows/Bones/
11:00:03 T:12232 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
11:00:03 T:12232 INFO: Video scan was stopped or finished ... restoring FindRemoteThumbs
EDIT - It also would be nice to be able to trigger a "Scan for content" on a specific directory instead of having to update my entire library and scan thousands of folders when I just need one scanned.
Is there a trac ticket/feature request for this yet?