Display only the name part

`media.filename` is a `str`
`media.filepath` is a `Path`

The second has a simple way to remove directories, so use that instead of any custom string manipulation.
This commit is contained in:
tcely 2024-12-22 11:14:32 -05:00 committed by GitHub
parent 20527aa3c2
commit 495f62f25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@
{% if media.downloaded %}
<tr title="The filename the media will be downloaded as">
<td class="hide-on-small-only">Filename</td>
<td><span class="hide-on-med-and-up">Filename<br></span><strong>{{ media.filename }}</strong></td>
<td><span class="hide-on-med-and-up">Filename<br></span><strong>{{ media.filepath.name }}</strong></td>
</tr>
<tr title="The filename the media will be downloaded as">
<td class="hide-on-small-only">Directory</td>