Can't import from MyMovies any more... (1 Viewer)

JACOB B

Portal Pro
September 3, 2008
81
7
Home Country
Denmark Denmark
Hi RoChess,
I am not having much luck :confused: (The problem is with DVD rips to VIDEO_TS folder structure. .mkv, .avi and .ts movie files placed in movie folder works perfect)
I have tried to change the script as you indicated above. Below I have inserted part of the script. I have underlined the three places I have tried something. I have tried replacing only the first "${filename}" with "movie". I have tried replacing the first and second one. And I have tried replacing all three.
Nothing works. And it kills the working of the non-VIDEO_TS folder scrapping as well...
I have also tried renaming the movie.nfo to VIDEO_TS.nfo. That does not work either.

What DOES WORK is moving the movie.nfo file from the VIDEO_TS folder to the movie parent folder, and renaming it to VIDEO_TS.nfo. That seems to indicate that the script is looking the wrong place for the nfo file when it is a VIDEO_TS folder structure...?
The XBMC wiki is "quite" clear - the nfo files should be in the VIDEO_TS folder: http://wiki.xbmc.org/index.php?title=Import-export_library

Video nfo Files containing XML data

1. The *.nfo file is an XML file containing the data for inclusion in the library.
Movies

movie.nfo will override all and any nfo files in the same folder as the media files if you use the "Use foldernames for lookups" setting. If you don't, then moviename.nfo is used. If there is only one nfo file in a folder, The scraper will use it for all media files in that folder. If there are multiple media files in a folder, the *.nfo should be named exactly the same as the video file it is representing (ie. moviename.avi and moviename.nfo). In the case of multi-part (stacked) video stacking, name the file either moviename.nfo or moviename-CD1.nfo where the first filename ismoviename-CD1.avi. Note, if your movie is ripped as VOB's and stored in a 'VIDEO_TS' folder, you will have to name the file 'VIDEO_TS.nfo' and place it in the same directory with the VIDEO_TS.ifo file.

From XBMC script:

</details>

<action name="search">
<set name="rx_file_check">
<![CDATA[
<movie[^>]*>
]]>
</set>

<set name="filename" value="${search.basepath}\${search.filename_noext}" />

<retrieve name="file" file="${filename}.nfo" encoding="UTF-8" />
<parse name="fileCheck" input="${file}" regex="${rx_file_check}" />
<if test='${fileCheck[0]}!='>
<parse name="result" input="${file}" xpath="//movie" />

<set name="movie[0].title" value="${result[0].title}" />

<!-- by setting the alternative title to the search title we garantee a match-->
<set name="movie[0].alternate_titles" value="|${search.title}|" />

<set name="movie[0].year" value="${result[0].year}" />
<set name="movie[0].popularity" value="100" />
<set name='movie[0].imdb_id' value='${result[0].id}' />

<!-- we set the filename as the site id -->
<set name="movie[0].site_id" value="${filename}" />
</if>
</action>

<action name="get_details">
<if test='${movie.site_id}!='>
<set name="rx_genres">
<![CDATA[
(?<genres>[^/]+)/
]]>
</set>

<set name="rx_imdb">
<![CDATA[
(?<imdb>tt\d{7})
]]>
</set>

<retrieve name="file" file="${movie.site_id}.nfo" encoding="UTF-8" />
<parse name="result" input="${file}" xpath="//movie" />


PLEASE HELP!
:notworthy:
Jacob
 
Last edited:

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    ${filename} is a var name, it is 'set' to a value via the following line:

    <set name="filename" value="${search.basepath}\${search.filename_noext}" />

    What it does there is create ${filename} and make it "${search.basepath}\${search.filename_noext}", which MovPic corresponds to "X:\Folder\Movie\filename" depending on the ${search.xxxxxxx} values passed on to the scraper-script on the new media match found.

    After that this value is then used via:

    <retrieve name="file" file="${filename}.nfo" encoding="UTF-8" />

    To actually read/open the file and make the contents available via ${file}.
    More info on how scraper-scripts work is available at: http://moving-pictures.tv/wiki/Scraper_Scripts

    If you can provide me with a scraper-debug enabled log file, so I can see what ${search.basepath} matches for your system and what folder location you have actually placed the NFO file at, then I can be of more assistance. Until I got my new workstation up and running I can not recreate your situation on here to test, so you will have to provide the super-detailed log files containing the info I need.

    Or happy coding if you decide to solve it yourself.
     

    JACOB B

    Portal Pro
    September 3, 2008
    81
    7
    Home Country
    Denmark Denmark
    Hi RoChess,
    I have been ignoring my problem for a while, but it still exists.
    As I wrote in the post above, the MovingPictures' xbmc nfo file scraper does not follow the xmbc nfo protocol I linked to.
    In other words, with a vob rip, the nfo file should be in the VIDEO_TS folder (which mine are), but MovingPictures looks in the movie's parent folder instead (Instead of looking for VIDEO_TS.nfo in \\server\movies\Iron Man\VIDEO_TS\, it looks for VIDEO_TS.nfo in \\server\movies\Iron Man\

    If the nfo file is named movie.nfo (which is the MyMovies nfo export default), the MP scraper still ignores it even in \\server\movies\Iron Man\
    Normally, the scraper should look for "moviename.nfo", but if only one nfo file is present, it should accept any name...?

    Best,
    Jacob
     

    Users who are viewing this thread

    Top Bottom