Fix #729 tracker icons not being saved in the correct location
This commit is contained in:
parent
1bf7422904
commit
e31eab5303
@ -10,6 +10,7 @@ Deluge 1.1.1 - (In Development)
|
|||||||
Misc:
|
Misc:
|
||||||
* Fix bdecoding some torrent files
|
* Fix bdecoding some torrent files
|
||||||
* Fix the -l, --logfile option
|
* Fix the -l, --logfile option
|
||||||
|
* Fix #729 tracker icons not being saved in the correct location
|
||||||
|
|
||||||
Deluge 1.1.0 - "Time gas!" (10 January 2009)
|
Deluge 1.1.0 - "Time gas!" (10 January 2009)
|
||||||
Core:
|
Core:
|
||||||
|
|||||||
@ -136,7 +136,7 @@ class TrackerIcons(object):
|
|||||||
ext, icon_data = self._fetch_icon(tracker_host)
|
ext, icon_data = self._fetch_icon(tracker_host)
|
||||||
|
|
||||||
if icon_data:
|
if icon_data:
|
||||||
filename = os.path.join(deluge.configmanager.get_config_dir(), "%s.%s" % (tracker_host, ext))
|
filename = os.path.join(self.image_dir, "%s.%s" % (tracker_host, ext))
|
||||||
f = open(filename,"wb")
|
f = open(filename,"wb")
|
||||||
f.write(icon_data)
|
f.write(icon_data)
|
||||||
f.close()
|
f.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user