fixup: missed one of the users of a removed attribute

This commit is contained in:
tcely 2025-02-13 01:54:55 -05:00 committed by GitHub
parent 6768fe4385
commit 811bbdf57f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1352,7 +1352,7 @@ class Media(models.Model):
def get_download_state_icon(self, task=None): def get_download_state_icon(self, task=None):
state = self.get_download_state(task) state = self.get_download_state(task)
return self.STATE_ICONS.get(state, self.STATE_ICONS[self.STATE_UNKNOWN]) return self.STATE_ICONS.get(state, self.STATE_ICONS[V(MediaState.UNKNOWN)])
def download_media(self): def download_media(self):
format_str = self.get_format_str() format_str = self.get_format_str()