From 7ebfb53cbb6bae5b93db766e05e9bd4bec16ce8b Mon Sep 17 00:00:00 2001 From: OldHawk Date: Tue, 10 Oct 2017 14:43:45 +0800 Subject: [PATCH] feat(torrents): add movie new sub type and sports new sub type --- config/env/torrents.js | 19 +++++++++++++++++++ modules/core/client/app/trans-string-en.js | 15 +++++++++++++++ modules/core/client/app/trans-string-zh.js | 15 +++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/config/env/torrents.js b/config/env/torrents.js index 6f2dc837..76ec6265 100644 --- a/config/env/torrents.js +++ b/config/env/torrents.js @@ -780,6 +780,25 @@ module.exports = { {name: 'T2D_3D', icon: ''} ] }, + { + name: 'MOVIE_SUB_CAT', + cats: ['movie', 'tvserial'], + value: [ + {name: 'CARTOON', icon: ''}, + {name: 'DOCUMENTARY', icon: ''} + ] + }, + { + name: 'SPORTS_SUB_CAT', + cats: ['sports'], + value: [ + {name: 'FOOTBALL', icon: ''}, + {name: 'BASKETBALL', icon: ''}, + {name: 'RUGBY', icon: ''}, + {name: 'TENNIS', icon: ''}, + {name: 'SNOOKER', icon: ''} + ] + }, { name: 'REGION', cats: ['movie', 'tvserial', 'music', 'sports', 'variety'], diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index e9e5ac94..78e4fa64 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -946,6 +946,21 @@ MTV: 'MTV' }, + MOVIE_SUB_CAT: { + SELF: 'Video Category', + CARTOON: 'Cartoon', + DOCUMENTARY: 'Documentary' + }, + + SPORTS_SUB_CAT: { + SELF: 'Sports Event', + FOOTBALL: 'Football', + BASKETBALL: 'Basketball', + RUGBY: 'Rugby', + TENNIS: 'Tennis', + SNOOKER: 'Snooker' + }, + PLATFORM: { SELF: 'Platform', Windows: 'Windows', diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index 5ce97b8c..09ef572c 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -946,6 +946,21 @@ MTV: 'MTV' }, + MOVIE_SUB_CAT: { + SELF: '视频分类', + CARTOON: '卡通片', + DOCUMENTARY: '记录片' + }, + + SPORTS_SUB_CAT: { + SELF: '运动项目', + FOOTBALL: '篮球', + BASKETBALL: '足球', + RUGBY: '橄榄球', + TENNIS: '网球', + SNOOKER: '斯诺克' + }, + PLATFORM: { SELF: 'Platform', Windows: 'Windows',