Custom folders for multimedia

Please post your questions about using the web-based Multimedia, Photo, Music Stations here.

Custom folders for multimedia

Postby dizzeenl » Sun Feb 19, 2012 4:52 am

Is there an option to change the default media folder ((Q)Multimedia) to a custom folder for each multimedia application (photo station, Mulitmedia station and music station)?

I have a multiple disk NAS and the default system shares are located on a disk with a low amount of GB's.

Unfortunatly there is no default option to get rid of those default folders :roll:
dizzeenl
Starting out
 
Posts: 16
Joined: Tue Apr 14, 2009 3:10 am
NAS Model: TS-109/209 Pro II

Re: Custom folders for multimedia

Postby ggibby » Sun Feb 19, 2012 11:21 pm

This would be great.

I tried putting in a link to my Music folder in Multimedia via WinSCP,
but seems to not be found...

-G
ggibby
New here
 
Posts: 9
Joined: Sat Nov 19, 2011 2:48 am
NAS Model: TS-x79U

Re: Custom folders for multimedia

Postby vhenninot » Fri Mar 02, 2012 12:42 am

Hello,
It is not possible to change default, but you can create links...
viewtopic.php?f=21&t=10895

Vincent
vhenninot
Getting the hang of things
 
Posts: 90
Joined: Wed Jul 01, 2009 2:42 pm
Location: Marly le Roi
NAS Model: TS-x79U

Re: Custom folders for multimedia

Postby dizzeenl » Tue Mar 13, 2012 8:52 pm

Vhenninot, thanks for the repley. But the topic you reffering to seems to be a bit old and not valid anymore :(

Still can't understand why qnap gives so many limitations by assigning one default folder for all the multimedia files.
dizzeenl
Starting out
 
Posts: 16
Joined: Tue Apr 14, 2009 3:10 am
NAS Model: TS-109/209 Pro II

Re: Custom folders for multimedia

Postby fickle » Mon Mar 26, 2012 8:28 am

This is doable within Twonky as I used to have a DNS-323 and multiple folders for media content & distribution. Unfortunately, it took a lot of hacking within Twonky to do it as it is not native to it.

Assuming this is a default build for twonky into QNAP, twonky of course would not build this in. May have to actually ask twonky and not QNAP
TS-412 / RAID 5
fickle
Starting out
 
Posts: 36
Joined: Mon Feb 27, 2012 6:44 pm
NAS Model: TS-212

Re: Custom folders for multimedia

Postby cdc » Thu Apr 05, 2012 8:59 pm

Hi guys,

maybe that I found a way to change the default folder as you ask. I have a TS259PRO+ but I think it may work also for other models :?: :!: :?:

The real problem is that it is not permanent...if you stop the PhotoStation app and then you restart it the changes you made will be lost. :shock: :shock: :shock:

Following the steps you need to do:

1) Create a new share if you don't have one to use. In example I create the share FotoAlbum
2) connect using ssh and the admin user to your device
3) create a simbolic link in the root of the device:
cd /
[/] # ln -s /share/FotoAlbum Qfotoalbum
[/] # ls -lrth Q*
lrwxrwxrwx 1 admin administ 17 Mar 13 16:02 Qmultimedia -> /share/Multimedia/
lrwxrwxrwx 1 admin administ 16 Apr 5 13:22 Qfotoalbum -> /share/FotoAlbum/


4) edit the file /etc/config/def_share.info adding the definition for you new share:
[/] # vi /etc/config/def_share.info

[SHARE_DEF]
defPublic = Public
defDownload = Download
defMultimedia = Multimedia
defRecordings = Recordings
defUsb = Usb
defWeb = Web
defFotoAlbum = FotoAlbum


I have added the last line

5) Edit the config file of the app
[/] # cd /mnt/ext/opt/photostation2/api/libs/

make a security copy of the file inc_common.php

[/mnt/ext/opt/photostation2/api/libs] cp inc_common.php inc_common.php.ORIG

6) edit the file inc_common.php
[/mnt/ext/opt/photostation2/api/libs] vi inc_common.php

changing Multimedia with FotoAlbum starting from the line
//define('MS_FILE_ROOT','/share/QfMultimedia');

In my config I obtained the following lines :

.....
//define('MS_FILE_ROOT','/share/Qfotoalbum');
$MSShareName = exec(CMD_PATH_GETCFG . ' SHARE_DEF defFotoAlbum -d Qfotoalbum -f /etc/config/def_share.info');
$MSSharePath = exec(CMD_PATH_GETCFG . ' '.$MSShareName.' path -f /etc/config/smb.conf');

if ($MSSharePath != '')
define('MS_FILE_ROOT',$MSSharePath);
else
define('MS_FILE_ROOT','/share/Qfotoalbum');
.....


7) Make a copy of the new configuration file so if you have to restart the application you have only to restore this copy of the file :
[/mnt/ext/opt/photostation2/api/libs] cp inc_common.php inc_common.php.NEW

Obviously the Photo Station app was running while you made the changes otherwise you will loose them as soon as you start it.

Hope this helps :D :D

Bye bye

Carlo
Last edited by cdc on Thu Apr 05, 2012 9:02 pm, edited 1 time in total.
cdc
New here
 
Posts: 3
Joined: Thu Apr 05, 2012 7:48 pm
NAS Model: TS-459U

Re: Custom folders for multimedia

Postby cdc » Thu Apr 05, 2012 9:01 pm

I forgot to tell that this changes the base dir only for Photo Station but I think that you can change also other base dirs looking in the same configuration file inc_common.php and acting in the same way in order to create the new share

Bye bye

Carlo
cdc
New here
 
Posts: 3
Joined: Thu Apr 05, 2012 7:48 pm
NAS Model: TS-459U


Return to Multimedia Station, Photo Station, Music Station

Who is online

Users browsing this forum: No registered users and 2 guests