{"id":86,"date":"2008-01-04T07:02:25","date_gmt":"2008-01-04T15:02:25","guid":{"rendered":"http:\/\/appletv.nanopi.net\/manual\/overriding-metada\/"},"modified":"2009-11-19T06:54:23","modified_gmt":"2009-11-19T13:54:23","slug":"overriding-metadata","status":"publish","type":"page","link":"https:\/\/appletv.nanopi.net\/manual\/overriding-metadata\/","title":{"rendered":"Overriding Metadata"},"content":{"rendered":"
There are times when you wish to override the metadata fetched from the internet with your own versions. Sapphire allows this through XML files. If you wish to override the metadata for a particular file, create an xml file in the same directory, with the same name except for the .xml extension, when Sapphire imports the data, it will also read the xml files, and use it to override all other data. For example, if you wished to override data for “300.avi”, you would create a file named “300.xml”. The format for the xml file is as follows:<\/p>\n
<media type=\"Movie\">\r\n <title>Title<\/title>\r\n <summary>Summary of Media<\/summary>\r\n <description>Description of Media<\/description>\r\n <copyright>Copyright<\/copyright>\r\n <userStarRating>5<\/userStarRating>\r\n <rating>TV-PG<\/rating>\r\n <published>2006-01-01<\/published>\r\n <genres>\r\n <genre primary=\"true\">Mystery<\/genre>\r\n <genre>Drama<\/genre>\r\n <\/genres>\r\n <cast>\r\n <name>Kristen Bell<\/name>\r\n <\/cast>\r\n <producers>\r\n <name>Rob Thomas<\/name>\r\n <\/producers>\r\n <directors>\r\n <name>Rob Thomas<\/name>\r\n <\/directors>\r\n<\/media><\/pre>\nThanks to Eric Steil III for this example<\/span><\/p>\n
Then, simply run the import tool, and Sapphire will read the data from this file.
\nNote: You do not need to complete every entry in this XML file. The data in this file is combined with data from other sources. If you wish to simply override a certain field, such as Title, make an XML file with only the Title entry, and the other fields will still remain as fetched from the internet.<\/p>\nA TV show would be like the following:<\/p>\n
<media type=\"TV Show\">\r\n <title>Title<\/title>\r\n <summary>Summary of Media<\/summary>\r\n <description>Description of Media<\/description>\r\n <userStarRating>5<\/userStarRating>\r\n <rating>TV-PG<\/rating>\r\n <seriesName>Veronica Mars<\/seriesName>\r\n <episodeNumber>101<\/episodeNumber>\r\n <season>1<\/season>\r\n <episode>1<\/episode>\r\n <secondEpisode>2<\/secondEpisode>\r\n <published>2006-01-01<\/published>\r\n<\/media><\/pre>\nIn addition, XML files can be used to direct the search for a movie or episode. The following defines all the search parameters. It also defines a time in which to capture a screenshot from the file itself (image capture doesn’t work on the AppleTV):<\/p>\n
<media>\r\n <searchSeason>1<\/searchSeason>\r\n <searchEpisode>1<\/searchEpisode>\r\n <searchSecondEpisode>2<\/searchSecondEpisode>\r\n <searchIMDB>111122<\/searchIMDB>\r\n <imageTime>1:34:54<\/imageTime>\r\n<\/media><\/pre>\nSearch terms can be combined with override terms in cases where the network fetched version is incorrect. For example, the order on TVRage for Firefly is incorrect, so the following fetches the correct info for each file and overrides the episode numbering (named Firefly.S01E09 Ariel.xml):<\/p>\n
<media>\r\n <searchEpisode>8<\/searchEpisode>\r\n <episode>9<\/episode>\r\n<\/media><\/pre>\n","protected":false},"excerpt":{"rendered":"There are times when you wish to override the metadata fetched from the internet with your own versions. Sapphire allows this through XML files. If you wish to override the metadata for a particular file, create an xml file in the same directory, with the same name except for the .xml extension, when Sapphire imports […]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":44,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/pages\/86"}],"collection":[{"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":3,"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/pages\/86\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/pages\/86\/revisions\/358"}],"up":[{"embeddable":true,"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/pages\/44"}],"wp:attachment":[{"href":"https:\/\/appletv.nanopi.net\/wp-json\/wp\/v2\/media?parent=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}