Moode Forum
[PROBLEM] DLNA REBUILD - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] DLNA REBUILD (/showthread.php?tid=7423)

Pages: 1 2


DLNA REBUILD - kwatch - 02-13-2025

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?


RE: DLNA REBUILD - Tim Curtis - 02-13-2025

Which version of moode?


RE: DLNA REBUILD - dwlacroix - 02-13-2025

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.


RE: DLNA REBUILD - Tim Curtis - 02-13-2025

(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.


RE: DLNA REBUILD - kwatch - 02-14-2025

(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.


RE: DLNA REBUILD - Tim Curtis - 02-14-2025

If off/on works then no need to reboot, correct?


RE: DLNA REBUILD - TheOldPresbyope - 02-14-2025

(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


RE: DLNA REBUILD - dwlacroix - 02-14-2025

(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.


RE: DLNA REBUILD - Tim Curtis - 02-14-2025

(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



RE: DLNA REBUILD - TheOldPresbyope - 02-15-2025

(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