Show filesize after download has finished

This commit is contained in:
Thomas Perl 2010-12-20 15:00:41 +01:00
parent 9ccbec6b15
commit be1c1114a2
2 changed files with 4 additions and 2 deletions

View file

@ -359,7 +359,9 @@ class EpisodeListModel(gtk.ListStore):
self.C_TOOLTIP, tooltip, \
self.C_TIME, episode.get_play_info_string(), \
self.C_TIME_VISIBLE, episode.total_time, \
self.C_LOCKED, episode.is_locked)
self.C_LOCKED, episode.is_locked, \
self.C_FILESIZE_TEXT, self._format_filesize(episode), \
self.C_FILESIZE, episode.file_size)
def _get_icon_from_image(self,image_path, icon_size):
"""

View file

@ -1156,6 +1156,6 @@ class PodcastEpisode(PodcastModelObject):
return hash((self.title, self.published))
def update_from(self, episode):
for k in ('title', 'url', 'description', 'link', 'published', 'guid'):
for k in ('title', 'url', 'description', 'link', 'published', 'guid', 'file_size'):
setattr(self, k, getattr(episode, k))