03-23-2025, 01:42 PM
(03-23-2025, 12:24 PM)storaid Wrote:(03-23-2025, 11:45 AM)Tim Curtis Wrote: lol, "It's simple!" ;-)
Couple things:
1. Its a Windows-only player, Japanese support Forum
2. Its not open source
3. The screen shot suggests files are accessed via an IPv6 Internet proxy which means the files are remote and don't reside on your local network.
moOde only supports accessing local files but I think I know at least one of the code blocks thats blowing up.
See file /var/www/inc/mpd.php starting at line 783
Code:// Determine badging
// NOTE: This is modeled after the code in getEncodedAt()
if (!(substr($song['file'], 0, 4) == 'http' && !isset($current['duration']))) { // Not a radio station
if (substr($song['file'], 0, 4) == 'http') { // UPnP file
// [0] bits, [1] rate, [2] channels [3] ext, [4] duration
$result = sysCmd('mediainfo --Inform="Audio;file:///var/www/util/mediainfo.tpl" ' . '"' . $song['file'] . '"');
$format[0] = $result[1]; // rate
$format[1] = $result[0]; // bits
$format[2] = $result[2]; // channels
} else { // Song file
sendMpdCmd($sock, 'lsinfo "' . $song['file'] . '"');
$songData = parseDelimFile(readMpdResp($sock), ': ');
// [0] rate, [1] bits, [2] channels
$format = explode(':', $songData['Format']);
}
Try the command below and you will get an error.
Code:mediainfo "http://[2001:b030:7020:1:948d:6d32:3bdf:ooxx]:29400/TuneID/00034067-xxxxx.flac"
You best bet is to either switch off the "experimental" IPv6 proxy and try using IPv4 or modify the moOde code to avoid trying to get metadata via mediainfo from the remote UPnP file.
Thank you for the detailed explanation and pointing out the code.
The issue seems to be that mediainfo (or the underlying shell) does not properly handle [IPv6]:port in HTTP URLs.(RFC 3986)
It might be worth submitting an issue to the medainfo repo.
https://github.com/MediaArea/MediaInfo/issues