extend torrent webseed lifetime to an hour
This commit is contained in:
parent
7ac3b05a1d
commit
e18dacd26b
2 changed files with 3 additions and 1 deletions
|
@ -137,7 +137,8 @@ def _torrent_for_storage(storage_ref, is_public):
|
|||
|
||||
# Lookup the webseed path for the storage.
|
||||
path = model.storage.get_layer_path(storage_ref)
|
||||
webseed = storage.get_direct_download_url(storage_ref.locations, path)
|
||||
webseed = storage.get_direct_download_url(storage_ref.locations, path,
|
||||
expires_in=app.config['BITTORRENT_WEBSEED_LIFETIME'])
|
||||
if webseed is None:
|
||||
# We cannot support webseeds for storages that cannot provide direct downloads.
|
||||
abort(make_response('Storage engine does not support seeding.', 501))
|
||||
|
|
Reference in a new issue