Describe the bug
The Song.save_lyrics() method ignores the sanitize parameter. It prints the correct name when verbose=True, but the sanitize param isn't passed to the Song.to_json()/Song.to_text() methods so the filename is still sanitized by default.
Expected behavior
Setting sanitize=False when using Song.save_lyrics() should save to the input filename without changing the path in anyway.
To Reproduce
import lyricsgenius
save_path = "data/path.json"
genius = lyricsgenius.Genius("my_client_access_token_here")
song = genius.search_song(r"To You", "Andy Shauf")
# Will print correct file name,
# but save to 'datapath.json' rather than 'data/path.json'
song.save_lyrics(save_path, sanitize=False)
Describe the bug The
Song.save_lyrics()
method ignores thesanitize
parameter. It prints the correct name whenverbose=True
, but thesanitize
param isn't passed to theSong.to_json()
/Song.to_text()
methods so thefilename
is still sanitized by default.Expected behavior Setting
sanitize=False
when usingSong.save_lyrics()
should save to the inputfilename
without changing the path in anyway.To Reproduce