add uploader variable, resolves #270

This commit is contained in:
meeb 2023-10-12 15:33:58 +11:00
parent 6d3a7bf859
commit e3e7352600
2 changed files with 7 additions and 1 deletions

View File

@ -510,7 +510,7 @@ class Source(models.Model):
'mm': now.strftime('%m'),
'dd': now.strftime('%d'),
'source': self.slugname,
'source_full': self.name,
'source_full': self.source.name,
'title': 'some-media-title-name',
'title_full': 'Some Media Title Name',
'key': 'SoMeUnIqUiD',
@ -1020,6 +1020,7 @@ class Media(models.Model):
'acodec': display_format['acodec'],
'fps': display_format['fps'],
'hdr': display_format['hdr'],
'uploader': self.uploader,
}
@property

View File

@ -43,6 +43,11 @@
<td>Full source name</td>
<td>My Source</td>
</tr>
<tr>
<td>{uploader}</td>
<td>Uploader name</td>
<td>Some Channel Name</td>
</tr>
<tr>
<td>{title}</td>
<td>Lower case media title, max 80 chars</td>