TheTVDB scraper not working with HTTP API UpdateLibrary when a path is specified.
#1
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.

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) ------
Reply
#2
This problem also exists with TheMovieDb scraper.
Code:
13:35:13 T:139805208852544 M:2632671232   DEBUG: HttpApi Start command: ExecBuiltIn  paras: ExecBuiltIn; XBMC.updatelibrary(video,smb://server/swag/video/movies/mkv/babel (2006)/)
13:35:13 T:139805208852544 M:2632671232   DEBUG: ------ Window Init (DialogVideoScan.xml) ------
13:35:13 T:139805208852544 M:2632671232    INFO: Loading skin file: DialogVideoScan.xml
13:35:13 T:139805208852544 M:2632671232   DEBUG: Load DialogVideoScan.xml: 3.21ms
13:35:13 T:139805208852544 M:2632671232   DEBUG: Alloc resources: 3.55ms (3.50 ms skin load)
13:35:13 T:139804784183632 M:2632593408   DEBUG: thread start, auto delete: 0
13:35:13 T:139804940900688 M:2632593408   DEBUG: webs: accept request
13:35:13 T:139805208852544 M:2632593408   DEBUG: HttpApi Start command: ExecBuiltIn  paras: ExecBuiltIn; Notification(Download Complete,Babel (2006) Finished,5000,/home/xbmc/sabnzbd.png)
13:35:13 T:139804940900688 M:2632593408   DEBUG: webs: accept request
13:35:13 T:139805208852544 M:2632593408   DEBUG: HttpApi Start command: ExecBuiltIn  paras: ExecBuiltIn; XBMC.updatelibrary(video,smb://server/swag/video/movies/mkv/babel (2006)/)
13:35:13 T:139804784183632 M:2632417280   DEBUG: Process - Starting scan
13:35:13 T:139804656249168 M:2632417280   DEBUG: thread start, auto delete: 0
13:35:13 T:139804656249168 M:2632417280   DEBUG: Thread 139804656249168 terminating
13:35:13 T:139804784183632 M:2632417280   DEBUG: OpenDir - Using authentication url smb://xbmc:xbmc@server/swag/video/movies/mkv/babel%20%282006%29
13:35:15 T:139804784183632 M:2632437760   DEBUG: DoScan Scanning dir 'smb://server/swag/video/movies/mkv/babel (2006)/' as not in the database
13:35:15 T:139804784183632 M:2632437760   DEBUG: Hash[movies,smb://server/swag/video/movies/mkv/babel (2006)/]:DB=[],Computed=[BF3DCE309F6CC629434A2099C68E7DE7]
13:35:15 T:139804784183632 M:2632437760   DEBUG: Not adding item to library as no info was found :(
13:35:15 T:139804784183632 M:2632437760   DEBUG: DoScan - Finished dir: smb://server/swag/video/movies/mkv/babel (2006)/
13:35:15 T:139804784183632 M:2632437760   DEBUG: Process - Finished scan
13:35:15 T:139804784183632 M:2632437760  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:01
13:35:15 T:139804784183632 M:2632437760    INFO: Video scan was stopped or finished ... restoring FindRemoteThumbs
13:35:15 T:139804784183632 M:2632437760   DEBUG: Thread 139804784183632 terminating
13:35:15 T:139805208852544 M:2632437760   DEBUG: ------ Window Deinit (DialogVideoScan.xml) ------
Reply
#3
You'll probably need to go one dir up from the one you're sending.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
jmarshall Wrote:You'll probably need to go one dir up from the one you're sending.

That's what I'm trying to avoid. It takes MUCH longer for me to scan that entire directory for updates. If one directory up works, is this working as intended?
Reply
#5
Any word on whether this is functioning as intended?
Reply

Logout Mark Read Team Forum Stats Members Help
TheTVDB scraper not working with HTTP API UpdateLibrary when a path is specified.0