"created by" now uses REGISTRY_TITLE

This commit is contained in:
Jimmy Zelinskie 2016-01-04 15:57:25 -05:00
parent 0f6c77caab
commit fff016d0f5

View file

@ -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,