feat(TVseries): add seasons and episodes info of TVseries

This commit is contained in:
OldHawk
2017-05-24 13:21:18 +08:00
parent 09e239fa2a
commit 8370948b4b
5 changed files with 67 additions and 11 deletions

View File

@@ -366,7 +366,13 @@
ORIGINAL_NAME: 'original_name',
NAME: 'name',
FIRST_AIR_DATE: 'first air date',
LAST_AIR_DATE: 'last air date'
LAST_AIR_DATE: 'last air date',
NETWORK: 'Network',
NUMBER_OF_SEASONS: 'total seasons',
NUMBER_OF_EPISODES: 'total episodes',
EPISODES_SEASONS: 'episodes/seasons',
UNIT_EPISODES: 'episodes',
UNIT_SEASONS: 'seasons'
},
/////////////////////////resources tag fields///////////////////////////////////

View File

@@ -366,7 +366,13 @@
ORIGINAL_NAME: '原剧名',
NAME: '剧名',
FIRST_AIR_DATE: '首次上演时间',
LAST_AIR_DATE: '最近上演时间'
LAST_AIR_DATE: '最近上演时间',
NETWORK: '网络',
NUMBER_OF_SEASONS: '总季数',
NUMBER_OF_EPISODES: '总集数',
EPISODES_SEASONS: '总集/季数',
UNIT_EPISODES: '集',
UNIT_SEASONS: '季'
},
/////////////////////////resources tag fields///////////////////////////////////

View File

@@ -44,8 +44,6 @@ body {
top: -20px;
font-size: 100px;
font-weight: bold;
text-shadow: 2px 0 0 #222, -2px 0 0 #222, 0 2px 0 #222, 0 -2px 0 #222;
filter: Glow(color=#f00, strength=100);
}
.topone {
color: #ccc;
@@ -74,6 +72,9 @@ body {
.genres-item {
color: #ccc;
}
.network-item {
color: #ccc;
}
.img-circle {
&:hover {
/* csslint ignore:start */
@@ -455,6 +456,18 @@ body {
}
}
.list-all-network {
.network-item {
color: @gray-light;
&:not(:first-child) {
&::before {
content: " | ";
font-weight: bold;
}
}
}
}
.list-all-countries {
.country-item:not(:first-child) {
&::before {

View File

@@ -221,6 +221,13 @@
<dt class="h-line">{{ 'TMDB_FIELDS.NAME' | translate}}</dt>
<dd class="h-line">{{vm.TVTopOne.resource_detail_info.name}}</dd>
<div ng-show="vm.TVTopOne.resource_detail_info.networks.length > 0">
<dt class="h-line">{{ 'TMDB_FIELDS.NETWORK' | translate}}</dt>
<dd class="h-line list-all-network">
<span class="network-item" ng-repeat="item in vm.TVTopOne.resource_detail_info.networks">{{item.name}}</span>
</dd>
</div>
<dt class="h-line">{{ 'TMDB_FIELDS.ORIGINAL_LANGUAGE' | translate}}</dt>
<dd class="h-line">{{vm.TVTopOne.resource_detail_info.original_language}}</dd>
@@ -248,6 +255,12 @@
<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>
<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.VOTE_AVERAGE' | translate}}</dt>
<dd class="h-line">
<span ng-show="vm.TVTopOne">

View File

@@ -40,6 +40,14 @@
<dd class="h-line">{{vm.getDirector();}}</dd>
</div>
<div ng-show="vm.torrentLocalInfo.resource_detail_info.networks.length > 0">
<dt class="h-line">{{ 'TMDB_FIELDS.NETWORK' | translate}}</dt>
<dd class="h-line list-all-network">
<span class="network-item"
ng-repeat="item in vm.torrentLocalInfo.resource_detail_info.networks">{{item.name}}</span>
</dd>
</div>
<dt class="h-line">{{ 'TMDB_FIELDS.ORIGINAL_LANGUAGE' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.resource_detail_info.original_language}}</dd>
@@ -48,23 +56,23 @@
<span class="genres-item" ng-repeat="item in vm.torrentLocalInfo.resource_detail_info.genres">{{item.name}}</span>
</dd>
<dt class="h-line">{{ 'TMDB_FIELDS.PRODUCTION_COMPANIES' | translate}}</dt>
<dd class="h-line list-all-companies">
<div ng-show="vm.torrentLocalInfo.resource_detail_info.production_companies.length > 0">
<dt class="h-line">{{ 'TMDB_FIELDS.PRODUCTION_COMPANIES' | translate}}</dt>
<dd class="h-line list-all-companies">
<span class="company-item"
ng-repeat="item in vm.torrentLocalInfo.resource_detail_info.production_companies">{{item.name}}</span>
<span ng-show="vm.torrentLocalInfo.resource_detail_info.production_companies.length ==0">-</span>
</dd>
</dd>
</div>
<div ng-show="vm.torrentLocalInfo.resource_detail_info.production_countries">
<div ng-show="vm.torrentLocalInfo.resource_detail_info.production_countries.length > 0">
<dt class="h-line">{{ 'TMDB_FIELDS.PRODUCTION_COUNTRIES' | translate}}</dt>
<dd class="h-line list-all-countries">
<span class="country-item"
ng-repeat="item in vm.torrentLocalInfo.resource_detail_info.production_countries">{{item.iso_3166_1}}</span>
<span ng-show="vm.torrentLocalInfo.resource_detail_info.production_countries.length ==0">-</span>
</dd>
</div>
<div ng-show="vm.torrentLocalInfo.resource_detail_info.origin_country">
<div ng-show="vm.torrentLocalInfo.resource_detail_info.origin_country.length > 0">
<dt class="h-line">{{ 'TMDB_FIELDS.PRODUCTION_COUNTRIES' | translate}}</dt>
<dd class="h-line list-all-countries">
<span class="country-item"
@@ -88,6 +96,16 @@
<dd class="h-line">{{vm.torrentLocalInfo.resource_detail_info.last_air_date}}</dd>
</div>
<div ng-show="vm.torrentLocalInfo.resource_detail_info.number_of_seasons">
<dt class="h-line">{{ 'TMDB_FIELDS.NUMBER_OF_SEASONS' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.resource_detail_info.number_of_seasons}} {{ 'TMDB_FIELDS.UNIT_SEASONS' | translate}}</dd>
</div>
<div ng-show="vm.torrentLocalInfo.resource_detail_info.number_of_episodes">
<dt class="h-line">{{ 'TMDB_FIELDS.NUMBER_OF_EPISODES' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.resource_detail_info.number_of_episodes}} {{ 'TMDB_FIELDS.UNIT_EPISODES' | translate}}</dd>
</div>
<div ng-hide="!vm.torrentLocalInfo.resource_detail_info.runtime || vm.torrentLocalInfo.resource_detail_info.runtime == 0">
<dt class="h-line">{{ 'TMDB_FIELDS.RUNTIME' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.resource_detail_info.runtime | runtime}}</dd>