Hello,
I have a scraper which sometimes builds incorrect search url. Dharma Rc1 is used.
CreateSearchUrl is following:
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>http://yamsonline.com/component/content/?option=com_jmovies&Itemid=69&task=mov_search&movnme=\1&search_mov=Search</url>" dest="3">
<expression>(.*)</expression>
</RegExp>
</CreateSearchUrl>
I use folder name for lookups.
So for folder
a (1899)
Search url is correct
15:10:00 T:1472 M: 89997312 DEBUG: VideoInfoScanner: Scanning dir 'c:\tmp\scraper\a (1899)\' as not in the database
15:10:00 T:1472 M: 89985024 DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'c:\tmp\scraper\a (1899)\w.avi'
15:10:00 T:1472 M: 89939968 DEBUG: CIMDB::InternalFindMovie: Searching for 'a (1899)' using xxxxonline.com scraper (path: 'C:\Documents and Settings\i.dziuba\Application Data\XBMC\addons\metadata.xxxxonline.com', content: 'movies', version: '1.0.1')
15:10:00 T:1472 M: 89931776 DEBUG: scraper: CreateSearchUrl returned <url>http://xxxxonline.com/component/content/?option=com_jmovies&Itemid=69&task=mov_search&movnme=a%20%281899%29&search_mov=Search</url>
15:10:00 T:1472 M: 89866240 DEBUG: FileCurl::Open(042FEE2C) http://xxxxonline.com/component/content/...mov=Search
But for folder
a (1900)
Scraper engine cuts digits with brackets and only "a" is left.
15:12:57 T:4328 M: 92512256 DEBUG: VideoInfoScanner: Rescanning dir 'c:\tmp\scraper\a (1900)\' due to change (fast1290514352 != 900A7AC36EAD5613832270D4AEDB2BF4)
15:12:57 T:4328 M: 92499968 DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'c:\tmp\scraper\a (1900)\rt.avi'
15:12:57 T:4328 M: 92454912 DEBUG: CIMDB::InternalFindMovie: Searching for 'a' using xxxxonline.com scraper (path: 'C:\Documents and Settings\i.dziuba\Application Data\XBMC\addons\metadata.xxxxonline.com', content: 'movies', version: '1.0.1')
15:12:57 T:4328 M: 92442624 DEBUG: scraper: CreateSearchUrl returned <url>http://xxxxonline.com/component/content/?option=com_jmovies&Itemid=69&task=mov_search&movnme=a&search_mov=Search</url>
15:12:57 T:4328 M: 92377088 DEBUG: FileCurl::Open(03ECEE2C) http://xxxxonline.com/component/content/...mov=Search
This is true for numbers above 1900.
Numbers below 1900 work correctly.
Looks like a bug or not?
Thank you
CreateSearchUrl Error
idzjuba
Junior Member Posts: 3 Joined: Oct 2010 Reputation: 0 |
2010-11-23 15:22
Post: #1
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2010-11-23 15:25
Post: #2
not a bug. we assume it's the year and thus strip it off. it's avail in $$2. this is very useful for search engines that allows specifying it in a separate field.
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. |
| find quote |
idzjuba
Junior Member Posts: 3 Joined: Oct 2010 Reputation: 0 |
2010-11-23 15:54
Post: #3
spiff Wrote:not a bug. we assume it's the year and thus strip it off. it's avail in $$2. this is very useful for search engines that allows specifying it in a separate field. Thanks for reply. Now it is clear. But could you advise how to add ($$2 ) to search url only if it is set. I tried "conditional" statement but failed. Thanks |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2010-11-23 15:59
Post: #4
basically do both then copy the one you want to the resulting buffer
Code: <RegExp input="$$1" output="url \1 ($$2)" dest="5">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.
(This post was last modified: 2010-11-23 16:03 by spiff.)
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2010-11-23 16:10
Post: #5
alternatively you can do something ala
Code: <RegExp input="$$1 ($$2)" output="\1" dest="1">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. |
| find quote |
idzjuba
Junior Member Posts: 3 Joined: Oct 2010 Reputation: 0 |
2010-11-23 17:02
Post: #6
spiff Wrote:alternatively you can do something ala Ok, good. Thanks a lot for your help! |
| find quote |

Search
Help