File tree Expand file tree Collapse file tree
main/src/main/java/com/sedmelluq/discord/lavaplayer/source/bandcamp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313import org .apache .commons .io .IOUtils ;
1414import org .apache .http .client .methods .CloseableHttpResponse ;
1515import org .apache .http .client .methods .HttpGet ;
16+ import org .jsoup .parser .Parser ;
1617import org .slf4j .Logger ;
1718import org .slf4j .LoggerFactory ;
1819
@@ -62,7 +63,8 @@ private String getTrackMediaUrl(HttpInterface httpInterface) throws IOException
6263 String responseText = IOUtils .toString (response .getEntity ().getContent (), StandardCharsets .UTF_8 );
6364 JsonBrowser trackInfo = sourceManager .readTrackListInformation (responseText );
6465
65- return trackInfo .get ("trackinfo" ).index (0 ).get ("file" ).get ("mp3-128" ).text ();
66+ String url = trackInfo .get ("trackinfo" ).index (0 ).get ("file" ).get ("mp3-128" ).text ();
67+ return url != null ? Parser .unescapeEntities (url , false ) : null ;
6668 }
6769 }
6870
You can’t perform that action at this time.
0 commit comments