home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Trying to load videoinfo from xml file
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Pawwlik" data-source="post: 552370" data-attributes="member: 12885"><p>Hello, </p><p></p><p>I was requested by many users (and there are many topics in this forum requesting this) to add some very simple support to myVideos for displaying movie plot text and fanart background without Moving Pictures or myTVSeries support, so no plugins or other crap. Just to load specially named files in the movie directory, stored along with the movie.</p><p></p><p>The idea was simple - as the MP has built-in suport for #selectedthumb varible, containing possible existing MovieName.tbn thumbnail and displaying it, I was able to extend the functionality for fanart background by adding for example this code to myvideo.xml:</p><p></p><p> <!-- added support for background picture --></p><p> <control></p><p> <description>BG</description></p><p> <type>image</type></p><p> <id>1</id></p><p> <posX>0</posX></p><p> <posY>0</posY></p><p> <width>1366</width></p><p> <height>768</height></p><p> <texture>#selectedthumb.background</texture></p><p> <colorkey>0</colorkey></p><p> <colordiffuse>ffbbbbbb</colordiffuse><!-- dim the image a bit --></p><p> <filtered>no</filtered></p><p> <centered>no</centered></p><p> <keepaspectratio>no</keepaspectratio></p><p> <visible>yes</visible></p><p> </control></p><p></p><p>In this case the MovieName.tbn.background (renamed jpeg) file will be automatically displayed as a myVideos background when pointing to MovieName file even in the Shares view. </p><p></p><p>My next (and probably last) point is, to display a movie plot text from a xml file stored as well in the movie folder. </p><p></p><p>My idea was to create a label (or whatever) and load a content with an import command from a simple xml file containing only a <define> command, something like:</p><p></p><p><import>#selectedthumb.xml</import> (in myvideo.xml load xml file named MovieName.tbn.xml)</p><p></p><p>containing for example:</p><p></p><p><define>#plot:movie description text</define></p><p></p><p>and in myvideo.xml use something like:</p><p></p><p> <!-- added support for plot xml --></p><p> <control></p><p> <description>General Plot</description></p><p> <type>label</type></p><p> <id>1</id></p><p> <posX>500</posX></p><p> <posY>655</posY></p><p> <width>400</width></p><p> <font>font14</font></p><p> <align>right</align></p><p> <label>#plot</label></p><p> <textcolor>White</textcolor></p><p> </control></p><p></p><p>That's all nice, but this does not work and I have no idea why. I created a test xml in the skin folder and if I write the <define>#plot:blabla</define> line directly in the myvideo.xml, it works, label displays the "blabla" correctly, but I'm not able to load the same statement by the <import> command.</p><p></p><p>Do you have any idea why this does not work and how to solve?</p><p></p><p>Thanks and sorry, if this question do not fits in this General Development subforum, I had no idea where to ask <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Pawwlik, post: 552370, member: 12885"] Hello, I was requested by many users (and there are many topics in this forum requesting this) to add some very simple support to myVideos for displaying movie plot text and fanart background without Moving Pictures or myTVSeries support, so no plugins or other crap. Just to load specially named files in the movie directory, stored along with the movie. The idea was simple - as the MP has built-in suport for #selectedthumb varible, containing possible existing MovieName.tbn thumbnail and displaying it, I was able to extend the functionality for fanart background by adding for example this code to myvideo.xml: <!-- added support for background picture --> <control> <description>BG</description> <type>image</type> <id>1</id> <posX>0</posX> <posY>0</posY> <width>1366</width> <height>768</height> <texture>#selectedthumb.background</texture> <colorkey>0</colorkey> <colordiffuse>ffbbbbbb</colordiffuse><!-- dim the image a bit --> <filtered>no</filtered> <centered>no</centered> <keepaspectratio>no</keepaspectratio> <visible>yes</visible> </control> In this case the MovieName.tbn.background (renamed jpeg) file will be automatically displayed as a myVideos background when pointing to MovieName file even in the Shares view. My next (and probably last) point is, to display a movie plot text from a xml file stored as well in the movie folder. My idea was to create a label (or whatever) and load a content with an import command from a simple xml file containing only a <define> command, something like: <import>#selectedthumb.xml</import> (in myvideo.xml load xml file named MovieName.tbn.xml) containing for example: <define>#plot:movie description text</define> and in myvideo.xml use something like: <!-- added support for plot xml --> <control> <description>General Plot</description> <type>label</type> <id>1</id> <posX>500</posX> <posY>655</posY> <width>400</width> <font>font14</font> <align>right</align> <label>#plot</label> <textcolor>White</textcolor> </control> That's all nice, but this does not work and I have no idea why. I created a test xml in the skin folder and if I write the <define>#plot:blabla</define> line directly in the myvideo.xml, it works, label displays the "blabla" correctly, but I'm not able to load the same statement by the <import> command. Do you have any idea why this does not work and how to solve? Thanks and sorry, if this question do not fits in this General Development subforum, I had no idea where to ask :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Trying to load videoinfo from xml file
Contact us
RSS
Top
Bottom