Closed krisgesling closed 4 years ago
One thing to note is that until the next release of Mycroft core, it's not recommended to use multiple files due to reloading issues.
Damn, forgot about that... will revert the function extraction
Re-tested and working fine with the latest updates as well :+1:
Full details in issue #87
As outlined in linked issue, this adds a temporary workaround for the NPR News feed stripping the query strings off the media url. This should not be done to all urls as these may be used for routing.
Also added a check on the downloaded file to see if it's HTML rather than audio. The url provided by NPR here (including query strings) returns a header.content-type of audio but the curl download is clearly a HTML error page. The check is not robust for most uses, but should catch clear HTML vs audio/media files.