Skip to content

Commit

Permalink
Fix UnicodeDecodeError on startup (bug 1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Nov 12, 2011
1 parent 619b6f3 commit 182ef9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gpodder/model.py
Expand Up @@ -571,7 +571,8 @@ def local_filename(self, create, force_update=False, check_only=False,
self.download_filename = wanted_filename
self.save()

return os.path.join(util.sanitize_encoding(self.channel.save_dir), self.download_filename)
return os.path.join(util.sanitize_encoding(self.channel.save_dir),
util.sanitize_encoding(self.download_filename))

def set_mimetype(self, mimetype, commit=False):
"""Sets the mimetype for this episode"""
Expand Down

0 comments on commit 182ef9e

Please sign in to comment.