mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 15:19:03 +00:00
[templates, config] Add SITE_FLAVOR for selecting nyaa/sukebei, update templates
By default TABLE_PREFIX is derived from flavor. Added back Date column, adjusted column widths
This commit is contained in:
@@ -7,7 +7,7 @@ db.create_all()
|
||||
|
||||
# Insert categories
|
||||
|
||||
if app.config['TABLE_PREFIX'] == 'nyaa_':
|
||||
if app.config['SITE_FLAVOR'] == 'nyaa':
|
||||
CATEGORIES = [
|
||||
('Anime', ['Anime Music Video', 'English-translated', 'Non-English-translated', 'Raw']),
|
||||
('Audio', ['Lossless', 'Lossy']),
|
||||
@@ -16,7 +16,7 @@ if app.config['TABLE_PREFIX'] == 'nyaa_':
|
||||
('Pictures', ['Graphics', 'Photos']),
|
||||
('Software', ['Applications', 'Games']),
|
||||
]
|
||||
elif app.config['TABLE_PREFIX'] == 'sukebei_':
|
||||
elif app.config['SITE_FLAVOR'] == 'sukebei':
|
||||
CATEGORIES = [
|
||||
('Art', ['Anime', 'Doujinshi', 'Games', 'Manga', 'Pictures']),
|
||||
('Real Life', ['Photobooks / Pictures', 'Videos']),
|
||||
|
||||
Reference in New Issue
Block a user