nfo and sorting (1 Viewer)

bigmong

Portal Member
October 5, 2009
19
6
Home Country
Australia Australia
Hey,

This is a little like Sorting Behaviour Sequels

I have setup the following in my <movie file name>.nfo files,
<movie>
<title>Pirates of the Caribbean: At World's End</title>
<sorttitle>Pirates of the Caribbean 3</sorttitle>
<year>2007</year>
<id>tt0449088</id>
</movie>

but when i do the import i am getting "pirates of the caribbean at worlds end"

in my import setting i have only nfo scan and auto-approve on nfo, turned on and in my movie details data scorce i have
XBMC
themoviedb.org

im running Moving Pictures 1.0 Beta (i know it may have bugs :D)

or am i doing something wrong, the only reason i did all the nfo files was for the sort title and i didnt want to do it all manual

it does get teh Folder.jpg and Backdrop.jpg from the folder thow :)
 

armandp

Retired Team Member
  • Premium Supporter
  • April 6, 2008
    990
    620
    Zoetermeer
    Home Country
    Netherlands Netherlands
    the XBMC script does not fill the movie.sortby field (yet), we could maybe add that as an enhancement.
    You can already adapt the current XBMC script and add the following on this location:

    Code:
    <set name='movie.sortby' value='${result[0].sorttitle}' />

    after that it should be updated correctly.
     

    bigmong

    Portal Member
    October 5, 2009
    19
    6
    Home Country
    Australia Australia
    cool thanks,

    now i will see if i can figger out how to add that into the file :)
    :D
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    43
    Texas
    Home Country
    United States of America United States of America
    Sort by is actually auto generated by the plugin so anything a script sets for the sort by field will ultimately be ignored. We will need to modify Moving Pictures to allow a script to populate this field. Honestly though I am very wary of giving scraper scripts control over this. I am worried it will create inconsistent values in the sort by field. I can see how the NFO file scraper might be a special case though..
     

    bigmong

    Portal Member
    October 5, 2009
    19
    6
    Home Country
    Australia Australia
    Sort by is actually auto generated by the plugin so anything a script sets for the sort by field will ultimately be ignored. We will need to modify Moving Pictures to allow a script to populate this field. Honestly though I am very wary of giving scraper scripts control over this. I am worried it will create inconsistent values in the sort by field. I can see how the NFO file scraper might be a special case though..

    how about if there is a value in sort field in the NFO then use that but if NULL then use current rule :)
    this way i cant see any change unless u add that field to your NFO
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    43
    Texas
    Home Country
    United States of America United States of America
    The problem is the XBMC NFO scraper is a scraper script just like all the others. So unless we did something really cludgy, if we allowed one script to update the "sort by" field, we would have to allow all scripts to update the "sort by" field. And this worries me a great deal. This means that movies sorting would be inconsistent from user to user and if you used multiple data source, from movie to movie in one collection. This is a recipe for trouble.

    This doesn't even touch on the fact that the XBMC NFO file format does not contain a <sortby> node.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I'm still testing it myself, but what might work is the following:

    <movie>
    <title>Pirates of the Caribbean 3: At World's End</title>
    <year>2007</year>
    <id>tt0449088</id>
    </movie>

    the sortby field gets the same title and sorts the PotC series in the right order then. Or does the plugin ignore the title as well when it has the imdb id?
     

    bigmong

    Portal Member
    October 5, 2009
    19
    6
    Home Country
    Australia Australia
    from the bit of testing i have done if i it seems to over-rights the <title></title> with the info from IMDB or TheMovieDB and seems to skip the <id>tt0449088</id> field and try to use the <title></title> for a search witch is the file name at this time,

    unless i have something set wrong but as i figger it it should work like;

    Scan Dir
    - if <Name>.nfo Then
    - Read File
    -- If <id></id> is not Null Then
    -- Use all other nfo info and call the rest from the imdb id tag

    so the info in the nfo file should over-right all downloaded info
     

    Users who are viewing this thread

    Top Bottom