ronie Wrote:well, there's a few things wrong with this,
- it will give you a lot of false possitives. you're using an 'or' statement after the offdvd matching string, so it'll show a offline dvd flag for just about every SD movie in your collection.
HARG!!! I did a mess.
Sorry!
I will explain my usage:
I have a huge data lirbary for my DVD that I manage with a program.
I'm able to export them in the form I like (I wrote the exporter) and I can have a folder extension to identify the offline folders.
Twilight.offdvd
So what I was trying to do is to show the DVD offline icon for my offline folders
I will recheck the code... (or if you have suggestions
)
I've updated to code to be:
Code:
<!-- Source -->
<control type="image" id="5085">
<include>MovieMediaflagsVars</include>
<texture>flags/movies/source/dvdoff.png</texture>
<visible>substring(listitem.filename,offdvd)</visible>
</control>
ronie Wrote:if this condition is met, the previous one will also be met, so it will show the offline dvd flag two times.
This one I have not understand. I simply checked all the occurences of the DVD.PNG and the other and added the offdvd
Is this the reason for which I have two icons and offdvd and a dvd? what should be the second one ?
ronie Wrote:what about offline bluray disks? or offline hddvd, sdtv, hdtv content ?
why not put the 'offdvd' tag in the foldername instead of the filename?
look, i really won't mind to add some kind of offline detection, but it's got to be fullproof and most important, work for everyone.
i don't think it's wise the add some rules that will only benefit one person.
so if you can come up with a generic method for offline detection, that everyone agrees on, i'll be the first to add it. ;-)
I would love to have offline flag for all types but as a first outcome it would be nice even to distinguish between the offline dvd and the online content.
this is a sample directory structure I was using:
Directory of T:\test out\output 2\A Beautiful Mind (2001).offdvd
29-Jun-09 19:08 <DIR> .
29-Jun-09 19:08 <DIR> ..
28-Jun-09 15:22 45,064 A Beautiful Mind (2001).offdvd.avi
28-Jun-09 15:22 84 A Beautiful Mind (2001).offdvd.info
29-Jun-09 19:08 1,191,231 A Beautiful Mind (2001).offdvd.jpg
29-Jun-09 19:08 6,588 A Beautiful Mind (2001).offdvd.nfo
29-Jun-09 19:08 1,191,231 A Beautiful Mind (2001).offdvd.tbn
29-Jun-09 19:08 <DIR> extrathumbs
29-Jun-09 19:08 385,530 fanart.jpg
29-Jun-09 19:08 1,191,231 folder.jpg
29-Jun-09 19:08 1,191,231 poster.jpg
8 File(s) 5,202,190 bytes
3 Dir(s) 4,784,021,504 bytes free
So I put the flag in the folder and then, using MIP or EMM, I fill in the folder with all the files.
this should be generic enough for everyone...