Skip to content
Commit d30ff8d1 authored by Bertrand Lorentz's avatar Bertrand Lorentz
Browse files

AmazonMp3: Handle plain text AMZ files now sent by Amazon (bgo#661467)

The Amazon store now gives us unencrypted AMZ files in some situations.
They have a slightly different format than usual : there's no XML
declaration, and the <playlist> tag doesn't have a version attribute.

That means that the detection of unencrypted files we had for debugging
purposes doesn't work, and using XspfPlaylistFormat.MagicFormat wouldn't
work either. So we just look at the first 10 bytes.

Also add another unit test with an example of a clear text AMZ file.
parent dd9d4bf9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment