Skip to content

Commit 1431dc6

Browse files
committed
Fixed parsing of some strings.
1 parent 1e6f355 commit 1431dc6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Extensions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public static void removeComments(Node node) {
3131
public static String parsing(String text) {
3232
text=text.replace(""","\"").replace("'","'");
3333
text=text.replace("&","&");
34+
text=text.replace("<i>","").replace("</i>","");
3435
return text;
3536
}
3637

src/Lyrics.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public String fromLyricWiki() {
5454

5555
public String fromMetroLyrics() {
5656
try {
57-
URI uri=new URI("http","www.metrolyrics.com","/"+track+"-lyrics-"+artist+".html",null,null);
57+
String fixArtist=artist.replace("/","").replace("-","");
58+
URI uri=new URI("http","www.metrolyrics.com","/"+track+"-lyrics-"+fixArtist+".html",null,null);
5859
url=uri.toASCIIString().replace("%20","-");
5960
} catch(URISyntaxException use) { System.err.println(use); }
6061

0 commit comments

Comments
 (0)