]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/tests/fixtures/peertube-plugin-test-video-constants/main.js
1 async
function register ({
6 playlistPrivacyManager
,
9 videoLanguageManager
.addConstant('al_bhed', 'Al Bhed')
10 videoLanguageManager
.addConstant('al_bhed2', 'Al Bhed 2')
11 videoLanguageManager
.addConstant('al_bhed3', 'Al Bhed 3')
12 videoLanguageManager
.deleteConstant('en')
13 videoLanguageManager
.deleteConstant('fr')
14 videoLanguageManager
.deleteConstant('al_bhed3')
16 videoCategoryManager
.addConstant(42, 'Best category')
17 videoCategoryManager
.addConstant(43, 'High best category')
18 videoCategoryManager
.deleteConstant(1) // Music
19 videoCategoryManager
.deleteConstant(2) // Films
21 videoLicenceManager
.addConstant(42, 'Best licence')
22 videoLicenceManager
.addConstant(43, 'High best licence')
23 videoLicenceManager
.deleteConstant(1) // Attribution
24 videoLicenceManager
.deleteConstant(7) // Public domain
26 videoPrivacyManager
.deleteConstant(2)
27 playlistPrivacyManager
.deleteConstant(3)
30 const router
= getRouter()
31 router
.get('/reset-categories', (req
, res
) => {
32 videoCategoryManager
.resetConstants()
39 async
function unregister () {}