ishwi / Chuu

Last.fm bot for discord
MIT License
172 stars 20 forks source link

!wkt manual param with --noredirect on song with ' in the title bugged #63

Open rmn0x01 opened 3 years ago

rmn0x01 commented 3 years ago

I found that when !wkt-ing a song has some characters (in my case its a ' character) plus a --noredirect param, it triggers error number 7, which is You need to add the escape character "\" in the "-" that appear on the album or song. While a normal character, or some characters but without --noredirect param works perfectly.

I think its something to do with ishwi/chuu/src/main/java/core/parsers/ArtistAlbumParser.java string split checker on line 125 which havent handled the added parameter (if (content.length > 2)).

Example to reproduce the bug: !wkt artist - a song with an apostro'phe --noredirect