media downloading

This commit is contained in:
meeb
2020-12-10 02:32:32 +11:00
parent 602eb9b90f
commit 90a8918e40
11 changed files with 288 additions and 57 deletions

View File

@@ -4,3 +4,19 @@ class NoMediaException(Exception):
playlist name or similar, or the upstream source returned an error.
'''
pass
class NoFormatException(Exception):
'''
Raised when a media item is attempted to be downloaded but it has no valid
format combination.
'''
pass
class DownloadFailedException(Exception):
'''
Raised when a downloaded media file is expected to be present, but doesn't
exist.
'''
pass

View File

@@ -77,7 +77,7 @@ main {
h2 {
margin: 0;
padding: 2rem 0 0.5rem 0;
padding: 1.5rem 0 1rem 0;
font-size: 1.5rem;
}

View File

@@ -3,7 +3,7 @@
<div class="col s12">
<div class="card infobox">
<div class="card-content">
<i class="fas fa-info-circle"></i> {{ message|safe }}
<i class="fas fa-fw fa-info-circle"></i> {{ message|safe }}
</div>
</div>
</div>