Use a more human-friendly MetadataFormat display

This commit is contained in:
tcely 2025-04-22 20:06:47 -04:00 committed by GitHub
parent 479471ef63
commit ead75913a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1950,6 +1950,16 @@ class MetadataFormat(models.Model):
)
def __str__(self):
template = '#{} "{}" from {}: {}'
return template.format(
self.number,
self.key,
self.site,
self.value.get('format') or self.value.get('format_id'),
)
class MediaServer(models.Model):
'''
A remote media server, such as a Plex server.