AIMP Forum

AIMP for Android => Ошибки и замечания / Bugs => Topic started by: tikenn on September 17, 2026, 00:56:33

Title: [x] [1747] Remote XSPF smart playlist fails to resolve relative track URLs
Post by: tikenn on September 17, 2026, 00:56:33
Description

AIMP for Android does not appear to resolve relative <location> URIs correctly when an XSPF playlist is imported from an HTTP/HTTPS URL.

The same remote XSPF playlist works correctly in AIMP for Windows. On Android, AIMP successfully downloads and parses the XSPF and displays the track title, but playback fails with:

Code: [Select]
Failed to load the file (7)
It seems the file was moved or deleted.

If I add an absolute
Code: [Select]
xml:base URI to the XSPF
Code: [Select]
<playlist> element, the same track plays correctly on Android.

Minimal example

Assume the playlist is temporarily available at:

https://example.com/piano-playlist/index.xspf (https://example.com/piano-playlist/index.xspf)

and the audio file is:

https://example.com/piano-playlist/test.wav (https://example.com/piano-playlist/test.wav)

XSPF:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
  <title>Test Playlist</title>
  <trackList>
    <track>
      <location>test.wav</location>
      <title>Test Track</title>
    </track>
  </trackList>
</playlist>

Steps to reproduce

Code: [Select]
index.xspf and
Code: [Select]
test.wavExpected behavior

Because the XSPF document was retrieved from:

https://example.com/piano-playlist/index.xspf (https://example.com/piano-playlist/index.xspf)

the relative location:

Code: [Select]
test.wav
should resolve to:

https://example.com/piano-playlist/test.wav (https://example.com/piano-playlist/test.wav)

Actual behavior

AIMP Android imports the track but cannot locate/play the audio file.

Workaround

Adding an absolute XML Base makes playback work:

Code: [Select]
<playlist
    version="1"
    xmlns="http://xspf.org/ns/0/"
    xml:base="https://example.com/piano-playlist/">

With that change, <location>test.wav</location> plays correctly.

Additional testing

I would prefer not to use an absolute xml:base, because doing so unnecessarily couples the playlist to a particular publishing hostname/protocol.

Note about URLs

The
Code: [Select]
example.com URLs above are intentionally illustrative. My actual test server and playlist are under active development, so any URLs I provide during testing should not be expected to remain available permanently. I am happy to provide a temporary reproducible test playlist or AIMP log if needed.

Please let me know if a debug log or additional test case would be useful.
Title: Re: [x] [1747] Remote XSPF smart playlist fails to resolve relative track URLs
Post by: Artem on September 17, 2026, 08:28:27
Thanks, fixed.