home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Movie shares?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dementate" data-source="post: 53398" data-attributes="member: 20582"><p>Hi,</p><p></p><p>(first post so I don't know what's the normal setup people here have)</p><p></p><p>I have a solution to this, it started two years ago when I discovered XBMC for the xbox, (until then I had a really old 21" trinitron and watched everything on my pc) I had the same issue, had to keep pressing ".." to navigate between the two HDs on my file server.</p><p></p><p>The file server is a simple linux box running samba. So say I have one disk mounted on /mnt/disk0 and the other on /mnt/disk1.</p><p>So we have:</p><p>/mnt/disk0/movies</p><p>/mnt/disk1/movies</p><p></p><p>It got real messy when I put in the fourth disk and we had trouble remembering what was in each disk!</p><p></p><p>So, I setup samba to share /mnt/share/movies and I wrote a script to do this:</p><p>[code]</p><p>find /mnt/disk0/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies</p><p>find /mnt/disk1/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies</p><p>find /mnt/disk2/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies</p><p>find /mnt/disk3/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies</p><p>[/code]</p><p></p><p>This caters to a situation where you have a directory full of movie files, but, remove the -type d and you can cater to sub directories in each real share.</p><p></p><p>The above code just keeps adding stuff, you need to spring clean so i have a script called checksymlink:</p><p>[code]#!/bin/bash</p><p></p><p>if [ ! -e "$1" ]</p><p>then</p><p> if [ "$2" == "-d" ]</p><p> then</p><p> rm -f "$1"</p><p> else</p><p> echo "$1" invalid</p><p> fi</p><p>fi</p><p>[/code]</p><p></p><p>and you can call it like so to find invalid links:</p><p>[code]</p><p>find /mnt/share/series/ -type l -mindepth 1 -maxdepth 1 -exec /scripts/checksymlink {} -d ;</p><p>find /mnt/share/movies/ -type l -mindepth 1 -maxdepth 1 -exec /scripts/checksymlink {} -d ;</p><p>[/code]</p><p></p><p>Now I know some (all?) of you may be using windows, but I have just confirmed that this script does work if you have cygwin installed (<a href="http://www.cygwin.com" target="_blank">www.cygwin.com</a>) on your windows box.</p><p></p><p>If anyone is interested in exploring this further, I can try to find the time to come up with a howto to do this.</p><p></p><p>PS: The reason I posted this is that I don't like the idea of having databases, they tend to remove flexibility, (because they will be written by someone else who may not have -your- idea of how things should be organised) and they generally tend to gum up the works. (for eg the music database on my setup has no titles, artist name, etc, because MP scanned for tags on my mp3 collection and found none -- I intentionally strip the tags because the way I organise my dir structure, I don't need them)</p></blockquote><p></p>
[QUOTE="dementate, post: 53398, member: 20582"] Hi, (first post so I don't know what's the normal setup people here have) I have a solution to this, it started two years ago when I discovered XBMC for the xbox, (until then I had a really old 21" trinitron and watched everything on my pc) I had the same issue, had to keep pressing ".." to navigate between the two HDs on my file server. The file server is a simple linux box running samba. So say I have one disk mounted on /mnt/disk0 and the other on /mnt/disk1. So we have: /mnt/disk0/movies /mnt/disk1/movies It got real messy when I put in the fourth disk and we had trouble remembering what was in each disk! So, I setup samba to share /mnt/share/movies and I wrote a script to do this: [code] find /mnt/disk0/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies find /mnt/disk1/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies find /mnt/disk2/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies find /mnt/disk3/movies -type d -mindepth 1 -maxdepth 1 -exec ln -s {} /mnt/share/movies [/code] This caters to a situation where you have a directory full of movie files, but, remove the -type d and you can cater to sub directories in each real share. The above code just keeps adding stuff, you need to spring clean so i have a script called checksymlink: [code]#!/bin/bash if [ ! -e "$1" ] then if [ "$2" == "-d" ] then rm -f "$1" else echo "$1" invalid fi fi [/code] and you can call it like so to find invalid links: [code] find /mnt/share/series/ -type l -mindepth 1 -maxdepth 1 -exec /scripts/checksymlink {} -d ; find /mnt/share/movies/ -type l -mindepth 1 -maxdepth 1 -exec /scripts/checksymlink {} -d ; [/code] Now I know some (all?) of you may be using windows, but I have just confirmed that this script does work if you have cygwin installed ([url]www.cygwin.com[/url]) on your windows box. If anyone is interested in exploring this further, I can try to find the time to come up with a howto to do this. PS: The reason I posted this is that I don't like the idea of having databases, they tend to remove flexibility, (because they will be written by someone else who may not have -your- idea of how things should be organised) and they generally tend to gum up the works. (for eg the music database on my setup has no titles, artist name, etc, because MP scanned for tags on my mp3 collection and found none -- I intentionally strip the tags because the way I organise my dir structure, I don't need them) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Movie shares?
Contact us
RSS
Top
Bottom