diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 94dc67a117da8..bdbec47c09030 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -403,6 +403,17 @@ export default defineComponent({ this.liveChat = null } + // region No comment detection + // For videos without any comment (comment disabled?) + // e.g. https://youtu.be/8NBSwDEf8a8 + // + // `comments_entry_point_header` is null probably when comment disabled + // e.g. https://youtu.be/8NBSwDEf8a8 + // However videos with comments enabled but have no comment + // are different (which is not detected here) + this.commentsEnabled = result.comments_entry_point_header != null + // endregion No comment detection + // the bypassed result is missing some of the info that we extract in the code above // so we only overwrite the result here // we need the bypassed result for the streaming data and the subtitles @@ -667,17 +678,6 @@ export default defineComponent({ } } - // region No comment detection - // For videos without any comment (comment disabled?) - // e.g. https://youtu.be/8NBSwDEf8a8 - // - // `comments_entry_point_header` is null probably when comment disabled - // e.g. https://youtu.be/8NBSwDEf8a8 - // However videos with comments enabled but have no comment - // are different (which is not detected here) - this.commentsEnabled = result.comments_entry_point_header != null - // endregion No comment detection - this.isLoading = false this.updateTitle() } catch (err) {