SponsorBlock categories (#634)
* SponsorBlock categories * perf * remove todo * tweak * UI is working * Lint fix * changelog * Bug fix * Restore timer * Locale * Comment * tweaks * web app * remove unsued svelte ignore * lint web app --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
0bc5ab6117
commit
fcae05a0da
34 files changed
+1039
-422
No files matched your search
@@ -128,6 +128,52 @@
|
||||
type: "boolean",
|
||||
defaultValue: true,
|
||||
},
|
||||
{
|
||||
displayText: "Categories",
|
||||
key: "sponsorblock.categories",
|
||||
description: "Configure which segments to skip",
|
||||
type: "assocarray",
|
||||
visibility: "tv",
|
||||
rokuComponent: "SponsorBlockCategoriesControl",
|
||||
defaultValue: {
|
||||
// TODO:P1 support for exclusive_access and chapter
|
||||
// TODO:P1 support for manual skip for poi_highlight
|
||||
sponsor: {
|
||||
option: "auto_skip",
|
||||
},
|
||||
selfpromo: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
interaction: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
poi_highlight: {
|
||||
option: "show_in_seekbar",
|
||||
},
|
||||
intro: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
outro: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
preview: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
filler: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
music_offtopic: {
|
||||
option: "manual_skip",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayText: "Categories",
|
||||
key: "sponsorblock.categories",
|
||||
description: "Configure which segments to skip",
|
||||
visibility: "web",
|
||||
svelteComponent: "SponsorBlockCategoriesControl",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,116 +1,70 @@
|
||||
{
|
||||
serverAddress: 'https://sponsor.ajay.app',
|
||||
serverAddress: "https://sponsor.ajay.app",
|
||||
categoryList: [
|
||||
'sponsor',
|
||||
'selfpromo',
|
||||
'exclusive_access',
|
||||
'interaction',
|
||||
'poi_highlight',
|
||||
'intro',
|
||||
'outro',
|
||||
'preview',
|
||||
'filler',
|
||||
'chapter',
|
||||
'music_offtopic',
|
||||
"sponsor",
|
||||
"selfpromo",
|
||||
"interaction",
|
||||
"poi_highlight",
|
||||
"intro",
|
||||
"outro",
|
||||
"preview",
|
||||
"filler",
|
||||
"music_offtopic",
|
||||
],
|
||||
categories: {
|
||||
sponsor: {
|
||||
title: 'Sponsor',
|
||||
short_title: 'Sponsor',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
'full',
|
||||
],
|
||||
color: '#00D400B3',
|
||||
title: "Sponsor",
|
||||
short_title: "Sponsor",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#00D400B3",
|
||||
},
|
||||
selfpromo: {
|
||||
title: 'Unpaid/Self Promotion',
|
||||
short_title: 'Unpaid/Self Promotion',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
'full',
|
||||
],
|
||||
color: '#FFFF00B3',
|
||||
},
|
||||
exclusive_access: {
|
||||
title: 'Exclusive Access',
|
||||
short_title: 'Exclusive Access',
|
||||
categorySupport: [
|
||||
'full',
|
||||
],
|
||||
color: '#008A5CB3',
|
||||
title: "Unpaid/Self Promotion",
|
||||
short_title: "Unpaid/Self Promotion",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#FFFF00B3",
|
||||
},
|
||||
interaction: {
|
||||
title: 'Interaction Reminder (Subscribe)',
|
||||
short_title: 'Interaction Reminder',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
],
|
||||
color: '#CC00FFB3',
|
||||
title: "Interaction Reminder (Subscribe)",
|
||||
short_title: "Interaction Reminder",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#CC00FFB3",
|
||||
},
|
||||
poi_highlight: {
|
||||
title: 'Highlight',
|
||||
short_title: 'Highlight',
|
||||
categorySupport: [
|
||||
'poi',
|
||||
],
|
||||
color: '#FF1684B3',
|
||||
title: "Highlight",
|
||||
short_title: "Highlight",
|
||||
options: ["show_in_seekbar", "disable"],
|
||||
color: "#FF1684B3",
|
||||
},
|
||||
intro: {
|
||||
title: 'Intermission/Intro Animation',
|
||||
short_title: 'Intermission',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
],
|
||||
color: '#00FFFFB3',
|
||||
title: "Intermission/Intro Animation",
|
||||
short_title: "Intermission",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#00FFFFB3",
|
||||
},
|
||||
outro: {
|
||||
title: 'Endcards/Credits',
|
||||
short_title: 'Endcards/Credits',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
],
|
||||
color: '#0202EDB3',
|
||||
title: "Endcards/Credits",
|
||||
short_title: "Endcards/Credits",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#0202EDB3",
|
||||
},
|
||||
preview: {
|
||||
title: 'Preview/Recap/Hook',
|
||||
// Note: short title renamed from "Preview/Recap/Hook" to "Preview/Recap" to fit in the UI
|
||||
short_title: 'Preview/Recap',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
],
|
||||
color: '#008FD6B3',
|
||||
title: "Preview/Recap/Hook",
|
||||
short_title: "Preview/Recap",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#008FD6B3",
|
||||
},
|
||||
filler: {
|
||||
title: 'Filler Tangent/Jokes',
|
||||
short_title: 'Filler',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
'mute',
|
||||
],
|
||||
color: '#7300FFE6',
|
||||
},
|
||||
chapter: {
|
||||
title: 'Chapter',
|
||||
short_title: 'Chapter',
|
||||
categorySupport: [
|
||||
'chapter',
|
||||
],
|
||||
color: '#FFFFFFC8',
|
||||
title: "Filler Tangent/Jokes",
|
||||
short_title: "Filler",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#7300FFE6",
|
||||
},
|
||||
music_offtopic: {
|
||||
title: 'Music: Non-Music Section',
|
||||
short_title: 'Non-Music',
|
||||
categorySupport: [
|
||||
'skip',
|
||||
],
|
||||
color: '#FF9900B3',
|
||||
title: "Music: Non-Music Section",
|
||||
short_title: "Non-Music",
|
||||
options: ["auto_skip", "manual_skip", "show_in_seekbar", "disable"],
|
||||
color: "#FF9900B3",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user