From fbd2d423587caace6ff3e98840a8d4d4e4938266 Mon Sep 17 00:00:00 2001 From: frankstrater Date: Tue, 31 Aug 2021 15:08:24 +0200 Subject: [PATCH] Fix some documentation mistakes --- CHANGELOG.md | 8 ++++---- .../server/managers/plugin-video-licence-manager.model.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2fab9ec..29aea7922 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,10 +13,10 @@ * Server helpers * **Deprecate** `videoLanguageManager.addLanguage` and `videoLanguageManager.deleteLanguage`: use `videoLanguageManager.addConstant` and `videoLanguageManager.deleteConstant` instead - * **Deprecate** `videoCategoryManager.addLanguage` and `videoCategoryManager.deleteLanguage`: use `videoCategoryManager.addConstant` and `videoCategoryManager.deleteConstant` instead - * **Deprecate** `videoLicenceManager.addLanguage` and `videoLicenceManager.deleteLanguage`: use `videoLicenceManager.addConstant` and `videoLicenceManager.deleteConstant` instead - * **Deprecate** `videoPrivacyManager.deleteLanguage`: `videoPrivacyManager.deleteConstant` instead - * **Deprecate** `playlistPrivacyManager.deleteLanguage`: `playlistPrivacyManager.deleteConstant` instead + * **Deprecate** `videoCategoryManager.addCategory` and `videoCategoryManager.deleteCategory`: use `videoCategoryManager.addConstant` and `videoCategoryManager.deleteConstant` instead + * **Deprecate** `videoLicenceManager.addLicence` and `videoLicenceManager.deleteLicence`: use `videoLicenceManager.addConstant` and `videoLicenceManager.deleteConstant` instead + * **Deprecate** `videoPrivacyManager.deletePrivacy`: `videoPrivacyManager.deleteConstant` instead + * **Deprecate** `playlistPrivacyManager.deletePlaylistPrivacy`: `playlistPrivacyManager.deleteConstant` instead * Introduce `.getConstantValue()`, `.getConstants()` and `.resetConstants()` for `videoLanguageManager`, `videoCategoryManager`, `videoLicenceManager`, `videoPrivacyManager` and `playlistPrivacyManager` * Add server plugin hooks: * `filter:api.overviews.videos.list.params` and `filter:api.overviews.videos.list.result` diff --git a/shared/models/plugins/server/managers/plugin-video-licence-manager.model.ts b/shared/models/plugins/server/managers/plugin-video-licence-manager.model.ts index 6efeadd7d..21b422270 100644 --- a/shared/models/plugins/server/managers/plugin-video-licence-manager.model.ts +++ b/shared/models/plugins/server/managers/plugin-video-licence-manager.model.ts @@ -2,12 +2,12 @@ import { ConstantManager } from '../plugin-constant-manager.model' export interface PluginVideoLicenceManager extends ConstantManager { /** - * @deprecated use `addLicence` instead + * @deprecated use `addConstant` instead */ addLicence: (licenceKey: number, licenceLabel: string) => boolean /** - * @deprecated use `deleteLicence` instead + * @deprecated use `deleteConstant` instead */ deleteLicence: (licenceKey: number) => boolean }