diff --git a/api/services/youtube.json b/api/services/youtube.json index 3b984cc..92e6f61 100644 --- a/api/services/youtube.json +++ b/api/services/youtube.json @@ -13,11 +13,11 @@ }, "params": [ { - "name": "channel", + "name": "channel_id", "type": "string", "description": { - "en": "Name of the channel to watch over", - "fr": "Le nom de la chaîne à regarder" + "en": "ID of the channel to watch over", + "fr": "L'ID de la chaîne à regarder" } } ], diff --git a/worker/src/services/youtube.ts b/worker/src/services/youtube.ts index cd3f2b6..6c439bd 100644 --- a/worker/src/services/youtube.ts +++ b/worker/src/services/youtube.ts @@ -40,7 +40,7 @@ export class Youtube extends BaseService { }); } - @action(PipelineType.OnYtUpload, ["channel"]) + @action(PipelineType.OnYtUpload, ["channel_id"]) listenChannel(params: any): Observable { return Utils.longPulling(async (since) => { const ret = await this._youtube.activities.list({