Hi RoChess,
I am not having much luck (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
From XBMC script:
PLEASE HELP!
Jacob
I am not having much luck (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!
Jacob
Last edited: