• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 21
[DOWNLOAD] Media Flag Updater
#46
yes Smile

i want to be able to use these nfo files
http://wiki.xbmc.org/?title=Import_-_Exp...ML_and_URL

that way i can set certain data in the xml part (like movie title) that don't change but the rest will be pulled from imdb which i want everytime i re-import to my db (stuff like votes and rating i wanted refreshed each time, not set in stone)

i've tried it and it works with xbmc .. last night i made some "clean" movie.nfo's for a select couple movies with MIP .. it added the filestream info and the studio tag .. plus a bunch of other stuff i didn't want .. i deleted all tags i didn't want .. just kept the filestream tags .. the movie tag .. and the studio tag .. imported into xbmc .. and it worked like a charm .. tags worked cause of the studio tag .. movie name got imported like the movie tag specified not what is on imdb.com and the rest got pulled from the internet .. just the way i wanted .. i was hoping i could use your program to make nice clean nfo files like that for all my movies cause i feel MIP is WAY to much for what i want it to do and your simple solution really seems more of what i want it to do

this is not a deal breaker though .. i can add the URL AFTER i run your program
Reply
#47
ok, sweet.

I wasn't aware of that posibility. You learn something new every day.

I will try to tell my application to ignore the last line of the nfo if it is an url.
Reply
#48
okay .. i ran it again .. after i took out URL at the end of movie.nfo

this time .. it renamed just the <moviename>.nfo file to <moviename>.nfo.old
and then crashed Sad

it didn't rename the movie.nfo but it also didn't write anything into it either
Reply
#49
mindweaver Wrote:ok, sweet.

I wasn't aware of that posibility. You learn something new every day.

I will try to tell my application to ignore the last line of the nfo if it is an url.

yeah .. its a nice combination of both worlds Smile

ideally i would want it to store more constant data (actors, MPAA rating, etc) .. but i could not get MIP to reliably pull stuff from imdb for me so for now i'm just gonna have it store title and maybe runtime if there are multiple version and i want to specify mine
Reply
#50
pletopia Wrote:okay .. i ran it again .. after i took out URL at the end of movie.nfo

this time .. it renamed just the <moviename>.nfo file to <moviename>.nfo.old
and then crashed Sad

it didn't rename the movie.nfo but it also didn't write anything into it either

Yeah, this might be because I have no routine that tells the program what to do when there is no <studio> tag in the movie.nfo. Will fix that aswell Smile
Reply
#51
okay .. one sec .. i'll add one and see what it does

[EDIT]okay .. ran .. no crash .. filled in the studio tag PARTIALLY .. <studio> / bluray / / 6ch / 720p</studio>[EDIT]

it missed that it has 2 audio tracks .. one french .. one english .. and that there are subtitles .. and that the audio is AC-3 on both tracks
Reply
#52
pletopia Wrote:okay .. one sec .. i'll add one and see what it does

[EDIT]okay .. ran .. no crash .. filled in the studio tag PARTIALLY .. <studio> / bluray / / 6ch / 720p</studio>[EDIT]

it missed that it has 2 audio tracks .. one french .. one english .. and that there are subtitles .. and that the audio is AC-3 on both tracks

Is there a media flag for audio track count?
Reply
#53
not count .. but it should add all tracks .. including subtitles

this is from an nfo that MIP made last night for me
<studio> / 1080p / AC-3 / 6ch / eng / subeng / subeng</studio>

AC-3 English 6ch .. and 2 english subtitles

in your prog .. you don't need to add the bluray .. cause the media scanner can't determine what the source is from the video stream itself .. so the solution is to pull that tag from file/folder name
Reply
#54
are you using the same dll to check the media file as MIP ??

if so would it be possible for your prog to add this also into the nfo like MIP does ??
(specifically i'm talking about whats between the streamdetails tags

Code:
<movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <fileinfo>
    <lastupdate>2009-04-02T21:33:21.812+02:00</lastupdate>
    <version>1.3</version>
    <streamdetails>
      <video>
        <width>1920</width>
        <height>800</height>
        <codec>h264</codec>
        <formatinfo>AVC</formatinfo>
        <duration>1h 36mn 26s 500ms</duration>
        <bitrate>10.7 Mbps</bitrate>
        <bitratemode />
        <bitratemax />
        <container>.mkv</container>
        <codecid>V_MPEG4/ISO/AVC</codecid>
        <codecidinfo />
        <scantype>Progressive</scantype>
        <aspectdisplayratio>2.400</aspectdisplayratio>
      </video>
      <audio>
        <language />
        <codec>AC-3</codec>
        <channels>6</channels>
        <bitrate>640 Kbps</bitrate>
      </audio>
    </streamdetails>
  </fileinfo>
  <title>JCVD </title>
  <studio> / 1080p / AC-3 / 6ch / </studio>
</movie>
Reply
#55
pletopia Wrote:not count .. but it should add all tracks .. including subtitles

this is from an nfo that MIP made last night for me
<studio> / 1080p / AC-3 / 6ch / eng / subeng / subeng</studio>

AC-3 English 6ch .. and 2 english subtitles

in your prog .. you don't need to add the bluray .. cause the media scanner can't determine what the source is from the video stream itself .. so the solution is to pull that tag from file/folder name

Ok, I will look into it. (havent tried any video files with multiple audio tracks yet)

I add bluray because of forward compability Smile you never know, might as well be in there.
Reply
#56
pletopia Wrote:are you using the same dll to check the media file as MIP ??

if so would it be possible for your prog to add this also into the nfo like MIP does ??
(specifically i'm talking about whats between the streamdetails tags

Code:
<movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <fileinfo>
    <lastupdate>2009-04-02T21:33:21.812+02:00</lastupdate>
    <version>1.3</version>
    <streamdetails>
      <video>
        <width>1920</width>
        <height>800</height>
        <codec>h264</codec>
        <formatinfo>AVC</formatinfo>
        <duration>1h 36mn 26s 500ms</duration>
        <bitrate>10.7 Mbps</bitrate>
        <bitratemode />
        <bitratemax />
        <container>.mkv</container>
        <codecid>V_MPEG4/ISO/AVC</codecid>
        <codecidinfo />
        <scantype>Progressive</scantype>
        <aspectdisplayratio>2.400</aspectdisplayratio>
      </video>
      <audio>
        <language />
        <codec>AC-3</codec>
        <channels>6</channels>
        <bitrate>640 Kbps</bitrate>
      </audio>
    </streamdetails>
  </fileinfo>
  <title>JCVD </title>
  <studio> / 1080p / AC-3 / 6ch / </studio>
</movie>

I could problably do that. How and where is that used?
Reply
#57
mindweaver Wrote:I could problably do that. How and where is that used?

i believe thats another way to "future proof" the nfo files .. i think Fekker said that he's hoping in the future when xbmc's library gets redone to store media info that structure in the nfo file can be used to pull the relevant data

another streamdetail with more subtitle tracks as an example
Code:
<streamdetails>
      <video>
        <width>1920</width>
        <height>800</height>
        <codec>h264</codec>
        <formatinfo>AVC</formatinfo>
        <duration>2h 5mn 54s 125ms</duration>
        <bitrate>8 019 Kbps</bitrate>
        <bitratemode />
        <bitratemax />
        <container>.mkv</container>
        <codecid>V_MPEG4/ISO/AVC</codecid>
        <codecidinfo />
        <scantype>Progressive</scantype>
        <aspectdisplayratio>2.400</aspectdisplayratio>
      </video>
      <audio>
        <language>eng</language>
        <codec>AC-3</codec>
        <channels>6</channels>
        <bitrate>640 Kbps</bitrate>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>eng</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <title>Iron Man</title>
  <studio> / 1080p / AC-3 / 6ch / eng / subeng / subeng</studio>

and another for shits and giggles Smile
Code:
<streamdetails>
      <video>
        <width>1280</width>
        <height>544</height>
        <codec>h264</codec>
        <formatinfo>AVC</formatinfo>
        <duration>2h 8mn 12s 708ms</duration>
        <bitrate>5 483 Kbps</bitrate>
        <bitratemode />
        <bitratemax />
        <container>.mkv</container>
        <codecid>V_MPEG4/ISO/AVC</codecid>
        <codecidinfo />
        <scantype>Progressive</scantype>
        <aspectdisplayratio>2.353</aspectdisplayratio>
      </video>
      <audio>
        <language>eng</language>
        <codec>DTS</codec>
        <channels>6</channels>
        <bitrate>1 536 Kbps</bitrate>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <title>007 (1999) The World Is Not Enough</title>
  <studio> / 720p / DTS / 6ch / eng / subeng</studio>
Reply
#58
Thanks, will do my best Smile
Reply
#59
New version (v0.1.063) added with the following fixes:

- Fixed: Only read between <movie> </movie> in .nfo and respect/re-append lines added below (i.e. imdb url)

- Fixed: If <studio> tag does not exist in .nfo, create it before trying to add flag values to it.

Try it out pletopia.


hmm I have to try and find a movie with multiple audio tracks.
Reply
#60
okay will do in a sec .. gf is on my windows machine right now Smile

you need a movie with multiple audio .. and one with multiple subs Wink
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 21

Logout Mark Read Team Forum Stats Members Help
[DOWNLOAD] Media Flag Updater2