How to send to the scrapper the file name (1 Viewer)

Dj_Moren

Portal Pro
November 7, 2009
171
25
Hi, first of all, sorry for my bad english, i'm from Spain.

The question i have is this: i'm adjusting a scrapper to my needs, because the actual scrapper sometimes receives the name bad. I've been searching for info here, in the FAQ and in Scraper Engine - Moving Pictures and i haven't seen the answer for my doubt. In the Scraper Engine - Moving Pictures site i have found the variables that are passed to the scrapper. The variable named ${search} is a collection of information, but this information is parsed previously. I mean that i want to be able to read in the parser the file's name exactly, and not start working with ${search.title} that comes previously parsed.

Is this possible? Exists any variable name that corresponds with the file name as is?

Thanks for your help.
 

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
43
Texas
Home Country
United States of America United States of America
You are looking for ${search.filename}, ${search.filename_noext} or ${search.clean_filename}. We also have ${search.basepath} and ${search.foldername}. Pretty sure all of these are only available in Moving Pictures 1.0. There is a full list here if you can parse out the relevent info from the C# code. Sorry for the slightly out of date wiki.
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Hi, first of all, sorry for my bad english, i'm from Spain.

    The question i have is this: i'm adjusting a scrapper to my needs, because the actual scrapper sometimes receives the name bad. I've been searching for info here, in the FAQ and in Scraper Engine - Moving Pictures and i haven't seen the answer for my doubt. In the Scraper Engine - Moving Pictures site i have found the variables that are passed to the scrapper. The variable named ${search} is a collection of information, but this information is parsed previously. I mean that i want to be able to read in the parser the file's name exactly, and not start working with ${search.title} that comes previously parsed.

    Is this possible? Exists any variable name that corresponds with the file name as is?

    Thanks for your help.

    In the source code you can see the following: ScriptableProvider.cs - moving-pictures - Project Hosting on Google Code

    So you have access to:

    • ${search.title}
    • ${search.keywords}
    • ${search.year}
    • ${search.imdb_id}
    • ${search.disc_id}
    • ${search.moviehash}
    • ${search.basepath}
    • ${search.foldername}
    • ${search.filename}
    • ${search.filename_noext}
    • ${search.clean_filename}

    PS: Once my workload is caught up, I'll wrap up my FAQ conversion to the wiki, and editing that scraper section to include this information is on the To-Do list as well. -- Wiki updated
     

    Users who are viewing this thread

    Top Bottom