From cbacdc5dcddcd69cb04907129e9debfd9d353baf Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 28 Dec 2024 22:15:56 -0500 Subject: [PATCH] [skip-ci] comment --- .../src/components/Services/Innertube/InnertubeService.bs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/playlet-lib/src/components/Services/Innertube/InnertubeService.bs b/playlet-lib/src/components/Services/Innertube/InnertubeService.bs index bd2ec8d0..a13b805f 100644 --- a/playlet-lib/src/components/Services/Innertube/InnertubeService.bs +++ b/playlet-lib/src/components/Services/Innertube/InnertubeService.bs @@ -114,9 +114,10 @@ namespace InnertubeService responseData = ObjectUtils.Dig(responseData, ["contents", "twoColumnWatchNextResults", "playlist", "playlist"]) if responseData = invalid ' Sometimes the response doesn't contain a playlist. - ' The theory here is that Innertube creates a playlist for the videoIds, and sometimes - ' it chooses to respond without the playlist (perhaps to avoid slow responses). - ' A retry after a short sleep usually fixes this (but not always). + ' The theory here is that when a private video is in the list, the created playlist + ' is no longer publicly available. That's why it is not returned. Also happens with + ' a deleted video. + ' A retry after a short sleep SOMETIMES fixes this (but not always). ' TODO:P1: Figure out why this happens and if there's a better way to handle it. if retry LogWarn("Response data missing playlist. Retrying in a bit...")