Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: DLNA REBUILD
#1
After adding music tracks, it seems that the number of audio files does not increase after I click the DLNA REBUILD button. What could be causing this issue?
Reply
#2
Which version of moode?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
I have found that in version 9 (currently on 9.2.4) that it is necessary to reboot to increase the count and to show the new tracks.

May I recommend some form of feed back when clicking on rebuild.
Reply
#4
(02-13-2025, 11:21 PM)dwlacroix Wrote: I have found that in version 9 (currently on 9.2.4) that it is necessary to reboot to increase the count and to show the new tracks.

May I recommend some form of feed back when clicking on rebuild.

Are you referring to the database status screen that shows stats and counts?

Have you tried turning DLNA off then on rather then reboot? 
If that works then I could add a RESTART button.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(02-13-2025, 11:28 PM)Tim Curtis Wrote:
(02-13-2025, 11:21 PM)dwlacroix Wrote: I have found that in version 9 (currently on 9.2.4) that it is necessary to reboot to increase the count and to show the new tracks.

May I recommend some form of feed back when clicking on rebuild.

Are you referring to the database status screen that shows stats and counts?

Have you tried turning DLNA off then on rather then reboot? 
If that works then I could add a RESTART button.

I'm using V 9.2.4. Rebooting also works for me. If I turn the DLNA off and on, it will recount all the audio files.
Reply
#6
If off/on works then no need to reboot, correct?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
(02-14-2025, 12:40 AM)Tim Curtis Wrote: If off/on works then no need to reboot, correct?

That's how it's working for me on a moOde 9.2.4 player.

OTOH, clicking on the Rebuild button again after the database has been built feels like a no-op. Running top when I do that, I don't see an instance of minidlnad start as I do when I cycle DLNA off and on again.

Regards,
Kent
Reply
#8
(02-13-2025, 11:28 PM)Tim Curtis Wrote:
(02-13-2025, 11:21 PM)dwlacroix Wrote: I have found that in version 9 (currently on 9.2.4) that it is necessary to reboot to increase the count and to show the new tracks.

May I recommend some form of feed back when clicking on rebuild.

Are you referring to the database status screen that shows stats and counts?

Have you tried turning DLNA off then on rather then reboot? 
If that works then I could add a RESTART button.

I'll try adding another album to see if turning the DLNA off and on does the trick. <edit> - It does the trick

Yes, I am referring to the database status screen. If my memory is correct, in older versions you could refresh the screen and see changes in the count. But I also could not access the new tracks via VLC on my tablet.

I should have been clearer on my request for feedback. When clicking rebuild, nothing happens visually. With the reboot problem I was not sure my click registered.
Reply
#9
(02-14-2025, 01:06 AM)TheOldPresbyope Wrote:
(02-14-2025, 12:40 AM)Tim Curtis Wrote: If off/on works then no need to reboot, correct?

That's how it's working for me on a moOde 9.2.4 player.

OTOH, clicking on the Rebuild button again after the database has been built feels like a no-op. Running top when I do that, I don't see an instance of minidlnad start as I do when I cycle DLNA off and on again.

Regards,
Kent

Here's what the code does. It's ancient from way back.

Code:
        case 'dlnarebuild':
            sysCmd('systemctl stop minidlna');
            sysCmd('rm -rf /var/cache/minidlna/* > /dev/null');
            sleep(2);
            startMiniDlna();
            break;

Code:
// DLNA server
function startMiniDlna() {
    sysCmd('systemctl start minidlna');
}

Code:
pi@moode9:~ $ cat /lib/systemd/system/minidlna.service
[Unit]
Description=MiniDLNA lightweight DLNA/UPnP-AV server
Documentation=man:minidlnad(1) man:minidlna.conf(5)
After=local-fs.target remote-fs.target autofs.service

[Service]
User=minidlna
Group=minidlna

Environment=CONFIGFILE=/etc/minidlna.conf
Environment=DAEMON_OPTS=-r
EnvironmentFile=-/etc/default/minidlna

RuntimeDirectory=minidlna
LogsDirectory=minidlna
PIDFile=/run/minidlna/minidlna.pid
ExecStart=/usr/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid -S $DAEMON_OPTS


[Install]
WantedBy=multi-user.target
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
(02-14-2025, 01:55 AM)Tim Curtis Wrote:
(02-14-2025, 01:06 AM)TheOldPresbyope Wrote:
(02-14-2025, 12:40 AM)Tim Curtis Wrote: If off/on works then no need to reboot, correct?

That's how it's working for me on a moOde 9.2.4 player.

OTOH, clicking on the Rebuild button again after the database has been built feels like a no-op. Running top when I do that, I don't see an instance of minidlnad start as I do when I cycle DLNA off and on again.

Regards,
Kent

Here's what the code does. It's ancient from way back.

Code:
        case 'dlnarebuild':
            sysCmd('systemctl stop minidlna');
            sysCmd('rm -rf /var/cache/minidlna/* > /dev/null');
            sleep(2);
            startMiniDlna();
            break;

Code:
// DLNA server
function startMiniDlna() {
    sysCmd('systemctl start minidlna');
}

Code:
pi@moode9:~ $ cat /lib/systemd/system/minidlna.service
[Unit]
Description=MiniDLNA lightweight DLNA/UPnP-AV server
Documentation=man:minidlnad(1) man:minidlna.conf(5)
After=local-fs.target remote-fs.target autofs.service

[Service]
User=minidlna
Group=minidlna

Environment=CONFIGFILE=/etc/minidlna.conf
Environment=DAEMON_OPTS=-r
EnvironmentFile=-/etc/default/minidlna

RuntimeDirectory=minidlna
LogsDirectory=minidlna
PIDFile=/run/minidlna/minidlna.pid
ExecStart=/usr/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid -S $DAEMON_OPTS


[Install]
WantedBy=multi-user.target

Nothing looks odd to me there. The thing is, I don't see any evidence that clicking the REBUILD button gets me to case 'dlnarebuild'.

I'm not afraid to admit I don't really grok the front-end stuff. No problem with php and shell script but I get befuddled in the event handling associated with the REBUILD button. I can spell the names of cool technologies like jQuery and Ajax but don't ask me to explain how they work.

Regards,
Kent
Reply


Forum Jump: