2015-09-05, 17:06
Hi
I have problem that has been bugging me for a couple of weeks. After rippeing a lot of DVDs and using kodi for the first time
i want to use the movie scraper and the TheMovieDatabase.
However the scraper does not seesm to work when I run it fro Kodi, I suspect the problem is that KOdi doesnt wrap the CURL command in single quotes, but im not sure, and in any case I dont know how to fix it.
I get this message (with debugging turned on)
<pre>
perthi@perthi-mint:~/.kodi/temp > tail -f kodi.log
17:05:44 T:140561011390208 DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
17:05:44 T:140561011390208 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanFinished
17:05:44 T:140561470638016 DEBUG: CGUIMediaWindow::GetDirectory (videodb://movies/titles/)
17:05:44 T:140561470638016 DEBUG: ParentPath = [videodb://movies/titles/]
17:05:44 T:140561011390208 DEBUG: RunQuery took 0 ms for 11 items query: select * from movie_view
17:05:44 T:140560635512576 NOTICE: Thread BackgroundLoader start, auto delete: false
17:05:44 T:140560635512576 DEBUG: Thread BackgroundLoader 140560635512576 terminating
17:05:44 T:140561470638016 DEBUG: ------ Window Init (Pointer.xml) ------
17:05:44 T:140561470638016 DEBUG: ------ Window Deinit (Pointer.xml) ------
17:05:44 T:140561470638016 DEBUG: ------ Window Deinit (DialogExtendedProgressBar.xml) ------
17:05:48 T:140561470638016 DEBUG: ------ Window Init (Pointer.xml) ------
17:05:50 T:140561470638016 DEBUG: ------ Window Deinit (Pointer.xml) ------
17:05:50 T:140561470638016 DEBUG: ProcessMouse: trying mouse action leftclick
17:05:50 T:140561470638016 DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
17:05:50 T:140561011390208 NOTICE: VideoInfoScanner: Starting scan ..
17:05:50 T:140561011390208 DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
17:05:50 T:140561011390208 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanStarted
17:05:50 T:140561011390208 DEBUG: VideoInfoScanner: Skipping dir '/home/perthi/Movies/' due to no change (fasthash)
17:05:50 T:140561011390208 DEBUG: VideoInfoScanner: Scanning dir '/home/perthi/Movies/Valkyrie (2008)/' as not in the database
17:05:50 T:140561011390208 DEBUG: VideoInfoScanner: No NFO file found. Using title search for '/home/perthi/Movies/Valkyrie (2008)/valkyrie.iso'
17:05:50 T:140561011390208 DEBUG: FindMovie: Searching for 'Valkyrie' using The Movie Database scraper (path: '/usr/share/kodi/addons/metadata.themoviedb.org', content: 'movies', version: '3.8.3')
17:05:50 T:140561011390208 DEBUG: scraper: CreateSearchUrl returned <url>http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=Valkyrie&year=2008&language=en</url>
17:05:50 T:140561011390208 DEBUG: CurlFile::Open(0x7fd6c4014080) http://api.tmdb.org/3/search/movie?api_k...anguage=en
17:05:50 T:140561011390208 DEBUG: Curl:ebug - TEXT: Hostname was NOT found in DNS cache
17:05:50 T:140561470638016 DEBUG: ------ Window Init (Pointer.xml) ------
17:05:50 T:140560652297984 NOTICE: Thread JobWorker start, auto delete: true
17:05:51 T:140561470638016 DEBUG: ------ Window Deinit (Pointer.xml) ------
17:06:00 T:140561011390208 DEBUG: Curl:ebug - TEXT: Resolving timed out after 10148 milliseconds
17:06:00 T:140561011390208 ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
17:06:00 T:140561011390208 ERROR: CCurlFile::Open failed with code 0 for http://api.tmdb.org/3/search/movie?api_k...anguage=en
17:06:05 T:140561011390208 DEBUG: Curl:ebug - TEXT: Closing connection 6
17:06:05 T:140561011390208 ERROR: Run: Unable to parse web site
17:06:05 T:140561470638016 DEBUG: ------ Window Init (DialogYesNo.xml) ------
</pre>
If I run the associated CURL command from the command line it doesnt work if I just copy and past what Kodi does, but only if I enclose the command in single quotes
i.e
<pre>
curl -v 'http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=Valkyrie&year=2008&language=en'
</pre>
I have problem that has been bugging me for a couple of weeks. After rippeing a lot of DVDs and using kodi for the first time
i want to use the movie scraper and the TheMovieDatabase.
However the scraper does not seesm to work when I run it fro Kodi, I suspect the problem is that KOdi doesnt wrap the CURL command in single quotes, but im not sure, and in any case I dont know how to fix it.
I get this message (with debugging turned on)
<pre>
perthi@perthi-mint:~/.kodi/temp > tail -f kodi.log
17:05:44 T:140561011390208 DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
17:05:44 T:140561011390208 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanFinished
17:05:44 T:140561470638016 DEBUG: CGUIMediaWindow::GetDirectory (videodb://movies/titles/)
17:05:44 T:140561470638016 DEBUG: ParentPath = [videodb://movies/titles/]
17:05:44 T:140561011390208 DEBUG: RunQuery took 0 ms for 11 items query: select * from movie_view
17:05:44 T:140560635512576 NOTICE: Thread BackgroundLoader start, auto delete: false
17:05:44 T:140560635512576 DEBUG: Thread BackgroundLoader 140560635512576 terminating
17:05:44 T:140561470638016 DEBUG: ------ Window Init (Pointer.xml) ------
17:05:44 T:140561470638016 DEBUG: ------ Window Deinit (Pointer.xml) ------
17:05:44 T:140561470638016 DEBUG: ------ Window Deinit (DialogExtendedProgressBar.xml) ------
17:05:48 T:140561470638016 DEBUG: ------ Window Init (Pointer.xml) ------
17:05:50 T:140561470638016 DEBUG: ------ Window Deinit (Pointer.xml) ------
17:05:50 T:140561470638016 DEBUG: ProcessMouse: trying mouse action leftclick
17:05:50 T:140561470638016 DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
17:05:50 T:140561011390208 NOTICE: VideoInfoScanner: Starting scan ..
17:05:50 T:140561011390208 DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
17:05:50 T:140561011390208 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanStarted
17:05:50 T:140561011390208 DEBUG: VideoInfoScanner: Skipping dir '/home/perthi/Movies/' due to no change (fasthash)
17:05:50 T:140561011390208 DEBUG: VideoInfoScanner: Scanning dir '/home/perthi/Movies/Valkyrie (2008)/' as not in the database
17:05:50 T:140561011390208 DEBUG: VideoInfoScanner: No NFO file found. Using title search for '/home/perthi/Movies/Valkyrie (2008)/valkyrie.iso'
17:05:50 T:140561011390208 DEBUG: FindMovie: Searching for 'Valkyrie' using The Movie Database scraper (path: '/usr/share/kodi/addons/metadata.themoviedb.org', content: 'movies', version: '3.8.3')
17:05:50 T:140561011390208 DEBUG: scraper: CreateSearchUrl returned <url>http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=Valkyrie&year=2008&language=en</url>
17:05:50 T:140561011390208 DEBUG: CurlFile::Open(0x7fd6c4014080) http://api.tmdb.org/3/search/movie?api_k...anguage=en
17:05:50 T:140561011390208 DEBUG: Curl:ebug - TEXT: Hostname was NOT found in DNS cache
17:05:50 T:140561470638016 DEBUG: ------ Window Init (Pointer.xml) ------
17:05:50 T:140560652297984 NOTICE: Thread JobWorker start, auto delete: true
17:05:51 T:140561470638016 DEBUG: ------ Window Deinit (Pointer.xml) ------
17:06:00 T:140561011390208 DEBUG: Curl:ebug - TEXT: Resolving timed out after 10148 milliseconds
17:06:00 T:140561011390208 ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
17:06:00 T:140561011390208 ERROR: CCurlFile::Open failed with code 0 for http://api.tmdb.org/3/search/movie?api_k...anguage=en
17:06:05 T:140561011390208 DEBUG: Curl:ebug - TEXT: Closing connection 6
17:06:05 T:140561011390208 ERROR: Run: Unable to parse web site
17:06:05 T:140561470638016 DEBUG: ------ Window Init (DialogYesNo.xml) ------
</pre>
If I run the associated CURL command from the command line it doesnt work if I just copy and past what Kodi does, but only if I enclose the command in single quotes
i.e
<pre>
curl -v 'http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&query=Valkyrie&year=2008&language=en'
</pre>