Show filesize after download has finished
This commit is contained in:
parent
9ccbec6b15
commit
be1c1114a2
2 changed files with 4 additions and 2 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue