From 11c36cc46a50d7c3dbc800c425f5e8159ebe1995 Mon Sep 17 00:00:00 2001 From: Zeeshan Akram <97m.zeeshan@gmail.com> Date: Tue, 27 Feb 2024 11:26:27 +0500 Subject: [PATCH] fix: skip downloading removed content from Youtube --- CHANGELOG.md | 1 + src/services/syncProcessing/ContentDownloadService.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3298d0be..eaba3cd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### 3.6.0 - Replace `Query-Node` with `Orion` for graphql queries, and remove all unused graphql query definitions. +- **FIX**: use `GraphQLWsLink` instead of deprecated `WebSocketLink` for graphql subscription, as `WebSocketLink` based subscription does not work with Orion API ### 3.5.0 diff --git a/src/services/syncProcessing/ContentDownloadService.ts b/src/services/syncProcessing/ContentDownloadService.ts index 9c2aba8c..07ed6cb1 100644 --- a/src/services/syncProcessing/ContentDownloadService.ts +++ b/src/services/syncProcessing/ContentDownloadService.ts @@ -118,6 +118,7 @@ export class ContentDownloadService { const errorMsg = (err as Error).message const errors: { message: string; code: VideoUnavailableReasons }[] = [ { message: 'Video unavailable', code: VideoUnavailableReasons.Unavailable }, + { message: 'This video has been removed', code: VideoUnavailableReasons.Unavailable }, { message: 'Private video', code: VideoUnavailableReasons.Private }, { message: 'Postprocessing:', code: VideoUnavailableReasons.PostprocessingError }, { message: 'The downloaded file is empty', code: VideoUnavailableReasons.EmptyDownload },