diff --git a/web/directives/channel-config.js b/web/directives/channel-config.js index e3cbfb1..8d8789c 100644 --- a/web/directives/channel-config.js +++ b/web/directives/channel-config.js @@ -13,10 +13,11 @@ module.exports = function ($timeout, $location, dizquetv) { scope.maxSize = 50000; scope.blockCount = 1; - scope.showShuffleOptions = false; + scope.showShuffleOptions = (localStorage.getItem("channel-tools") === "on"); + scope.reverseTools = (localStorage.getItem("channel-tools-position") === "left"); scope.hasFlex = false; - scope.showHelp = false; + scope.showHelp = { check: false } scope._frequencyModified = false; scope._frequencyMessage = ""; scope.minProgramIndex = 0; @@ -1289,10 +1290,12 @@ module.exports = function ($timeout, $location, dizquetv) { scope.toggleTools = () => { scope.showShuffleOptions = !scope.showShuffleOptions + localStorage.setItem("channel-tools", (scope.showShuffleOptions? 'on' : 'off') ); } - scope.toggleToolHelp = () => { - scope.showHelp= !scope.showHelp + scope.toggleToolsDirection = () => { + scope.reverseTools = ! scope.reverseTools; + localStorage.setItem("channel-tools-position", (scope.reverseTools? 'left' : 'right') ); } scope.disablePadding = () => { diff --git a/web/public/style.css b/web/public/style.css index c412128..7b31549 100644 --- a/web/public/style.css +++ b/web/public/style.css @@ -273,6 +273,9 @@ div.programming-panes { padding-top: 0; padding-bottom: 0; } +div.programming-panes div.reverse { + flex-direction: row-reverse; +} div.programming-panes div.programming-pane { max-height: 30rem; overflow-y: auto; @@ -306,28 +309,33 @@ div.programming-programs div.list-group-item { background-color: #eeeeee; } -.programming-pane button:not(.btn-danger), -.programming-pane .input-group-text, -.programming-pane select { +.tools-pane button { + text-overflow: ellipsis; + overflow: hidden; +} + +.tools-pane button:not(.btn-danger), +.tools-pane .input-group-text, +.tools-pane select { border: 1px solid #999999 !important; } -.programming-pane input, -.programming-pane select { +.tools-pane input, +.tools-pane select { font-size: 14px; } -.programming-pane select { +.tools-pane select { text-align: center; border-radius: 0; padding: 0 16px 0 0; height: initial; } -.programming-pane select:first-of-type { +.tools-pane select:first-of-type { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } -.programming-pane .input-group-prepend + button { +.tools-pane .input-group-prepend + button { border-left: 0; } -.programming-pane input.form-control { +.tools-pane input.form-control { border-color: #999999; } diff --git a/web/public/templates/channel-config.html b/web/public/templates/channel-config.html index 2981500..bd3160a 100644 --- a/web/public/templates/channel-config.html +++ b/web/public/templates/channel-config.html @@ -95,26 +95,38 @@
Alternates TV shows in blocks of episodes. You can pick the number of episodes per show in each block and if the order of shows in each block should be randomized. Movies are moved to the bottom.
+Alternates TV shows in blocks of episodes. You can pick the number of episodes per show in each block and if the order of shows in each block should be randomized. Movies are moved to the bottom.
+
Completely randomizes the order of programs.
Like Random Shuffle, but tries to preserve the sequence of episodes for each TV show. If a TV show has multiple instances of its episodes, they are also cycled appropriately.
+Like Random Shuffle, but tries to preserve the sequence of episodes for each TV show. If a TV show has multiple instances of its episodes, they are also cycled appropriately.
Sorts the list by TV Show and the episodes in each TV show by their season/episode number. +
Sorts the list by TV Show and the episodes in each TV show by their season/episode number. Movies are moved to the bottom of the schedule.
Sorts everything by its release date. This will only work correctly if the release dates in Plex are correct. In case any item does not have a release date specified, it will be moved to the bottom.
+Sorts everything by its release date. This will only work correctly if the release dates in Plex are correct. In case any item does not have a release date specified, it will be moved to the bottom.
Will replicate some TV shows or delete duplicates of other TV shows in an effort to make it so the total durations of all episodes of each episode are as similar as possible. It's usually impossible to make the shows perfectly balanced without creating a really high number of duplicates, but it will try to get close. Movies are treated as a single show.
+Will replicate some TV shows or delete duplicates of other TV shows in an effort to make it so the total durations of all episodes of each episode are as similar as possible. It's usually impossible to make the shows perfectly balanced without creating a really high number of duplicates, but it will try to get close. Movies are treated as a single show.
Similar to Balance TV Shows, but this allows you to pick the weights for each of the shows, so you can decide that some shows should be less frequent than other shows. It has similar caveats as "Balance Shows".
+Similar to Balance TV Shows, but this allows you to pick the weights for each of the shows, so you can decide that some shows should be less frequent than other shows. It has similar caveats as "Balance Shows".
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.
+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.
The channel's regular programming between the specified hours. Flex time will fill up the remaining hours.
+The channel's regular programming between the specified hours. Flex time will fill up the remaining hours.
Adds Flex breaks after each TV episode or movie to ensure that the program starts at one of the allowed minute marks. For example, you can use this to ensure that all your programs start at either XX:00 times or XX:30 times. Removes any existing Flex periods before adding the new ones. This button might be disabled if the channel is already too large.
+Adds Flex breaks after each TV episode or movie to ensure that the program starts at one of the allowed minute marks. For example, you can use this to ensure that all your programs start at either XX:00 times or XX:30 times. Removes any existing Flex periods before adding the new ones. This button might be disabled if the channel is already too large.
Adds Flex breaks between programs, attempting to avoid groups of consecutive programs that exceed the specified number of minutes. This button might be disabled if the channel is already too large.
+Adds Flex breaks between programs, attempting to avoid groups of consecutive programs that exceed the specified number of minutes. This button might be disabled if the channel is already too large.
Divides the programming in blocks of 6, 8 or 12 hours then repeats each of the blocks the specified number of times. For example, you can make a channel that plays exactly the same channels in the morning and in the afternoon. This button might be disabled if the channel is already too large.
+Divides the programming in blocks of 6, 8 or 12 hours then repeats each of the blocks the specified number of times. For example, you can make a channel that plays exactly the same channels in the morning and in the afternoon. This button might be disabled if the channel is already too large.
The "Save" button saves the current episodes that are next to be played for each tv show. Then whenever you click the "Recover Episode Popsitions" button, episodes will be rearranged cyclically and they will start with the saved positions. So you can maintain episode sequences even after modifying the channel. If there are any new TV shows, they will start at their current positions. Movies and specials won't change positions. +
The "Save" button saves the current episodes that are next to be played for each tv show. Then whenever you click the "Recover Episode Popsitions" button, episodes will be rearranged cyclically and they will start with the saved positions. So you can maintain episode sequences even after modifying the channel. If there are any new TV shows, they will start at their current positions. Movies and specials won't change positions.
Makes multiple copies of the schedule and plays them in sequence. Normally this isn't necessary, because dizqueTV will always play the schedule back from the beginning when it finishes. But creating replicas is a useful intermediary step sometimes before applying other transformations. Note that because very large channels can be problematic, the number of replicas will be limited to avoid creating really large channels.
+Makes multiple copies of the schedule and plays them in sequence. Normally this isn't necessary, because dizqueTV will always play the schedule back from the beginning when it finishes. But creating replicas is a useful intermediary step sometimes before applying other transformations. Note that because very large channels can be problematic, the number of replicas will be limited to avoid creating really large channels.
Like "Replicate", it will make multiple copies of the programming. In addition it will shuffle the programs, but it will make sure not to have too small a distance between two identical programs.
+Like "Replicate", it will make multiple copies of the programming. In addition it will shuffle the programs, but it will make sure not to have too small a distance between two identical programs.
Adds a channel redirect. During this period of time, the channel will redirect to another channel.
+Adds a channel redirect. During this period of time, the channel will redirect to another channel.
Will redirect to another channel while between the selected hours.
+Will redirect to another channel while between the selected hours.
Removes repeated videos.
+Removes repeated videos.
Removes any Flex periods from the schedule.
+Removes any Flex periods from the schedule.
Removes any specials from the schedule. Specials are episodes with season "00".
+Removes any specials from the schedule. Specials are episodes with season "00".
Allows you to pick specific shows to remove from the channel.
+Allows you to pick specific shows to remove from the channel.
Wipes out the schedule so that you can start over.
+Wipes out the schedule so that you can start over.