BlackJack1 Wrote:I noticed a problem with media flags. Only HDDVD flag is property displayed when exactly "HDDVD" string is in folder name. When "HD DVD" sign is in folder name DVD flag is present.
alright, i think this is gonna be a long answer, so grab a beer (or a cup of coffee if you're just waking up), sit down and enjoy.
media-flagging, here's what it comes down to:
until recently there were two ways of getting media flagging to work
- by adding all the info to the file/folder name of the movie (this is not supported by Transparency!, except for one exception i'll explain later).
- by adding all the info to the <studio> tag in your .nfo file (most will use Media Info Plus for this)
recently new code was added to xbmc which enables two new ways:
- by default, the new code will read the <streamdetails> section from the .nfo file if present
- if there's no .nfo file, or if it doesn't contain a <streamdetails> section it will do the detection itself.
so how does Transparency! handle source (dvd, blu-ray, hddvd) detection ?
by trying to be smart, i guess. i never liked the fact you'd have to rename all your movies just to make this flagging thing work, so i took a different approach.
The code in Transparency! tries to determine the source by looking at the file extension:
- if the file extension is .ifo or .vob it must be a dvd, so that's easy to figure out.
- same goes for the typical blu-ray (.m2ts) and hddvd (.evo) extensions. if one of those extensions is seen, it will show the appropriate source flag.
- next up, disk images (.iso, .img), those are a bit tougher. the code tries to determine the source by also looking at the resolution. if the resolution is less then 720, it assumes it's a dvd. if it's 720 or 1080 i assume it's a blu-ray
unless there's a
hddvd tag in the filename.
- all other extension (.avi .mkv .mpg .ts .wmv - if i've missed some, let me know and i'll add those) will be handled the same way as above, by looking at the resolution.
since there's no way to determine whether a 720 or 1080 movie is a blu-ray or hddvd, i choose to assume it's a blu-ray by default. why? because blu-ray disc are far more popular these days, so more likely to be present in anyone's library.
also is far as i know, they've stopped producing hddvd's altogether.
but as said before, if you do have hddvd's in your collection, just add
hddvd to the filename and it will override the default behavior.
it will not pick up
hd dvd because that's not...well, i would say, the
standard.
BlackJack1 Wrote:I see also standard DVD flag when "HDTV" or "Blu-ray" or "Bluray" is in the folder name... so blu-ray source is ignored and no Blu-ray flag on screen
source detection for tv shows is a bit more difficult as for movies. with tv show the source can, besides dvd, blu-ray and hd-dvd, also be sd-tv and hd-tv.
i'm basically using the same approach as above.
- first check for typical dvd, blu-ray and hd-dvd extensions.
- for .iso and .img files can be either dvd, blu-ray or dvd using the same rules as for movies. they will never be flagged as sd-tv or hd-tv since i assume nobody will store tv rips as disc images.
- all other extensions (and this is probably why the code fails in your case) are considered to be either sd-tv or hd-tv just by looking at the resolution again.
so it's a shortcoming in the way i do source detection for tv shows.
i guess, in the 'all other extensions' case, i'll have to check the filename for the presence of a sddvd, hddvd or bluray tag.