2011-03-07, 20:55
Some basic media flags for external hdds, hopefully someone will find them useful
Download (HDD 01-99)
I use them as replacement for video codec flag in Includes_MediaFlagsVideo.xml (you can replace whatever flag you don't need though).
Having them as flags is great because they are displayed in every view and you can quickly see hdd # where is selected media stored.
EXAMPLE:
You have your external HDD named EXT01
... duplicate this code and change numbers for every external hdd you want to see in xbmc.
We're replacing code below with code above.
Extract .zip to /media/flags/movies
LINUX
XBMC Linux builds mounts external hdds to /media/<hdd_name> so nothing else than changing the code in Includes_MediaFlagsVideo.xml is needed.
WINDOWS
It's little bit more complicated, because Windows mounts drives to letters.
There are two methods you can use:
1) Mount drives to folders. For example C:\_MOUNT\EXT01 then assign folder mounts in Disk Management
Control Panel - Administrative Tools - Computer Management - Storage - Disk Management - right Click to desired HDD partition - Change Drive Letter and Paths - Add... - Mount in the following empty NTFS folder - Browse - Select C:\_MOUNT\EXT01 - OK
From now on EXT01 HDD will always be mounted to C:\_MOUNT\EXT01 folder (also with default drive letter mount method) unless you change or remove it in Disk Management.
Then you select C:\_MOUNT\EXT01 folder as source in XBMC (instead of HDD drive letter)
2) If you don't want to mess with folder mounts you can have all media located in subfolder on your HDD.
For example instead of having external hdd media on drive E:\ move everything to EXT01 subfolder there (E:\EXT01) and select that as source in xbmc instead of E:\
With this method you can see media storage also in other skins, if they support showing Infolabel.Path when pressing INFO on selected media.
Download (HDD 01-99)
I use them as replacement for video codec flag in Includes_MediaFlagsVideo.xml (you can replace whatever flag you don't need though).
Having them as flags is great because they are displayed in every view and you can quickly see hdd # where is selected media stored.
EXAMPLE:
You have your external HDD named EXT01
Code:
<control type="image">
<posx>136</posx>
<posy>0</posy>
<width>64</width>
<height>48</height>
<texture>flags/movies/storage/01.png</texture>
<visible>substring(ListItem.Path,EXT01)</visible>
</control>
... duplicate this code and change numbers for every external hdd you want to see in xbmc.
We're replacing code below with code above.
Code:
<control type="image">
<posx>136</posx>
<posy>0</posy>
<width>64</width>
<height>48</height>
<texture fallback="mediaflag-videocodec.png">flags/movies/videocodec/$INFO[ListItem.VideoCodec,,.png]</texture>
</control>
Extract .zip to /media/flags/movies
LINUX
XBMC Linux builds mounts external hdds to /media/<hdd_name> so nothing else than changing the code in Includes_MediaFlagsVideo.xml is needed.
WINDOWS
It's little bit more complicated, because Windows mounts drives to letters.
There are two methods you can use:
1) Mount drives to folders. For example C:\_MOUNT\EXT01 then assign folder mounts in Disk Management
Control Panel - Administrative Tools - Computer Management - Storage - Disk Management - right Click to desired HDD partition - Change Drive Letter and Paths - Add... - Mount in the following empty NTFS folder - Browse - Select C:\_MOUNT\EXT01 - OK
From now on EXT01 HDD will always be mounted to C:\_MOUNT\EXT01 folder (also with default drive letter mount method) unless you change or remove it in Disk Management.
Then you select C:\_MOUNT\EXT01 folder as source in XBMC (instead of HDD drive letter)
2) If you don't want to mess with folder mounts you can have all media located in subfolder on your HDD.
For example instead of having external hdd media on drive E:\ move everything to EXT01 subfolder there (E:\EXT01) and select that as source in xbmc instead of E:\
With this method you can see media storage also in other skins, if they support showing Infolabel.Path when pressing INFO on selected media.