Add missing conf for piped.kavin.rocks (fix #151)

This commit is contained in:
Tamius Han 2021-07-14 22:45:00 +02:00
parent cfcd0c5945
commit 5ad8302084
2 changed files with 59 additions and 2 deletions

View File

@ -172,7 +172,26 @@ const ExtensionConfPatch = [
} }
}, },
"css": "" "css": ""
} },
"piped.kavin.rocks": {
mode: 0,
autoar: 0,
type: 'community',
autoarFallback: 0,
stretch: 0,
videoAlignment: -1,
keyboardShortcutsEnabled: 0,
DOM: {
player: {
manual: false,
querySelectors: "",
additionalCss: "",
useRelativeAncestor: false,
playerNodeCss: ""
}
},
css: ".shaka-video-container {\n flex-direction: column !important;\n}"
},
}, },
updateFn: (userOptions, defaultOptions) => { updateFn: (userOptions, defaultOptions) => {
// 5.0.5 initially incorrectly had app.plex.tv marked as 'user-added' // 5.0.5 initially incorrectly had app.plex.tv marked as 'user-added'
@ -180,6 +199,25 @@ const ExtensionConfPatch = [
// changed configuration. Site patches submitted by community should have // changed configuration. Site patches submitted by community should have
// 'community' type. extConfPatch for 5.0.5 was also retroactively corrected. // 'community' type. extConfPatch for 5.0.5 was also retroactively corrected.
userOptions.sites['app.plex.tv'].type = 'community'; userOptions.sites['app.plex.tv'].type = 'community';
userOptions.sites['piped.kavin.rocks'] = {
mode: 0,
autoar: 0,
type: 'community',
autoarFallback: 0,
stretch: 0,
videoAlignment: -1,
keyboardShortcutsEnabled: 0,
DOM: {
player: {
manual: false,
querySelectors: "",
additionalCss: "",
useRelativeAncestor: false,
playerNodeCss: ""
}
},
css: ".shaka-video-container {\n flex-direction: column !important;\n}"
};
} }
} }
]; ];

View File

@ -1231,7 +1231,26 @@ const ExtensionConf: SettingsInterface = {
} }
}, },
"css": "" "css": ""
} },
"piped.kavin.rocks": {
mode: 0,
autoar: 0,
type: 'community',
autoarFallback: 0,
stretch: 0,
videoAlignment: -1,
keyboardShortcutsEnabled: 0,
DOM: {
player: {
manual: false,
querySelectors: "",
additionalCss: "",
useRelativeAncestor: false,
playerNodeCss: ""
}
},
css: ".shaka-video-container {\n flex-direction: column !important;\n}"
},
} }
} }