Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

mediatomb scripting problem

Got problems with Bubba? Then this forum is for you.
Locked
jos
Posts: 5
Joined: 31 Mar 2008, 16:18

mediatomb scripting problem

Post by jos »

Hi,

I want to style the way my client depicts my music collection so tried to use scripting for that but do not see the result of my changes in the file import.js
I updated the <virtual-layout type> into 'js' in the file config.xml
I stopped the server, removed sqlite3.db and started the server again
but all to no effect.
What did I miss?

Then I tried upgrading mediatomb to the latest version according to the instructions in this forum. I noticed this led to version10 whereas all documentation of mediatomb refers to the latest version11. Apparently version11 is not formally released for debian yet?
In a mediatomb forum I read that from version10 onwards the format of config.xml has changed; It says the easiest way is to have mediatomb create a new default file automatically but does not tell how to do this.
The mediatomb v11 docs tell me that mediatomb creates such a file automatically when first started. How do I simulate that situation? (I tried renaming the config.xml file and also renaming the .mediatomb directory but that did not work) Is that different maybe in v10?

Btw I noticed there is also a config.xml file in /etc/share; what is the meaning of that file?

Any tips appreciated
jos
Posts: 5
Joined: 31 Mar 2008, 16:18

zooming in closer

Post by jos »

some further study gave following results:
the correct config.xml file to edit is the one in
/etc/mediatomb/
after changing virtual-layout type=js while leaving the import.js script to the default situation then stopping and starting mediatomb again (/etc/init.d/mediatomb stop/start) mediatomb seems to stall with respect to importing new files

In the /var/log/mediatomb file I see nothing different from the situation with virtual-layout type=builtin and the server is streaming fine from its existing database.

I guess I am making a silly mistake somewhere?
jos
Posts: 5
Joined: 31 Mar 2008, 16:18

solved

Post by jos »

somehow a reboot did it
I will start learning javascript
for what it is worth I will share the script in the other track later
Locked