ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
1.3 KiB

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