1. Vladimir Kolev
  2. gSharkDown
Issue #32 resolved

patch: download files with slash into names

ioggstream
created an issue

reproduce: - search a file with a "/" into his name - try to download

expected: - download file

actual: - can't save file

note: - this is because unix uses "/" as directory separator

patch:

{{{

!python

--- a/gsharkdown.py Tue Oct 18 13:49:17 2011 -0300 +++ b/gsharkdown.py Thu Oct 20 23:15:51 2011 +0200 @@ -944,6 +944,7 @@ filename = "%s - %s.mp3" % (song["ArtistName"].strip("<>:\"/\|?"), song["SongName"].strip("<>:\"/\|?"))

  • filename = filename.replace("/","-") filename = os.path.join(CONFIG['down_path'], filename) filename = self.get_overwritten_filename(filename)

}}}

Comments (1)

  1. Log in to comment