2010-06-22, 06:32
Hi guys
I would really appreciate some help debugging my cleanstrings entry in advancedsettings.xml.
By my understanding, cleanstrings is used to extract a useful search string from a filename for the purpose of scraping, by removing unwanted characters. Let me know if I've got the wrong idea here.
My problem is that I have a lot of movie series named with the convention seriesname - ## - moviename.xxx and high definition movies with a [HD] flag at the start of the filename.
This really seems to confuse the scraper, and for obvious reasons I wanted to avoid renaming all of the files. So I was relieved when I read about advancedsettings.xml and cleanstrings.
At first I tried using a more general expression but when that didn't work, I wanted to see if I could confirm it working for a specific string. So I have moved my james bond films into a subfolder and repeatedly added and removed the folder using different cleanstrings expressions, but it hasn't worked once. I have pasted some extracts of the important parts from xbmc.log below (with debugging on).
So you can see that it correctly loads the advanced settings file. But when the search is done, the part I wanted to remove is still in the string. I used the simplest possible expression, so I can't see what I could have done wrong unless I completely misunderstood something.
Thanks in advance for your help
I would really appreciate some help debugging my cleanstrings entry in advancedsettings.xml.
By my understanding, cleanstrings is used to extract a useful search string from a filename for the purpose of scraping, by removing unwanted characters. Let me know if I've got the wrong idea here.
My problem is that I have a lot of movie series named with the convention seriesname - ## - moviename.xxx and high definition movies with a [HD] flag at the start of the filename.
This really seems to confuse the scraper, and for obvious reasons I wanted to avoid renaming all of the files. So I was relieved when I read about advancedsettings.xml and cleanstrings.
At first I tried using a more general expression but when that didn't work, I wanted to see if I could confirm it working for a specific string. So I have moved my james bond films into a subfolder and repeatedly added and removed the folder using different cleanstrings expressions, but it hasn't worked once. I have pasted some extracts of the important parts from xbmc.log below (with debugging on).
Code:
14:12:20 T:3924 M:2603417600 NOTICE: Loaded advancedsettings.xml from special://profile/advancedsettings.xml
14:12:20 T:3924 M:2603413504 NOTICE: Contents of special://profile/advancedsettings.xml are...
[b]<advancedsettings>
<video>
<cleanstrings>
<regexp>(007 - .. - )</regexp>
</cleanstrings>
</video>
</advancedsettings>[/b]
14:13:31 T:2284 M:2579779584 DEBUG: No NFO file found. Using title search for '[u][b]I:\videos\movies2\james bond\007 - 01 - Dr. No [1962].mkv[/b][/u]'
14:13:31 T:3284 M:2579775488 DEBUG: thread start, auto delete: 0
14:13:31 T:3284 M:2579775488 DEBUG: Thread 3284 terminating
14:13:31 T:2284 M:2579738624 DEBUG: CIMDB::InternalFindMovie: Searching for '[u][b]007 - 01 - dr. no[/b][/u]' using themoviedb.org scraper (file: 'tmdb.xml', content: 'movies', language: 'en', date: '2009-11-11', framework: '1.1')
14:13:42 T:2284 M:2578227200 DEBUG: No NFO file found. Using title search for '[u][b]I:\videos\movies2\james bond\007 - 02 - From Russia With Love [1963].mkv[/b][/u]'
14:13:42 T:2284 M:2578227200 DEBUG: CIMDB::InternalFindMovie: Searching for '[u][b]007 - 02 - from russia with love[/b][/u]' using themoviedb.org scraper (file: 'tmdb.xml', content: 'movies', language: 'en', date: '2009-11-11', framework: '1.1')
14:13:42 T:2284 M:2578313216 DEBUG: No NFO file found. Using title search for '[u][b]I:\videos\movies2\james bond\007 - 03 - Goldfinger [1964].mkv[/b][/u]'
14:13:42 T:2284 M:2578313216 DEBUG: CIMDB::InternalFindMovie: Searching for '[u][b]007 - 03 - goldfinger[/b][/u]' using themoviedb.org scraper (file: 'tmdb.xml', content: 'movies', language: 'en', date: '2009-11-11', framework: '1.1')
So you can see that it correctly loads the advanced settings file. But when the search is done, the part I wanted to remove is still in the string. I used the simplest possible expression, so I can't see what I could have done wrong unless I completely misunderstood something.
Thanks in advance for your help