"created by" now uses REGISTRY_TITLE
This commit is contained in:
parent
0f6c77caab
commit
fff016d0f5
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ from app import app
|
|||
|
||||
ANNOUNCE_URL = app.config.get('TORRENT_ANNOUNCE_URL')
|
||||
NAMING_SALT = app.config.get('TORRENT_NAMING_SALT')
|
||||
REGISTRY_TITLE = app.config.get('REGISTRY_TITLE')
|
||||
|
||||
def public_torrent_filename(blob_uuid):
|
||||
return hashlib.sha256(blob_uuid).hexdigest()
|
||||
|
@ -22,7 +23,7 @@ def make_torrent(name, webseed, length, piece_length, pieces):
|
|||
'announce': ANNOUNCE_URL,
|
||||
'url-list': webseed,
|
||||
'encoding': 'UTF-8',
|
||||
'created by': 'Quay Container Registry',
|
||||
'created by': REGISTRY_TITLE,
|
||||
'creation date': int(time.time()),
|
||||
'info': {
|
||||
'name': name,
|
||||
|
|
Reference in a new issue