|
#1
|
|||
|
|||
|
Hello there.
When I modify many multimedia files into the Stora, the MiniDLNA database is not correctly updated, I find doubled entries and other issues, so I need to rebuild the dataase. To do this via bash takes no more then 10 minutes to have the database rebuilt, but to make it faster I'd like to write a script that stops the MiniDLNA, deletes database files and initiates a rebuild. Here it is: !/bin/shI launch it as superuser, but it doesn't work. MiniDLNA commands return the quick help, like as arguments are ignored, and rm commands return no such file or folder. Well, this is my 1st script, what's wrong? I use exactly the same commands I enter from bash, with the same user and sudoed. Can anybody help me? Thanks!! |
|
#2
|
||||
|
||||
|
Could you not just, via web gui or nomad, unshare via dma and then reshare?
|
|
#3
|
|||
|
|||
|
This doesn't solve problems, because if I don't delete files db is updated, not refreshed...
|
|
#4
|
|||
|
|||
|
This doesn't solve problem because if I don't delete files db is not rebuilt, only refreshed...
|
|
#5
|
|||
|
|||
|
MiniDLNA has a bug that results in duplicated directory entries. It has been fixed in the latest version of MiniDLNA. I am hoping that a new version of the Stora firmware will be released that includes this updated MiniDLNA.
http://forum1.netgear.com/showpost.p...66&postcount=1 |
|
#6
|
|||
|
|||
|
Ya, it didn't work for me either... but the newer version of minidlna supports the following commands:
Rebuilding: sudo minidlna -R Restarting minidlna service: sudo service minidlna restart So I designed the following unix script: Code:
#!/bin/bash sudo minidlna -R sudo service minidlna restart |
|
#7
|
|||
|
|||
|
Yes. This achieves the exact same result doesn't it?
|
|
#8
|
||||
|
||||
|
Using the -R switch looks to have fixed your problem, but just for info:
On the Stora I administer, I was unable to locate the database used by miniDLNA. I needed to do this to run a cron job to update the sqlite DB to periodically rewrite the entries for HD m2ts files with mp2 audio. I'm an old hand with miniDLNA, but I was totally stumped because the DB wasn't in any likely location. I discovered that you can manually set the location of the DB in the config file. This allowed me to access it with my cron job. Hope this is helpful to someone, Craig |
![]() |
| Thread Tools | |
| Display Modes | |
|
|