Posts: 3
Joined: May 2012
Reputation:
0
Experiencing the same.
This has nothing to do with the update XBMC 12.2 changelog "Ability to scan for new content on file folders has been reimplemented" does it?
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
2013-05-05, 04:57
(This post was last modified: 2013-05-05, 05:01 by Milhouse.)
I see this behaviour with movies, it's been like this since 12.0.
If my source is "/mnt/share/movies", and I have movies in the root of this source, and also movies in a "sets" sub directory (eg. "Back to the Future"), then I can successfully scan the "/mnt/share/movies/Back to the Future" directory and XBMC will find all the new items. However, if XBMC is asked to scan the directory "/mnt/share/movies" (ie. the root folder of the source) then it will fail to find any new items, but the same scan, with a null directory, will find new items.
Scanning directories "/mnt/share/movies" and "" should produce similar (identical?) results, but the former doesn't work, while the latter does. The only thing special about the directories that don't work, is that they are the root of each source - sub directories always work without fail.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 3
Joined: Dec 2013
Reputation:
0
2013-12-08, 02:40
(This post was last modified: 2013-12-08, 02:44 by wassy.)
Hi,
It took me ages to find the right syntax for my samba shared TV shows folder. I want my script to update only the new folders each time one is added. My Video source is mounted as:
smb://SSERVER/data/Videos/Temp
This video source is listed as containing "TV shows" and has the TVdB scraper assigned to it. Shows are stored in smb://SSERVER/data/Videos/Temp/ShowName/Season XX/TVShow.mkv structure. ALL of my TV shows are stored in this format
I use the python module jsonrpclib:
If I call server.VideoLibrary.Scan(), it will scan ALL video source and pick up ALL new episodes.
If I call server.VideoLibrary.Scan(directory="smb://SSERVER/data/Videos/Temp/ShowName/Season XX/") (note the trailing slash) I get an error " No information found for item 'smb://SSERVER/data/Videos/Temp/ShowName/Season XX/', it won't be added to the library."
If I call it with .../ShowName/Season XX (without the trailing slash) I get a similar if not identical error
If I call it with .../ShowName (without the trailing slash) I get a similar if not identical error
If I call .../ShowName/ (with a trailing slash) it WORKS, this is the only format I have found for specifying a TV show directory that actually scans properly. If I specify ShowName/ with a traiing slash, but missing off the lower season number directory it works.
Does anyone know why this is? I'm assuming it must be something to do with the way the scraper scans for video files and does/doesn't recurse properly into lower directories
Thanks
Posts: 3
Joined: Dec 2013
Reputation:
0
2013-12-08, 15:59
(This post was last modified: 2013-12-08, 15:59 by wassy.)
Hi.
No it is not jsonrpclib. I have tried formatting the actual JSON serialized strings and sending them using the "RESTClient" plugin for Firefox, I get the same results when I manually type out the JSON RPC string in this way.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
2013-12-08, 16:16
(This post was last modified: 2013-12-08, 16:17 by Milhouse.)
nfs://192.168.0.3/mnt/share/media/Video/TVShows/Arrow
nfs://192.168.0.3/mnt/share/media/Video/TVShows/Arrow/
nfs://192.168.0.3/mnt/share/media/Video/TVShows/Arrow/Season 1
nfs://192.168.0.3/mnt/share/media/Video/TVShows/Arrow/Season 1/
All work for me, no errors (using vscan option of script from sig).
Testing with very latest Gotham master (built from git).
Really need to see the request and responses your library is processing.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
When you say you deleted "all files from the library" after the first successful scan, did you delete the tv show from the library too (and clean)? Scanning a season, or a specific episode of a season, for a non existent tv show isn't likely to work, but adding a new season or episode to an existing show should work.
However, be aware of fast hashes and how xbmc will ignore scan updates unless a directory hash has changed - enable debugging to see this information in the xbmc log. This could very well explain why subsequent scans found no updates.
Try an incremental scan by first scanning Game of Thrones (without Season 3 files), then add the Season 3 files (without episode 10) and scan Season 3, then finally add the episode 10 file(s) and scan just episode 10.
One other important point to note is that in your tests there were no "errors", so any error being reported by your jsonrpc library is not being returned from xbmc itself.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.