1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
async function register ({
videoCategoryManager,
videoLicenceManager,
videoLanguageManager,
videoPrivacyManager,
playlistPrivacyManager,
getRouter
}) {
videoLanguageManager.addConstant('al_bhed', 'Al Bhed')
videoLanguageManager.addConstant('al_bhed2', 'Al Bhed 2')
videoLanguageManager.addConstant('al_bhed3', 'Al Bhed 3')
videoLanguageManager.deleteConstant('en')
videoLanguageManager.deleteConstant('fr')
videoLanguageManager.deleteConstant('al_bhed3')
videoCategoryManager.addConstant(42, 'Best category')
videoCategoryManager.addConstant(43, 'High best category')
videoCategoryManager.deleteConstant(1) // Music
videoCategoryManager.deleteConstant(2) // Films
videoLicenceManager.addConstant(42, 'Best licence')
videoLicenceManager.addConstant(43, 'High best licence')
videoLicenceManager.deleteConstant(1) // Attribution
videoLicenceManager.deleteConstant(7) // Public domain
videoPrivacyManager.deleteConstant(2)
playlistPrivacyManager.deleteConstant(3)
{
const router = getRouter()
router.get('/reset-categories', (req, res) => {
videoCategoryManager.resetConstants()
res.sendStatus(204)
})
}
}
async function unregister () {}
module.exports = {
register,
unregister
}
|