Fix issue where no URL would be retrieved for search results.

master
Nekojimi 9 months ago
parent a901163af3
commit 758f6a0d48
  1. 7
      src/main/java/moe/nekojimi/chords/TrackRequest.java

@ -110,7 +110,12 @@ public class TrackRequest implements Comparable<TrackRequest>
public URL getUrl() public URL getUrl()
{ {
return url; if (url != null)
return url;
else if (result != null)
return (result.getLink());
else
return null;
} }
public void setUrl(URL url) public void setUrl(URL url)

Loading…
Cancel
Save