PDA

View Full Version : ForceToSingle in Control Point Overrides does not work



asset-user
11-04-2018, 12:16 PM
Hi,

it seems that the option ForceToSingle works when selected in the general (Control Point independent) settings (AssetUPnPForceSingle.txt), but it does not work in Control Point Overrides. ForceToMP3 works everywhere.

Environment:


Asset UPnP version R6.2 beta 12 [Linux-ARM32] (Raspberry Pi)
The file AssetUPnPForceSingle.txt is empty.
User-Agent: FSL DLNADOC/1.50 UPnP Stack/1.0


1.) ForceToSingle does not work

OverrideSettings.txt:

=FSL
[ForceAlbumArt=480]
[ForceToSINGLE]
.flac
.m4a
.mp3


a.) Selection of a FLAC album

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
<item id="d544576185538479099-co4B5237296F65FF9E" parentID="co4B5237296F65FF9E" restricted="0"><dc:title> 1 Findet Dorie 01</dc:title><res duration="0:03:40.000"
protocolInfo="http-get:*:audio/x-flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0 ;DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d544576185538479099-co4B5237296F65FF9E.flac</res><res duration="0:03:40.000"
protocolInfo="http-get:*:audio/wav:DLNA.ORG_PN=WAV;DLNA.ORG_OP=01;DLNA.ORG_CI=0;D LNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d544576185538479099-co4B5237296F65FF9E.forced.wav</res><res duration="0:03:40.000"
protocolInfo="http-get:*:audio/L16:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_CI=1">http://192.168.178.41:26130/content/c2/b16/f44100/d544576185538479099-co4B5237296F65FF9E.forced.l16</res><res duration="0:03:40.000"
protocolInfo="http-get:*:audio/x-flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0 ;DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d544576185538479099-co4B5237296F65FF9E.flac</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item>


b.) Selection of a M4A album

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
<item id="d-614983795286164148-co63DA51CDFC7782FA" parentID="co63DA51CDFC7782FA" restricted="0"><dc:title> 9 Wind_Air2</dc:title><res duration="0:01:04.000"
protocolInfo="http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI =0;DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f48000/d-614983795286164148-co63DA51CDFC7782FA.m4a</res><res duration="0:01:04.000"
protocolInfo="http-get:*:audio/wav:DLNA.ORG_PN=WAV;DLNA.ORG_OP=01;DLNA.ORG_CI=0;D LNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f48000/d-614983795286164148-co63DA51CDFC7782FA.forced.wav</res><res duration="0:01:04.000"
protocolInfo="http-get:*:audio/L16;rate=48000:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLN A.ORG_CI=1">http://192.168.178.41:26130/content/c2/b16/f48000/d-614983795286164148-co63DA51CDFC7782FA.forced.l16</res><res duration="0:01:04.000"
protocolInfo="http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI =0;DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f48000/d-614983795286164148-co63DA51CDFC7782FA.m4a</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item>

c.) Selection of a MP3 album

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
<item id="d-3823152705534391619-co2AF99E5C6CA8302A" parentID="co2AF99E5C6CA8302A" restricted="0"><dc:title>07 Hi Kids</dc:title><res duration="0:03:13.000"
protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0; DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d-3823152705534391619-co2AF99E5C6CA8302A.mp3</res><res duration="0:03:13.000"
protocolInfo="http-get:*:audio/wav:DLNA.ORG_PN=WAV;DLNA.ORG_OP=01;DLNA.ORG_CI=0;D LNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d-3823152705534391619-co2AF99E5C6CA8302A.forced.wav</res><res duration="0:03:13.000"
protocolInfo="http-get:*:audio/L16:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_CI=1">http://192.168.178.41:26130/content/c2/b16/f44100/d-3823152705534391619-co2AF99E5C6CA8302A.forced.l16</res><res duration="0:03:13.000"
protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0; DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d-3823152705534391619-co2AF99E5C6CA8302A.mp3</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item>


2.) ForceToMP3 works

OverrideSettings.txt:

=FSL
[ForceAlbumArt=480]
[ForceToMP3]
.mp3

[ForceToSINGLE]
.flac
.m4a


a.) Selection of a MP3 album

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
<item id="d544576185538479099-co4B5237296F65FF9E" parentID="co4B5237296F65FF9E" restricted="0"><dc:title> 1 Findet Dorie 01</dc:title><res duration="0:03:40.000"
protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0; DLNA.ORG_FLAGS=03700000000000000000000000000000">http://192.168.178.41:26130/content/c2/b16/f44100/d544576185538479099-co4B5237296F65FF9E.forced.mp3</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item>


- Christian

PeterP
11-06-2018, 09:40 AM
Bug confirmed and fixed for the next update, thanks for reporting.

asset-user
11-07-2018, 02:56 PM
I can confirm that the bug is fixed in R6.2-beta13. Thanks!

asset-user
11-07-2018, 11:34 PM
I can confirm that the bug is fixed in R6.2-beta13

... for the first listed format, but not for the successors.

In this configuration, is works for FLAC, but not for M4A:


[ForceToSINGLE]
.flac
.m4aIn this configuration, is works for M4A, but not for FLAC:

[ForceToSINGLE]
.m4a
.flac

PeterP
11-08-2018, 08:33 AM
Thanks for testing the fix.

You are supposed to enter a semicolon-delimited list of file formats - not one format per line.

Example:
[ForceToSINGLE]
.m4a;.flac

asset-user
11-08-2018, 08:42 AM
Thanks, I'll try that.
I suggest to fix the docs (https://www.dbpoweramp.com/Help/AssetUPnP/advanced.html) then.

asset-user
11-09-2018, 10:53 PM
Thanks for the hint, it works perfectly with this syntax.

Thanks again for fixing the documentation (https://www.dbpoweramp.com/Help/AssetUPnP/advanced.html) on this topic as requested by me; please take care of the OS X manual (https://dbpoweramp.com/asset-upnp-osxmanual.htm) that also contains the old syntax.