Thank you for your donation!


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


Problem: DLNA REBUILD
#11
(02-15-2025, 06:42 PM)TheOldPresbyope Wrote:
(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

Fixed. Good catch.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
Try this commit
https://github.com/moode-player/moode/co...a8f53c1bc1
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
(02-15-2025, 08:35 PM)Tim Curtis Wrote: Try this commit
https://github.com/moode-player/moode/co...a8f53c1bc1

Nice. Now I get to confirm the rebuilt request and then watch the database being rebuilt.

Regards,
Kent
Reply


Forum Jump: