Fix folder appearance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2021-07-11 10:30:28 +02:00
parent 3241ed1fe3
commit 2858283ffd
2 changed files with 2 additions and 6 deletions

View File

@ -243,7 +243,7 @@ def admin_edit(link_id=None):
clean_titles()
# Transmission
if TRANSMISSION_ENABLED and isinstance(instance, Nyaa):
if TRANSMISSION_ENABLED and title.folder.path is not None and isinstance(instance, Nyaa):
download_url = link.link.replace('/view/', '/download/') + '.torrent'
torrent_path = '%s/%s' % (title.folder.path, title.name)
torrent = transmission.add_torrent(download_url, download_dir=torrent_path)

View File

@ -6,7 +6,7 @@
<div class="field is-horizontal">
<div class="field-body">
<div class="field column is-6">
<div class="field column">
<div class="control is-expanded">
{{ action_form.name(class='input', placeholder='Name') }}
</div>
@ -17,11 +17,7 @@
{{ action_form.path(class='input', placeholder='Path') }}
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-body">
<div class="field column">
<div class="control is-expanded">
<input class="button is-info" type="submit">