Kodi Community Forum
[MOD] Workaround Media Flagging - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- Forum: Skins Support (/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (/forumdisplay.php?fid=179)
+----- Forum: Aeon MQ (/forumdisplay.php?fid=68)
+----- Thread: [MOD] Workaround Media Flagging (/showthread.php?tid=50138)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

[MOD] Workaround Media Flagging - krypt2nite - 2009-05-02 00:16


This small modification will give you the opportunity to enjoy Aeon's flagging capabilities. Full support for Movies and TV Shows.

Please see this thread for what is achievable. (Screenshots)
http://forum.xbmc.org/showthread.php?tid=50082 Movies/Showcase View
http://forum.xbmc.org/showpost.php?p=328315&postcount=6 TV Shows/MultiPlex View

Please don't post anymore individual threads on how to get flags working. There are plenty of threads ongoing related to the topic and it's easier on the forum to keep discussion and questions in those threads.
http://forum.xbmc.org/showthread.php?tid=50312 - Please post your questions on flagging in this or this links thread.
http://forum.xbmc.org/showthread.php?tid=48315 - Here is another great resource.

Bear in mind there isn't any official flagging support... yet. It is however being worked on and will be arriving sometime in the near future. Right now we have to resort to a clever work around. Developed by fekker, and DigitalHigh it involves using the wonderful media organizing program Media Info Plus.

Using MIP you have scan your library and let it insert movie information in to your Studio tag in the NFO. Djh_ then added the detection accordingly to Aeon Stark.

With all that being said it does involve some work on your part for something that will dissapear in the near future. It's either be patient and wait for the easy solution or enjoy the flagging now, but put some elbow grease in to it.

So, until official support arrives and makes this process easier I would still like to enjoy media flags. So whenever djh_ updates Includes_MediaFlags.xml I copy/paste my custom code back in to it. It's not that hard. Takes about 30 seconds. So as I update I'll provide my updated XML and flags accordingly.

Please note I take no responsibility for creating these flags. Users such as FernFerrert and Halibutt have worked hard to bring us a plethora of studio flags. All of the people who continue to provide content are to be thanked.

BIG PROPS go out to stoplis, Imaginos, ronie, andyblac, and DigitalHigh for their contributions to the overall package.

These files are confirmed to work up until this version of Aeon Auriga 06/08/2009

The Files:
Imaginos has a version that lets you customize the displaying and position of your flags. please go here to see what it's all about.

This is the direct download of Imaginos version.

Right click this file and save as.
Includes_MediaFlags.xml - 6/03 10:57pm MST

krypts_aeon_flags.zip - 6/03 10:57pm MST

To get optional TV support please download this.
MyVideoNav.xml - 6/07 6:44pm MST
Manual Installation: Add <include>Furniture_EpisodeMediaFlags</include> to the bottom of MyVideoNav.xml,
just below this line: <include condition="Skin.HasSetting(videomovies)">Furniture _ShowcaseMediaFlags</include>

Make sure you have Aeon Auriga installed.
Unzip the contents of krypts_aeon_flags.zip into your Aeon/media/flags directory.
Drag the Includes_MediaFlags.xml (and MyVideoNav.xml if you want TV support) in to your Aeon/720p directory. Please make a backup of your current Includes_MediaFlags.xml.

The flags will not overwrite any of the current default flags. Custom audio, source, and res are stored in the Custom folder. Studios are stored in the Studios folder. This makes keeping track of things easier. (Also helps us who git pull)

You should have 2 new folders in your "\XBMC\skin\aeon directory\media\flags\" folder.
[Image: mediafolder.png]

Who is this for?:
People who have diverse media collections, mostly encoded. Xvids, DivX, x264, etc.

I don't expect people to use my code and images exactly as is. Of course all our collections are different (which is a beautiful thing) so I'm really just trying to provide inspiration and ideas. If you have any feedback and/or issues with my code please let me know. Since I'm doing this with my collection I've gotten all 2000 movies to display the proper icons as I envision. However like I said your collections will be different. So with more information the community can come up with a overall default method that will work pretty well with everyone. Of course like said all this is temporary but when flagging is officially supported in XBMC the transition will be minute. Thanks for any contributions and feedback.

What You Get:
You will get detection and icons for over 200 different movie studios.

This will give you the same full detection in MultiPlex, Showcase amd List views.

You will get extra audio detection for those of you with diverse collections. Flac, OGG Vorbis, and my old AAC that I'm surprised nobody has found a better version of. Please take note also I like the old MP3 flag. You will have to remove /custom from the MPEG Audio code if you prefer the Default MP3 icon.

Better source detection:

For DVD you have to have either SDDVD, .iso or .ifo in your movies filename.
For Blu-Ray you need BLURAY, BLU-RAY, or BRRIP in your movies filename.
For HDDvd you need HDDVD in your movies filename.
For SDTV you need SDTV or TVRip in your movies filename.
For HDTV you need HDTV or PDTV in your movies filename.
For H264 you need to have V_MPEG4, AVC1 or H264 in the studio tag of your nfo. MIP does this.
For XVID you need to have XVID in the studio tag of your nfo. MIP does this.
For DIVX you need to have DivX, DX50, or DIV3 in your studio tag of your nfo. MIP does this.
For WMVHD you need WVC1 in your movies studio tag.

- krypt2nite - 2009-05-02 00:17

How do I get MIP to add metadata to my studio tag?

First download Media Info Plus. If you are serious about organizing your media (or are a tinkering collection geek, like myself) please download Fekker's great program. Now once you have it installed and are ready to start scanning your movies please check this setting first.
[Image: mip2.png]

This will make MIP add the proper flagging metadata to your studio tag. So in your movie nfo you should have a <studio> tag similar to this one:

<studio>Warner Bros. Pictures / 720p / V_MPEG4/ISO/AVC / DTS / 6ch / / subeng / micd1 / mifc1</studio>

Here are some ideas to give people inspiration or ideas to customize their own media collection.

Most of this is easily accomplished by editing the Studio tag manually using MIP. (Take note that fekker currently has MIP showing the studio tag as skin tag)
[Image: mip.png]

You can also edit the files mygenres.xml and mystudios.xml located in MIP's base directory. This will allow you to easily select your own custom genres and flags using MIP. You can take a Sunday afternoon and have some fun going through your collection and getting it customized to your liking.

Please if anyone has any suggestions or flag ideas please let me know. I welcome all ideas and inspiration.

Want to add a 007 icon to your James Bond collection? Add "James Bond" to your Skin tag for genre.
[Image: bond-flags.png]

Would you like to add a DC Comics flag to the DC Comics themed movies? Add "DC Comics" to your Skin tag for genre.
For added appeal add a custom genre to all your "Comic Book" movies. I use Super Hero and it's cool to see all the movies together.
[Image: dc-flags.png]

- ronie - 2009-05-02 01:33

Thanx! These make a nice addition to the ones i already had.
I noticed a small typo for the dolbytruehd flag in the .xml file:

- ppic - 2009-05-02 01:56


- krypt2nite - 2009-05-02 02:06

ronie Wrote:Thanx! These make a nice addition to the ones i already had.
I noticed a small typo for the dolbytruehd flag in the .xml file:

Thanks for the heads up. Fixed.

- krypt2nite - 2009-05-02 08:06

TV Shows Flagging

[Image: image2.png]

[Image: image3.png]

[Image: image4.png]

- Advocate - 2009-05-02 08:57

I've replaced the necessary files and are still getting question marks for the flags is there anything else I need to do?

[EDIT] I had a look in the .nfo file for Prison Break (no MIP for Macs Sad ) and noticed the <studio> tag was blank so added the studio (Fox) and then refreshed the series in xbmc.....still no flag showing Sad Can you shed any light on this? [/EDIT]

- krypt2nite - 2009-05-02 09:03

Advocate Wrote:I've replaced the necessary files and are still getting question marks for the flags is there anything else I need to do?

Have you scanned your media using Media Info Plus? Did you also select the correct settings?

[Image: mip2.png]

If you did all this already, then did you re-scan your library?

I'm pretty sure it's because MIP adds net in front of the studio. If you add net in front of your FOX i.e. netFOX it should work. Also for tv shows you have to put the information in the director tag. i.e. <director>|Phil Alden Robinson| / netHBO / TV-MA / / 720p / V_MPEG4/ISO/AVC / DTS / 6ch / eng / subeng</director>

Here is an example of what a TV episode NFO scanned with MIP looks like
<?xml version="1.0" encoding="utf-8"?>
<episodedetails xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <duration>1h 13mn 9s 41ms</duration>
        <bitrate>6 641 Kbps</bitrate>
        <bitratemode />
        <bitratemax />
        <codecidinfo />
        <bitrate>1 536 Kbps</bitrate>
  <plot>July 1942 - 5th June 1944
Meet Easy Company, 506th Battalion, 101st Airborne Corps. Trained to be dropped behind enemy lines and cause maximum disruption, their training takes them from Camp Toccoa in Georgia to Upottery in England. From here they join the AEF (Allied Expeditionary Force) during Operation Overlord.The Company leader, Captain Herbert Sobel (David Schwimmer) clashes with Lt Richard D. Winters. The sadistic Sobel enjoys putting the trainees through their paces which will ultimately build their confidence and make them the toughest team in the Airborne. Whilst Sobel commands Easy Company, Winters has the men's respect. Also the men enjoy playing practical jokes on Sobel. When Sobel brings Winters up on Court Martial charges it results in Sobel being transferred out of Easy Company and Winters remaining with Easy Company.

On 6th June 1944, Easy Company and the rest of the 101st and 82nd Airborne Divisions board their C-47s and head for Normandy joining the largest naval invasion fleet in history.</plot>
  <watched />
  <credits>/Erik Jendreson/Tom Hanks/</credits>
  <director>|Phil Alden Robinson| / netHBO / TV-MA /  / 720p / V_MPEG4/ISO/AVC / DTS / 6ch / eng / subeng</director>
    <name>Damian Lewis</name>
    <role>Major Richard Winters</role>
    <name>Dale Dye</name>
    <role>Col. Robert Sink</role>
    <name>Dexter Fletcher</name>
    <role>SSgt. John Martin</role>
    <name>Donnie Wahlberg</name>
    <role>2nd Lt. C. Carwood Lipton</role>
    <name>James Madio</name>
    <role>Sgt. Frank Perconte</role>
    <name>James McAvoy</name>
    <role />
    <name>Kirk Acevedo</name>
    <role>SSgt. Joseph Toye</role>
    <name>Matthew Leitch</name>
    <role>SSgt. Floyd 'Tab' Talbert</role>
    <name>Matthew Settle</name>
    <role>Capt. Ronald Speirs</role>
    <name>Neal McDonough</name>
    <role>1st Lt. Lynn 'Buck' Compton</role>
    <name>Nicholas Aaron</name>
    <role>Pvt. Robert 'Popeye' Wynn</role>
    <name>Nolan Hemmings</name>
    <role>Sgt. Charles 'Chuck' Grant</role>
    <name>Peter Youngblood Hills</name>
    <role>SSgt. Darrel 'Shifty' Powers</role>
    <name>Richard Speight Jr.</name>
    <role>Sgt. Warren 'Skip' Muck</role>
    <name>Robin Laing</name>
    <role>Pvt. Edward 'Babe' Heffron</role>
    <name>Ron Livingston</name>
    <role>Capt. Lewis Nixon</role>
    <name>Ross McCall</name>
    <role>Cpl. Joseph Liebgott</role>
    <name>Scott Grimes</name>
    <role>TSgt. Donald Malarkey</role>
  <votes />

- Advocate - 2009-05-02 09:23

Aha now it's working! Thanks. Any particular reason why you didn't stick with using the <studio> tag for these? Any why have net in front of the studio?

Any chance of writing MIP for Mac? Smile

- krypt2nite - 2009-05-02 09:30

Advocate Wrote:Aha now it's working! Thanks. Any particular reason why you didn't stick with using the <studio> tag for these? Any why have net in front of the studio?

Any chance of writing MIP for Mac? Smile

No sir, I didn't decide on any of those decisions... the developers have a reason I'm sure.

As for the net in front of the studios. I believe this was intentional and makes detection easier. Since abc, nbc, etc. are common three letter combinations in words I assume they purposely put net in front of the studios so we can get less false positives.

As for the mac thing I don't know. You can follow development of the software here.

- Kingmartinus - 2009-05-02 11:41


Hmm trying to change the media flag to james bond in skin tagging, but everytime i hit save and refresh it just turns back.. what iam doing wrong?

Thanks MaRTIN

- ronie - 2009-05-02 13:16

krypt2nite Wrote:Does anyone know how to make the flag color the same color as the font? Also know how to add some black shadow like background to them?

You can use the <colordiffuse> tag to change the color of the flags and add some transparency.
see wiki: http://wiki.xbmc.org/?title=Default_Control_Tags

As far as i know it's not possible to add a dropshadow through the skin, so you'll have to do this with Photoshop, Gimp, etc...

- andyblac - 2009-05-02 14:05

my tweaked version. if any one would like the code let me know Smile

[Image: episodes-flags2.jpg]


- harryzimm - 2009-05-02 14:24

@ andyblac

I for one would like the code, Looks really nice.


- GinSoakedBoy - 2009-05-02 14:26

Very effective, I'd definitely be interested in the code for that.