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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Skin Help and Support (/forumdisplay.php?fid=67)
+---- 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


- Radikaltimes - 2009-05-04 14:24

fekker:

any way to put a ton of spaces after the director .. so that the data doesn't get displayed in the screen?


- hikaricore - 2009-05-04 15:59

Radikaltimes Wrote:fekker:

any way to put a ton of spaces after the director .. so that the data doesn't get displayed in the screen?

That's actually a really good idea if it's possible. O.o
Have you tried this manually on a few nfo files to see if the flags still work properly after a rescan?


- krypt2nite - 2009-05-04 16:20

hikaricore Wrote:That's actually a really good idea if it's possible. O.o
Have you tried this manually on a few nfo files to see if the flags still work properly after a rescan?

I tried it and it works. It only leaves a ...


- krypt2nite - 2009-05-04 18:33

Updated a few studio icons like Nickelodeon and Sci-Fi channel.


- hikaricore - 2009-05-04 18:37

krypt2nite Wrote:I tried it and it works. It only leaves a ...

I could definitely overlook a ... in place of the string of randomness there now. ^_^


- krypt2nite - 2009-05-04 21:06

Update:

Added a SDTV check and flag for those of you with SDTV rips.

Code:
                <control type="image" id="82">
                    <include>Furniture_EpisodeMediaFlags</include>
                    <texture>flags/custom/sdtv.png</texture>
                    <visible>substring(listitem.filename,sdtv) | substring(listitem.filename,TVRip)</visible>
                </control>

Added various movie studio icons and detection. 200+ Movie studio flags and detection.
Various tweaks.


- krypt2nite - 2009-05-04 22:08

I'm playing around with some new source flagging.

It uses data stored in the studio tag by MIP to show the source flag as either DivX or Xvid. MIP stores the codec information in the studio tag so this might save some of you from renaming your video files. If your movie is a xvid or divx it will display the appropriate flag. If your movie is h264 then it assumes it's high quality and flags it as a DVD if you have dvdrip or sddvd in the filename.

It looks for DX50, DIVX, DIV3, and XVID in the studio tag.
Code:
Warner Bros. Pictures / 576p / DX50 / MPEG Audio / 2ch /

Everything else works the same... and yes that's Battlefield Earth..

[Image: divx.png]

[Image: xvid.png]


- hikaricore - 2009-05-04 22:34

krypt2nite Wrote:Everything else works the same... and yes that's Battlefield Earth..

I loved the book but the movie is terrible, however I still own it too. Tongue


- ronie - 2009-05-04 23:38

krypt2nite Wrote:Download this XML if you want to try some new source detection I'm playing with.

I've been playing with source detection as well and i'm trying to find a way to do the matching without having to add the source tag to the filenames of all my movies.

So how about doing some matching based on file extension?

For DVD's that are in VIDEO_TS format, it's easy:
substring(listitem.filename,.ifo)

Same goes for Blu-Ray:
substring(listitem.filename,.m2ts)

And for HD-DVD:
substring(listitem.filename,.evo)

Iso files are of course a lot trickier, since they can contain any of the above.
But i think it's safe to say if the content is not HD, we can assume it'a a DVD:
substring(listitem.filename,.iso) + ![substring(listitem.studio,720 | substring(listitem.studio,1080]

For TV-Shows i'm using this to detect if the source is HD-TV:
[substring(listitem.filename,.avi) | substring(listitem.filename,.mkv] + [substring(listitem.director,720 | substring(listitem.director,1080]


This may not all be 100% accurate (so comments very are welcome), but it sure saves a lot of time renaming all of those movies.


- Imaginos - 2009-05-05 00:44

krypt2nite Wrote:Download this XML if you want to try some new source detection I'm playing with.
Includes_MediaFlags.xml

You will also need some new tags. krypts_aeon_flags.zip

It uses data stored in the studio tag by MIP to show the source flag as either DivX or Xvid. MIP stores the codec information in the studio tag so this might save some of you from renaming your video files. If your movie is a xvid or divx it will display the appropriate flag. If your movie is h264 then it assumes it's high quality and flags it as a DVD if you have dvdrip or sddvd in the filename.

It looks for DX50, DIVX, DIV3, and XVID in the studio tag.
Code:
Warner Bros. Pictures / 576p / DX50 / MPEG Audio / 2ch /

Everything else works the same... and yes that's Battlefield Earth..

Very nice, I'd just add this :
Code:
<control type="image" id="82">
    <include>Furniture_EpisodeMediaFlags</include>
    <texture>flags/custom/divx.png</texture>
    <visible>substring(listitem.director,DX50) | substring(listitem.director,divx) | substring(listitem.director,DIV3)</visible>
</control>
<control type="image" id="82">
    <include>Furniture_EpisodeMediaFlags</include>
    <texture>flags/custom/xvid.png</texture>
    <visible>substring(listitem.director,XVID)+ !substring(listitem.filename,hdtv)+ !substring(listitem.filename,bluray)+ !substring(listitem.filename,hddvd)</visible>
</control>
no need to explain Wink


- krypt2nite - 2009-05-05 01:04

Fixed: Thanks man.


Update:
Includes_MediaFlags.xml
Bunch of new stuff added. So bored at work.


- Arkon11 - 2009-05-05 02:21

not sure if this has been addressed yet in this thread...
But to get the source on tv shows (like dvd, blu-ray ect) do we have to change each individual episode filename?

For example if I have a show called

"1x01 - Pilot.mkv"

I'd have to change it to

"1x01 - Pilot.sddvd.mkv" ?


- krypt2nite - 2009-05-05 02:46

Arkon11 Wrote:not sure if this has been addressed yet in this thread...
But to get the source on tv shows (like dvd, blu-ray ect) do we have to change each individual episode filename?

For example if I have a show called

"1x01 - Pilot.mkv"

I'd have to change it to

"1x01 - Pilot.sddvd.mkv" ?

You are absolutely correct... unfortunately.

However, it isn't as bad as it may seem. I use the software M├ętamorphose. It's a very powerful bulk renamer. You could easily use it to insert sddvd in to all your files.


- krypt2nite - 2009-05-05 03:49

I'm using a new Xvid flag. I like this one more because it looks similar to the DVD icon so it blends together nicer.

[Image: xvid2.png]


- Imaginos - 2009-05-05 08:09

I also prefer this one, far ahead!

Oh, and concerning mass renamer, you should give a try to Ant Renamer