This commit is contained in:
parent
3241ed1fe3
commit
2858283ffd
@ -243,7 +243,7 @@ def admin_edit(link_id=None):
|
|||||||
clean_titles()
|
clean_titles()
|
||||||
|
|
||||||
# Transmission
|
# 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'
|
download_url = link.link.replace('/view/', '/download/') + '.torrent'
|
||||||
torrent_path = '%s/%s' % (title.folder.path, title.name)
|
torrent_path = '%s/%s' % (title.folder.path, title.name)
|
||||||
torrent = transmission.add_torrent(download_url, download_dir=torrent_path)
|
torrent = transmission.add_torrent(download_url, download_dir=torrent_path)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="field is-horizontal">
|
<div class="field is-horizontal">
|
||||||
<div class="field-body">
|
<div class="field-body">
|
||||||
<div class="field column is-6">
|
<div class="field column">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
{{ action_form.name(class='input', placeholder='Name') }}
|
{{ action_form.name(class='input', placeholder='Name') }}
|
||||||
</div>
|
</div>
|
||||||
@ -17,11 +17,7 @@
|
|||||||
{{ action_form.path(class='input', placeholder='Path') }}
|
{{ action_form.path(class='input', placeholder='Path') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field column">
|
<div class="field column">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<input class="button is-info" type="submit">
|
<input class="button is-info" type="submit">
|
||||||
|
Reference in New Issue
Block a user