mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-09 07:33:22 +02:00
add torrent detail info subtitles tab
This commit is contained in:
@@ -115,6 +115,12 @@
|
||||
TRANCKER_URL: 'Tracker 地址',
|
||||
ATTRIBUTE_TAGS: '视频属性(标签)',
|
||||
VIDEO_NFO: '视频 NFO',
|
||||
UPLOAD_SUBTITLE: '上传字幕文件',
|
||||
SUBTITLE_LIST: '字幕列表',
|
||||
SUBTITLE_RULES: {
|
||||
0: '如果你有该种子的字幕文件,你可以在这里上传.',
|
||||
1: '请注意字幕文件名的正确格式,比如: Sing.2016.3D.HKG.BluRay.1080p.AVC.Atmos.TrueHD7.1-MTeam.chs&eng.srt'
|
||||
},
|
||||
|
||||
//TorrentsUploadsController
|
||||
TORRENTS_UPLOAD_SUCCESSFULLY: '文件上传成功',
|
||||
|
||||
@@ -115,8 +115,14 @@
|
||||
TRANCKER_URL: 'Tracker Url',
|
||||
ATTRIBUTE_TAGS: 'Video Attribute (tags)',
|
||||
VIDEO_NFO: 'Video NFO',
|
||||
UPLOAD_SUBTITLE: 'Upload Subtitle files',
|
||||
SUBTITLE_LIST: 'Subtitle list',
|
||||
SUBTITLE_RULES: {
|
||||
0: 'If the torrent has no subtitle files, you can uploads here.',
|
||||
1: 'Please note the filename format, such as: <mark>Sing.2016.3D.HKG.BluRay.1080p.AVC.Atmos.TrueHD7.1-MTeam.chs&eng.srt</mark>'
|
||||
},
|
||||
|
||||
//TorrentsUploadsController & views
|
||||
//TorrentsUploadsController & views
|
||||
TORRENTS_UPLOAD_SUCCESSFULLY: 'Successfully uploads file',
|
||||
TORRENTS_UPLOAD_FAILED: 'Failed to uploads file',
|
||||
TORRENTS_NO_FILE_SELECTED: 'No file selected',
|
||||
|
||||
@@ -279,6 +279,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.label-download {
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
|
||||
@@ -302,6 +302,10 @@
|
||||
$window.open(url, '_blank');
|
||||
};
|
||||
|
||||
/**
|
||||
* getVideoNfoHtml
|
||||
* @returns {*}
|
||||
*/
|
||||
vm.getVideoNfoHtml = function () {
|
||||
if (vm.torrentLocalInfo.torrent_nfo) {
|
||||
var info = $filter('videoNfo')(vm.torrentLocalInfo.torrent_nfo);
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
</div>
|
||||
|
||||
<script type="text/ng-template" id="videoInfo.html">
|
||||
<div class="row padding-top-30">
|
||||
<div class="padding-top-30">
|
||||
<dl class="dl-horizontal">
|
||||
<dt class="h-line">{{ 'TRANCKER_URL' | translate}}:</dt>
|
||||
<dd class="h-line">{{vm.torrentLocalInfo.torrent_announce}}</dd>
|
||||
@@ -162,7 +162,12 @@
|
||||
|
||||
<dt class="h-line">{{ 'VIDEO_NFO' | translate}}:</dt>
|
||||
<dd class="h-line">
|
||||
<textarea class="form-control video-nfo margin-top-10" rows="15" ng-bind="vm.torrentLocalInfo.torrent_nfo" readonly></textarea>
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<textarea class="form-control video-nfo margin-top-10" rows="15" ng-bind="vm.torrentLocalInfo.torrent_nfo"
|
||||
readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
@@ -170,7 +175,48 @@
|
||||
|
||||
<script type="text/ng-template" id="subtitleInfo.html">
|
||||
<div>
|
||||
<p>building</p>
|
||||
<div class="padding-top-30">
|
||||
<dl class="dl-horizontal">
|
||||
<dt class="h-line"></dt>
|
||||
<dd class="h-line margin-bottom-30">
|
||||
<ul>
|
||||
<li translate="SUBTITLE_RULES.0"></li>
|
||||
<li translate="SUBTITLE_RULES.1"></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dt class="h-line">{{ 'UPLOAD_SUBTITLE' | translate}}:</dt>
|
||||
<dd class="h-line">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" ng-model="vm.sFile.name" disabled>
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button class="btn btn-primary btn-file"
|
||||
ngf-select="vm.fileSelected = true; vm.successfully = undefined; vm.progress = 0;"
|
||||
ng-model="vm.sFile"
|
||||
accept="application/x-bittorrent"
|
||||
ngf-resize="{width: 400}"
|
||||
ngf-resize-if="$width > 400 || $height > 400"
|
||||
ng-disabled="vm.successfully">{{ 'SELECT_FILE' | translate}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button class="btn btn-success inline-block"
|
||||
ng-click="vm.upload(vm.sFile)">{{ 'DO_UPLOADS' | translate}} ({{vm.progress}}%)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
|
||||
<dt class="h-line" ng-show="vm.torrentLocalInfo.subtitles.length>0">{{ 'SUBTITLE_LIST' | translate}}:</dt>
|
||||
<dd class="h-line" ng-show="vm.torrentLocalInfo.subtitles.length>0">
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user