fall back to url if url_resolved is empty
This commit is contained in:
parent
38ac0d3ccb
commit
058fe6f4be
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user