fall back to url if url_resolved is empty

This commit is contained in:
Fabio Bas 2021-05-29 10:21:58 +02:00 committed by John Maguire
parent 38ac0d3ccb
commit 058fe6f4be
1 changed files with 1 additions and 0 deletions

View File

@ -434,6 +434,7 @@ void RadioBrowserService::ResolveStationUrl(const QUrl& original_url) {
ret.set_valid(true);
ret.set_title(item["name"].toString());
QUrl url(item["url_resolved"].toString());
if (url.isEmpty()) url.setUrl(item["url"].toString());
ret.set_url(url);
ret.set_art_automatic(item["favicon"].toString());