[SOLVED] how can i really disable auto update library

Raspberry Pi related support

[SOLVED] how can i really disable auto update library

Postby nopphong » 17 Jan 2015, 12:43

hello
I try to use runeaudio as music server and it work very well.Thank for a wonderful program.

My problem is i connect 750G usb hdd with a lot of files in it.And it take a lot of times to update library.If it update only one time when i connect i think it ok i can wait.But it rescan every time i shutdown or restart my Rpi .

I already disable auto update library in MPD menu but it keep scanning.I try to disable ffmpeg decode and hope for faster scan but it still slow.

can you help me disable auto scan library ?
thank you very much
Last edited by nopphong on 21 Jan 2015, 20:17, edited 1 time in total.
nopphong
 
Posts: 26
Joined: 17 Jan 2015, 06:13

Re: how can i really disable auto update library

Postby MeiT » 19 Jan 2015, 14:16

Hi,
try to disable "Automount USB".
MeiT
MeiT
 
Posts: 13
Joined: 30 Nov 2014, 23:41

Re: how can i really disable auto update library

Postby nopphong » 20 Jan 2015, 03:32

MeiT wrote:Hi,
try to disable "Automount USB".
MeiT


thank you but it still not work. after i disable automunt (after press apply setting button) my rpi will stop playing.the song name is still able to see but cant play file in hdd any more..
nopphong
 
Posts: 26
Joined: 17 Jan 2015, 06:13

Re: how can i really disable auto update library

Postby hondagx35 » 20 Jan 2015, 18:25

Hi nopphong,

do the following:
- enable USB Automount
- enable MPD autoupdate
- ssh to your pi and change this file:
https://github.com/RuneAudio/RuneUI/blo ... bmount#L62

Code: Select all
nano /srv/http/command/usbmount


line 62 from
Code: Select all
// update MPD database
sendMpdCommand($mpd, 'update USB');

to
Code: Select all
// update MPD database
//sendMpdCommand($mpd, 'update USB');




Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: how can i really disable auto update library

Postby ACX » 21 Jan 2015, 01:47

We could wrap that command in a conditional:
Code: Select all
$activePlayer = $redis->get('activePlayer');
if ($activePlayer === 'MPD') {
    // update MPD database
    sendMpdCommand($mpd, 'update USB');
}
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: how can i really disable auto update library

Postby nopphong » 21 Jan 2015, 20:16

Thank you hondagx35 and ACX
With hondagx35 reply it work perfectly thank you very much.
But when I try to edit as ACX reply it still rescan hdd every tome i boot Then I edit it back.

Now it not rescan every time i boot and when i want to rescan i just go to source and press rebuild MPD library button.It perfect !!
nopphong
 
Posts: 26
Joined: 17 Jan 2015, 06:13

Re: [SOLVED] how can i really disable auto update library

Postby johnberg » 06 Nov 2016, 14:21

image.png
image.png (52.99 KiB) Viewed 3293 times
@Hondagx35

I try to do this with Putty, but I am oh so green with Linux.
Please can you give me one step by step guide to make this succesfull. :oops:
I logged in via ssh with putty: root password rune
Then make code select all with this:
nano /srv/http/command/usbmount
and pasted it in Putty by one click on the right mouse button
Then I did enter and see this: (attachment)

After I really don't what to do anymore abacadabra for me. :( :(
I have to change lin 62 but how do I come there?
I think it is very simple and googled a lot but no succes
I would very appreciate to give one step by step guide to do this maybe very simply handling.

Yes also I have an issue that Rune js every time updating when started up
johnberg
 
Posts: 16
Joined: 27 Oct 2016, 20:10

Re: [SOLVED] how can i really disable auto update library

Postby hondagx35 » 06 Nov 2016, 23:23

Hi johnberg,

I have to change lin 62 but how do I come there?

- Scroll (move) down by using the down arrow key (↓) on your keyboard until you see the line:
Code: Select all
sendMpdCommand($mpd, 'update USB');

- add the two slashes (//) at the beginning of that line
Code: Select all
//sendMpdCommand($mpd, 'update USB');

- press CTRL+O on your keyboard to save the changes
- press CTRL+X to quit nano

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests