mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 05:06:47 +02:00
feat(TVseries): show seasons and episodes info in home/list/detail page
This commit is contained in:
@@ -246,6 +246,7 @@
|
||||
TMDB_ID_REQUIRED: 'Please enter TMDB ID',
|
||||
TMDB_RESOURCE_INFO: '4. The resource info from TMDB',
|
||||
TMDB_IS_LOADING: 'Loading the movie info, please wait...',
|
||||
SELECT_SE: '4.1. Please select number of seasons and input number of episodes',
|
||||
SELECT_TAGS: '5. Please select any tags for the resources',
|
||||
ENTER_VIDEO_NFO: '6. Please enter video NFO',
|
||||
TORRENTS_SUBMIT_UPLOAD: '7. Agree the rules and submit your resources',
|
||||
@@ -370,9 +371,11 @@
|
||||
NETWORK: 'Network',
|
||||
NUMBER_OF_SEASONS: 'total seasons',
|
||||
NUMBER_OF_EPISODES: 'total episodes',
|
||||
EPISODES_SEASONS: 'episodes/seasons',
|
||||
TOTAL_SE: 'total S.E',
|
||||
THIS_SE: 'this S.E',
|
||||
UNIT_EPISODES: 'episodes',
|
||||
UNIT_SEASONS: 'seasons'
|
||||
UNIT_SEASONS: 'seasons',
|
||||
EPISODES_INPUT_TIP: 'tip: Only accepts numbers 0-9 and characters minus, for example:9 is 9th episode, 1-30 is first to thirty episode, like 001 12 01-30 12-45 45-127 etc.'
|
||||
},
|
||||
|
||||
/////////////////////////resources tag fields///////////////////////////////////
|
||||
|
||||
@@ -246,6 +246,7 @@
|
||||
TMDB_ID_REQUIRED: '请输入 TMDB ID',
|
||||
TMDB_RESOURCE_INFO: '4. TMDB 资源信息',
|
||||
TMDB_IS_LOADING: '正在检索视频信息,请稍候...',
|
||||
SELECT_SE: '4.1. 请选择电视剧季数并输入本资源为本剧第几集',
|
||||
SELECT_TAGS: '5. 请为资源选择合适的标签',
|
||||
ENTER_VIDEO_NFO: '6. 请输入视频NFO信息',
|
||||
TORRENTS_SUBMIT_UPLOAD: '7. 同意上传协议,并提交',
|
||||
@@ -370,9 +371,11 @@
|
||||
NETWORK: '网络',
|
||||
NUMBER_OF_SEASONS: '总季数',
|
||||
NUMBER_OF_EPISODES: '总集数',
|
||||
EPISODES_SEASONS: '总集/季数',
|
||||
TOTAL_SE: '总季集',
|
||||
THIS_SE: '本资源季集',
|
||||
UNIT_EPISODES: '集',
|
||||
UNIT_SEASONS: '季'
|
||||
UNIT_SEASONS: '季',
|
||||
EPISODES_INPUT_TIP: '提示:输入只接受0-9的数字以及减号字符,如 9 表示第9集,1-30 表示1到30集集合,像 001 12 01-30 12-45 45-127 等.'
|
||||
},
|
||||
|
||||
/////////////////////////resources tag fields///////////////////////////////////
|
||||
|
||||
18
modules/core/client/filter/mt-range.client.filter.js
Normal file
18
modules/core/client/filter/mt-range.client.filter.js
Normal file
@@ -0,0 +1,18 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('core')
|
||||
.filter('mtRange', mtRange);
|
||||
|
||||
function mtRange() {
|
||||
return function (input, total) {
|
||||
total = parseInt(total, 10);
|
||||
|
||||
for (var i = 0; i < total; i++) {
|
||||
input.push(i);
|
||||
}
|
||||
|
||||
return input;
|
||||
};
|
||||
}
|
||||
}());
|
||||
@@ -2,6 +2,10 @@
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.margin-top-5 {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.margin-top-10 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
@@ -75,6 +75,9 @@ body {
|
||||
.network-item {
|
||||
color: #ccc;
|
||||
}
|
||||
.se-info {
|
||||
color: @mt-base-color;
|
||||
}
|
||||
.img-circle {
|
||||
&:hover {
|
||||
/* csslint ignore:start */
|
||||
@@ -171,6 +174,9 @@ body {
|
||||
.release-date {
|
||||
color: #ccc;
|
||||
}
|
||||
.se-info {
|
||||
color: #ccc;
|
||||
}
|
||||
}
|
||||
|
||||
.torrent-user-info {
|
||||
@@ -321,6 +327,20 @@ body {
|
||||
color: #0366d6;
|
||||
}
|
||||
}
|
||||
.se-info {
|
||||
right: 5px;
|
||||
}
|
||||
}
|
||||
.se-info {
|
||||
background-color: #eee;
|
||||
padding: 0 5px;
|
||||
border-radius: 3px;
|
||||
border: solid 1px #aaa;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
color: #555;
|
||||
margin-top: 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -557,6 +577,10 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
.episodes_input_tip {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.nav {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
@@ -255,12 +255,17 @@
|
||||
<dt class="h-line">{{ 'TMDB_FIELDS.LAST_AIR_DATE' | translate}}:</dt>
|
||||
<dd class="h-line">{{vm.TVTopOne.resource_detail_info.last_air_date}}</dd>
|
||||
|
||||
<dt class="h-line">{{ 'TMDB_FIELDS.EPISODES_SEASONS' | translate}}:</dt>
|
||||
<dt class="h-line">{{ 'TMDB_FIELDS.TOTAL_SE' | translate}}:</dt>
|
||||
<dd class="h-line">
|
||||
{{vm.TVTopOne.resource_detail_info.number_of_episodes}} {{ 'TMDB_FIELDS.UNIT_EPISODES' | translate}} /
|
||||
{{vm.TVTopOne.resource_detail_info.number_of_seasons}} {{ 'TMDB_FIELDS.UNIT_SEASONS' | translate}}
|
||||
</dd>
|
||||
|
||||
<dt class="h-line">{{ 'TMDB_FIELDS.THIS_SE' | translate}}:</dt>
|
||||
<dd class="h-line">
|
||||
<span class="se-info">S{{vm.TVTopOne.torrent_seasons}}E{{vm.TVTopOne.torrent_episodes}}</span>
|
||||
</dd>
|
||||
|
||||
<dt class="h-line">{{ 'TMDB_FIELDS.VOTE_AVERAGE' | translate}}:</dt>
|
||||
<dd class="h-line">
|
||||
<span ng-show="vm.TVTopOne">
|
||||
@@ -328,7 +333,7 @@
|
||||
<div class="torrent-tmdb-info">
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<span class="release-date">{{item.resource_detail_info.last_air_date | date: 'yyyy'}}</span>
|
||||
<span class="se-info">S{{item.torrent_seasons}}E{{item.torrent_episodes}}</span>
|
||||
<span title="{{ 'TITLE_ALT.IMDB_VOTES' | translate}}"
|
||||
class="pull-right torrent-votes"><kbd>IMDB</kbd> {{item.resource_detail_info.vote_average}}</span>
|
||||
</li>
|
||||
@@ -383,12 +388,14 @@
|
||||
<div class="newest-info">
|
||||
<div class="text-long">
|
||||
{{$index + 1}}. {{nt.resource_detail_info.name}}
|
||||
<span class="se-info">S{{nt.torrent_seasons}}E{{nt.torrent_episodes}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="newest-item-small text-long">
|
||||
{{$index + 1}}. {{nt.resource_detail_info.name}}
|
||||
<span class="se-info">S{{nt.torrent_seasons}}E{{nt.torrent_episodes}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user