2009-12-08, 05:28
I have a script set to update my library in the specific directory that a file is placed when it's finished downloading in SabNZBd. Previously, the command was just sending "XBMC.updatelibrary(video)" but the update took too long so I looked to optimize it by adding the optional path parameter in. Initially, I thought it was working correctly but when I tried to add a brand new show, it failed to add the file to the library.
UpdateLibrary(video) always works.
UpdateLibrary(video,path) only works when the show previously exists. When it doesn't, the scraper searches for a tv show named for the season, e.g. "Season 1"
I'm not sure if I should be formatting my request any different. I suspect not since it works in the most common case.
My folder structure is as follows...
smb://server/swag/video/series/Scrubs/Season 1/Scrubs - 1x01 - My First Day.avi
And my log file for the scan.
UpdateLibrary(video) always works.
UpdateLibrary(video,path) only works when the show previously exists. When it doesn't, the scraper searches for a tv show named for the season, e.g. "Season 1"
I'm not sure if I should be formatting my request any different. I suspect not since it works in the most common case.
My folder structure is as follows...
smb://server/swag/video/series/Scrubs/Season 1/Scrubs - 1x01 - My First Day.avi
And my log file for the scan.
Code:
19:19:03 T:139895476836416 M:2897027072 DEBUG: HttpApi Start command: ExecBuiltIn paras: ExecBuiltIn; XBMC.updatelibrary(video,smb://server/swag/video/series/Scrubs/Season 1)
19:19:03 T:139895476836416 M:2897027072 DEBUG: ------ Window Init (DialogVideoScan.xml) ------
19:19:03 T:139895476836416 M:2897027072 INFO: Loading skin file: DialogVideoScan.xml
19:19:03 T:139895476836416 M:2897027072 DEBUG: Load DialogVideoScan.xml: 3.25ms
19:19:03 T:139895476836416 M:2897027072 DEBUG: Alloc resources: 3.59ms (3.55 ms skin load)
19:19:03 T:139894918469968 M:2897027072 DEBUG: thread start, auto delete: 0
19:19:04 T:139894918469968 M:2897002496 DEBUG: Process - Starting scan
19:19:04 T:139894910077264 M:2897002496 DEBUG: thread start, auto delete: 0
19:19:04 T:139894910077264 M:2897002496 DEBUG: Thread 139894910077264 terminating
19:19:04 T:139894918469968 M:2896666624 DEBUG: Hash[tvshows,smb://server/swag/video/series/Scrubs/Season 1]:DB=[],Computed=[]
19:19:04 T:139894918469968 M:2896871424 DEBUG: No NFO file found. Using title search for 'smb://server/swag/video/series/Scrubs/Season 1'
19:19:04 T:139894918469968 M:2896871424 DEBUG: InternalFindMovie: Searching for 'season 1' using TheTVDB.com scraper (file: 'tvdb.xml', content: 'tvshows', language: 'multi', date: '2009-07-28', framework: '1.1')
19:19:04 T:139894918469968 M:2896871424 DEBUG: FileCurl::Open(0x1de8110) http://www.thetvdb.com/api/GetSeries.php?seriesname=season%201&language=en
19:19:05 T:139894918469968 M:2896945152 DEBUG: FileCurl::Close(0x1de8110) http://www.thetvdb.com/api/GetSeries.php?seriesname=season%201&language=en
19:19:05 T:139894918469968 M:2896945152 DEBUG: scraper: GetSearchResults returned <?xml version="1.0" encoding="utf-8" standalone="yes"?><results></results>
19:19:05 T:139894918469968 M:2896945152 DEBUG: Not adding item to library as no info was found :(
19:19:05 T:139894918469968 M:2896945152 DEBUG: DoScan - Finished dir: smb://server/swag/video/series/Scrubs/Season 1
19:19:05 T:139894918469968 M:2896945152 DEBUG: Process - Finished scan
19:19:05 T:139894918469968 M:2896945152 NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:01
19:19:05 T:139894918469968 M:2896633856 INFO: Video scan was stopped or finished ... restoring FindRemoteThumbs
19:19:05 T:139894918469968 M:2896633856 DEBUG: Thread 139894918469968 terminating
19:19:05 T:139895476836416 M:2896633856 DEBUG: CGUIMediaWindow::GetDirectory (videodb://2/2/)
19:19:05 T:139895476836416 M:2896633856 DEBUG: ParentPath = [videodb://2/2/]
19:19:05 T:139895476836416 M:2896482304 DEBUG: GetTvShowsByWhere query: select * from tvshowview
19:19:05 T:139895476836416 M:2896175104 DEBUG: Time for actual SQL query = 208
19:19:05 T:139895476836416 M:2896044032 DEBUG: Time to retrieve movies from dataset = 213
19:19:05 T:139895476836416 M:2896044032 DEBUG: Sort, sorting took 0 millis
19:19:05 T:139895476836416 M:2896044032 DEBUG: Sort, sorting took 0 millis
19:19:05 T:139895476836416 M:2896044032 DEBUG: Saving fileitems [videodb://2/2/]
19:19:05 T:139895476836416 M:2895904768 DEBUG: -- items: 79, sort method: 2, ascending: true
19:19:05 T:139895018195280 M:2895470592 DEBUG: thread start, auto delete: 0
19:19:05 T:139895189158224 M:2895470592 DEBUG: thread start, auto delete: 0
19:19:05 T:139895035091280 M:2895470592 DEBUG: thread start, auto delete: 0
19:19:05 T:139894926862672 M:2895470592 DEBUG: thread start, auto delete: 0
19:19:05 T:139894936566096 M:2895470592 DEBUG: thread start, auto delete: 0
19:19:05 T:139894936566096 M:2895470592 DEBUG: Thread 139894936566096 terminating
19:19:05 T:139895035091280 M:2895470592 DEBUG: Thread 139895035091280 terminating
19:19:05 T:139895189158224 M:2895470592 DEBUG: Thread 139895189158224 terminating
19:19:05 T:139894926862672 M:2895470592 DEBUG: Thread 139894926862672 terminating
19:19:05 T:139895018195280 M:2895470592 DEBUG: Thread 139895018195280 terminating
19:19:05 T:139895476836416 M:2895470592 DEBUG: ------ Window Deinit (DialogVideoScan.xml) ------