media flag not working
#1
Question 
I have this file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <id>tt0212720</id>
  <title>Artificial Intelligence: AI </title>
  <originaltitle />
  <year>2001</year>
  <rating>6.9</rating>
  <votes>79,113</votes>
  <mpaa>Rated PG-13 for some sexual content and violent images.</mpaa>
  <top250 />
  <outline>A highly advanced robotic boy longs to become "real" so that he can regain the love of his human mother. </outline>
  <plot>In the not-so-far future the polar ice caps have melted and the resulting raise of the ocean waters has drowned all the coastal cities of the world. Withdrawn to the interior of the continents, the human race keeps advancing, reaching to the point of creating realistic robots (called mechas) to serve him. One of the mecha-producing companies builds David, an artificial kid which is the first to have real feelings, especially a never-ending love for his "mother", Monica. Monica is the woman who adopted him as a substitute for her real son, who remains in cryo-stasis, stricken by an incurable disease. David is living happily with Monica and her husband, but when their real son returns home after a cure is discovered, his life changes dramatically.</plot>
  <tagline>David is 11 years old. He weighs 60 pounds. He is 4 feet, 6 inches tall. He has brown hair. His love is real. But he is not. </tagline>
  <trailer />
  <certification>USA:PG-13</certification>
  <genre>Adventure / Drama / Sci-Fi</genre>
  <studio>Warner Bros. Pictures / dvd</studio>
  <studioreal>Warner Bros. Pictures</studioreal>
  <runtime>146 min </runtime>
  <releasedate />
  <premiered />
  <director>Steven Spielberg</director>
  <credits>Brian Aldiss / Ian Watson</credits>
  <playcount />
  <watched>no</watched>
  <file />
  <path />
  <filenameandpath />
  <status />
  <thumb />
  <fanart url="http://www.themoviedb.org/">
    <thumb preview="http://images.themoviedb.org/backdrops/2498/tt0212720-1_thumb.jpg">http://images.themoviedb.org/backdrops/2498/tt0212720-1.jpg</thumb>
    <thumb preview="http://images.themoviedb.org/backdrops/3122/tt0212720_thumb.jpg">http://images.themoviedb.org/backdrops/3122/tt0212720.jpg</thumb>
    <thumb preview="http://images.themoviedb.org/backdrops/9335/A.I._1920x1080_thumb.jpg">http://images.themoviedb.org/backdrops/9335/A.I._1920x1080.jpg</thumb>
    <thumb preview="http://images.themoviedb.org/backdrops/14792/backdrop_thumb.jpg">http://images.themoviedb.org/backdrops/14792/backdrop.jpg</thumb>
  </fanart>
  <actor>
    <name>Haley Joel Osment</name>
    <role>David</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTUxMzE4NjkxMV5BMl5BanBnXkFtZTcwMDU3OTYyMQ@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>Frances O'Connor</name>
    <role>Monica Swinton</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjEzNTkxMjkyMl5BMl5BanBnXkFtZTcwNDE2OTQxMQ@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>Sam Robards</name>
    <role>Henry Swinton</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTQ4NjE3NjI5Ml5BMl5BanBnXkFtZTcwNzE5MjgyMg@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>Jake Thomas</name>
    <role>Martin Swinton</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTM3MzQ4OTI5OF5BMl5BanBnXkFtZTcwNTMzNTUyMQ@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>Jude Law</name>
    <role>Gigolo Joe</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMzY2MjQ4MDA5OV5BMl5BanBnXkFtZTcwMDcxNjQxMQ@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>William Hurt</name>
    <role>Prof. Hobby</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTk4NTkwMjg5M15BMl5BanBnXkFtZTcwNDM2NzYyMQ@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <fileinfo>
    <streamdetails>
      <video>
        <width>1900</width>
        <height>1200</height>
        <codec>MPEG-4 Visual</codec>
        <formatinfo>MPEG-4 Visual</formatinfo>
        <duration>5s 0ms</duration>
        <bitrate>327 Kbps</bitrate>
        <bitratemode />
        <bitratemax />
        <codecid>FMP4</codecid>
        <codecidinfo />
        <scantype>Progressive</scantype>
        <aspectdisplayratio>1.583</aspectdisplayratio>
      </video>
    </streamdetails>
  </fileinfo>
</movie>

as you can see:
<studio>Warner Bros. Pictures / dvd</studio>

so I would have expected to have the DVD logo in the media flags

while I have:

Image

can you help me understand what I-m doing wrong?

I even tried to destroy and recreate library, to reload movie details...

no result

thanks
mf
If you think I'm useful please use the +/- button to raise my reputation
Reply
#2
the source flag is taken from the filename, not the nfo file. also you need to use the sddvd tag not just dvd.
so you'll need to rename the movie to something like: Somemovie sddvd.avi

guess it wouldn't hurt to also read the guides ;-)
http://forum.xbmc.org/showthread.php?tid=50312
http://forum.xbmc.org/showthread.php?tid=50138
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
ronie Wrote:the source flag is taken from the filename, not the nfo file. also you need to use the sddvd tag not just dvd.
so you'll need to rename the movie to something like: Somemovie sddvd.avi

guess it wouldn't hurt to also read the guides ;-)
http://forum.xbmc.org/showthread.php?tid=50312
http://forum.xbmc.org/showthread.php?tid=50138

ronie,
thanks a lot!!!!! I was not able to find the threads anymore.... Smile and I missed the filename point!

now will start to rework them!
If you think I'm useful please use the +/- button to raise my reputation
Reply
#4
Second question: Can I add another flag in addition to SDDVD ?
I need offlineDVD so somthing like OFDVD ?

Is there any xml I have to mod ?
If you think I'm useful please use the +/- button to raise my reputation
Reply
#5
Yeah check the Includes_MediaFlags.xml file. The structure of the file is quite straight forward. You should figure it out by looking at how sddvd, bluray etc is implemented. Just copy & paste, adjust the path to the image and the substring XBMC needs to look for.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#6
Montellese Wrote:Yeah check the Includes_MediaFlags.xml file. The structure of the file is quite straight forward. You should figure it out by looking at how sddvd, bluray etc is implemented. Just copy & paste, adjust the path to the image and the substring XBMC needs to look for.

something link this?
Code:
                <control type="image" id="82">
                    <include>Furniture_EpisodeMediaFlags</include>
                    <texture>flags/sources/offlinedvd.png</texture>
                    <visible>substring(listitem.filename,offlinedvd)</visible>
                </control>
If you think I'm useful please use the +/- button to raise my reputation
Reply

Logout Mark Read Team Forum Stats Members Help
media flag not working0