"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')
|
ANNOUNCE_URL = app.config.get('TORRENT_ANNOUNCE_URL')
|
||||||
NAMING_SALT = app.config.get('TORRENT_NAMING_SALT')
|
NAMING_SALT = app.config.get('TORRENT_NAMING_SALT')
|
||||||
|
REGISTRY_TITLE = app.config.get('REGISTRY_TITLE')
|
||||||
|
|
||||||
def public_torrent_filename(blob_uuid):
|
def public_torrent_filename(blob_uuid):
|
||||||
return hashlib.sha256(blob_uuid).hexdigest()
|
return hashlib.sha256(blob_uuid).hexdigest()
|
||||||
|
@ -22,7 +23,7 @@ def make_torrent(name, webseed, length, piece_length, pieces):
|
||||||
'announce': ANNOUNCE_URL,
|
'announce': ANNOUNCE_URL,
|
||||||
'url-list': webseed,
|
'url-list': webseed,
|
||||||
'encoding': 'UTF-8',
|
'encoding': 'UTF-8',
|
||||||
'created by': 'Quay Container Registry',
|
'created by': REGISTRY_TITLE,
|
||||||
'creation date': int(time.time()),
|
'creation date': int(time.time()),
|
||||||
'info': {
|
'info': {
|
||||||
'name': name,
|
'name': name,
|
||||||
|
|
Reference in a new issue