NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 8 9 10 11 12 … 93 Next »
Nfo

 
  • 0 Vote(s) - 0 Average
Nfo
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#1
2012-12-13, 01:15 AM
Whurlston to avoid hijacking a thread like we did to your YouTube post here is a nice annotated copy for movies

Code:
<movie>
    <title></title>
    <originaltitle></originaltitle>
    <sorttitle></sorttitle>
    <rating></rating>               <!-- 0 - 10 rating, can be decimal -->
    <ratings>
        <rating moviedb="imdb"></rating>
        <rating moviedb="allocine"></rating>
    </ratings>
    <year></year>
    <top250></top250>               <!-- the IMDB top 250 ranking, integer 1 - 250 or empty -->
    <votes></votes>                 <!-- currently unused in YAMJ -->
    <outline></outline>             <!-- a short plot description -->
    <plot></plot>                   <!-- a longer plot description -->
    <tagline></tagline>             <!-- The tagline for the movie -->
    <runtime></runtime>
    <premiered></premiered>         <!-- the release date of the movie -->
    <thumb></thumb>                 <!-- url of poster image. use URL formatting, such as http:// for internet resources or file:/// for local resources -->
    <fanart></fanart>               <!-- url of fanart image. use URL formatting, such as http:// for internet resources or file:/// for local resources -->
    <mpaa></mpaa>
    <certification></certification> <!-- Used for all certification that isn't MPAA and only used if imdb.getCertificationFromMPAA=false -->
    <playcount></playcount>         <!-- currently unused in YAMJ -->
    <watched></watched>             <!-- This will mark the movie watched or unwatched -->
    <id></id>                       <!-- the IMDB id of the movie. includes the leading "tt". Use an id of 0 or -1 to disable further internet plugin scraping. -->
    <id moviedb="allocine"></id>    <!-- the allocine id of the movie. This should work for other plugins using their PLUGIN_ID as "moviedb" value -->
    <id moviedb="filmweb"></id>     <!-- the filmweb id of the movie. This should work for other plugins using their PLUGIN_ID as "moviedb" value -->
    <filenameandpath></filenameandpath> <!-- currently unused since YAMJ determines path from searching the configured libraries -->
    <trailer></trailer>             <!-- multiple trailer records may exist -->
    <genre></genre>                 <!-- multiple genre records may exist, including any custom ones -->
    <credits>
        <writer></writer>           <!-- Writer name, one per entry -->
    </credits>
    <director></director>
    <company></company>             <!-- The studio company that produced the movie -->
    <studio></studio>               <!-- Synonym for company tag -->
    <country></country>             <!-- Country the video was produced in -->
    <actor>                         <!-- Multiple actor records may exist -->
        <name></name>
        <role></role>               <!-- Currently unused in YAMJ -->
    </actor>
    <sets>
      <set>First Set Name</set>
      <set order="?">Another Set With An Order</set>
    </sets>
<!-- NOTE: All of the following tags will OVERWRITE the derived data -->
    <videosource></videosource>     <!-- The video source of the file -->
    <videooutput></videooutput>     <!-- The video output of the file -->
    <fps></fps>                     <!-- The Frames Per Second value for the movie. NOTE: This should be a valid float value (with a ".") -->
    <fileinfo>
        <container></container>     <!-- Container of the video -->
        <streamdetails>
            <video>
                <codec></codec>
                <aspect></aspect>
                <width></width>     <!-- Width of the video file -->
                <height></height>   <!-- Height of the video file -->
            </video>
            <audio>
                <codec></codec>
                <language></language>
                <channels></channels>
            </audio>
            <subtitle>
                <language></language>
            </subtitle>
        </streamdetails>
    </fileinfo>
</movie>

You can use xsd to make a class for it.

Here is a full link http://wiki.xbmc.org/index.php?title=Imp...rt_library also note this one-liner is a valid nfo file

http://www.imdb.com/title/tt$#######

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2012-12-13, 01:37 AM
Thanks, the one liner didn't work for me in the Movies plugin. That xml is exactly what I need though. Do you happen to know the list of valid moviedb values?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#3
2012-12-13, 01:43 AM
You need to call their JSON v3 API. What do you need to do? If you can to want to create files outside NetPVR the easiest is to name your movies properly "Movie Title (Year)" and let a movie manager create the nfo for you.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#4
2012-12-13, 04:20 AM
I was thinking of creating the nfo files for downloaded YouTube videos and figured if I wrote a class for the nfo, I may as well include all the options.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#5
2012-12-13, 04:44 AM
Ok, since you were after the themoviedb ID I thought that you were trying to do something I could help with.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#6
2012-12-13, 05:41 AM
Ah, sorry. By "values", I meant are their any other values that there could be for the attribute tag:

Code:
<id></id>                       <!-- the IMDB id of the movie. includes the leading "tt". Use an id of 0 or -1 to disable further internet plugin scraping. -->
    <id moviedb="[b]allocine[/b]"></id>    <!-- the allocine id of the movie. This should work for other plugins using their PLUGIN_ID as "moviedb" value -->
    <id moviedb="[b]filmweb[/b]"></id>     <!-- the filmweb id of the movie. This should work for other plugins using their PLUGIN_ID as "moviedb" value -->
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#7
2012-12-13, 06:33 AM
Yes there are many scrapers that could be used especially for foreign language and specialty films. You could use your own YouTube reference yourself, if say you wanted to refresh it to get updated ratings etc.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode