commit
8935944c88
@ -340,6 +340,7 @@ module.exports = function ($scope, $timeout, dizquetv) {
|
||||
}
|
||||
}
|
||||
|
||||
$scope.adjustZoom();
|
||||
$scope.refresh();
|
||||
|
||||
$scope.checkUpdates = async () => {
|
||||
|
||||
@ -388,9 +388,8 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions) {
|
||||
adjustStartTimeToCurrentProgram();
|
||||
updateChannelDuration();
|
||||
}
|
||||
scope.removeDuplicates = () => {
|
||||
let removeDuplicatesSub = (progs) => {
|
||||
let tmpProgs = {}
|
||||
let progs = scope.channel.programs
|
||||
for (let i = 0, l = progs.length; i < l; i++) {
|
||||
if ( progs[i].type ==='redirect' ) {
|
||||
tmpProgs['_redirect ' + progs[i].channel + ' _ '+ progs[i].duration ] = progs[i];
|
||||
@ -405,7 +404,10 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions) {
|
||||
for (let i = 0, l = keys.length; i < l; i++) {
|
||||
newProgs.push(tmpProgs[keys[i]])
|
||||
}
|
||||
scope.channel.programs = newProgs
|
||||
return newProgs;
|
||||
}
|
||||
scope.removeDuplicates = () => {
|
||||
scope.channel.programs = removeDuplicatesSub(scope.channel.programs);
|
||||
updateChannelDuration(); //oops someone forgot to add this
|
||||
}
|
||||
scope.removeOffline = () => {
|
||||
@ -1854,7 +1856,8 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions) {
|
||||
updateChannelDuration();
|
||||
}
|
||||
scope.onTimeSlotsButtonClick = () => {
|
||||
scope.timeSlots.startDialog(scope.channel.programs, scope.maxSize, scope.channel.scheduleBackup );
|
||||
let progs = removeDuplicatesSub( scope.channel.programs );
|
||||
scope.timeSlots.startDialog( progs, scope.maxSize, scope.channel.scheduleBackup );
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
</head>
|
||||
|
||||
<body ng-app="myApp" style="min-width: 340px;">
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<h1>
|
||||
<a href="#!/guide"><img id='dizquetv-logo' src="images/dizquetv.png" alt="logo" /></a>
|
||||
dizqueTV
|
||||
@ -27,7 +27,7 @@
|
||||
</a>
|
||||
</small>
|
||||
<small class="pull-right" style="padding: 5px;">
|
||||
<a href="https://discord.gg/FUpCyZBTDM" title='Discord' >
|
||||
<a href="https://discord.gg/bgD9XdDvZE" title='Discord' >
|
||||
<span class="fab fa-discord"></span>
|
||||
</a>
|
||||
</small>
|
||||
|
||||
@ -287,7 +287,7 @@
|
||||
<i class='fa fa-plus'></i> Add Flex...
|
||||
</button>
|
||||
</div>
|
||||
<p ng-show='showHelp.check'>Programs a Flex time slot. Normally you't use pad times, restrict times or add breaks to add a large quantity of Flex times at once, but this exists for more specific cases.</p>
|
||||
<p ng-show='showHelp.check'>Programs a Flex time slot. Normally you'd use pad times, restrict times or add breaks to add a large quantity of Flex times at once, but this exists for more specific cases.</p>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-6 col-lg-12" style="padding: 5px;" ng-show="hasPrograms()">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user