From 5a64f79a98bf4649d71cb07ae678667e74aa36dd Mon Sep 17 00:00:00 2001
From: Kelvin <41-kelvin@users.noreply.gitlab.futo.org>
Date: Sun, 9 Feb 2025 18:21:02 +0000
Subject: [PATCH] Remove short feed if doesnt exist

---
 YoutubeConfig.json         | 2 +-
 YoutubeScript.js           | 2 +-
 YoutubeUnstableConfig.json | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/YoutubeConfig.json b/YoutubeConfig.json
index bec4546..d40f918 100644
--- a/YoutubeConfig.json
+++ b/YoutubeConfig.json
@@ -8,7 +8,7 @@
 	"repositoryUrl": "https://futo.org",
 	"scriptUrl": "./YoutubeScript.js",
 
-	"version": 232,
+	"version": 233,
 	"iconUrl": "./youtube.png",
 	"id": "35ae969a-a7db-11ed-afa1-0242ac120002",
 	
diff --git a/YoutubeScript.js b/YoutubeScript.js
index 1d6710c..ae444e1 100644
--- a/YoutubeScript.js
+++ b/YoutubeScript.js
@@ -1325,7 +1325,7 @@ source.getChannel = (url) => {
 
 source.getChannelCapabilities = () => {
 	return {
-		types: (!!_settings?.channelRssOnly) ? [Type.Feed.Mixed] : [Type.Feed.Videos, Type.Feed.Streams, Type.Feed.Shorts],
+		types: (!!_settings?.channelRssOnly) ? [Type.Feed.Mixed] : (Type.Feed.Shorts ? [Type.Feed.Videos, Type.Feed.Streams, Type.Feed.Shorts] : [Type.Feed.Videos, Type.Feed.Streams]),
 		sorts: (!!_settings?.channelRssOnly) ? [Type.Order.Chronological] : [Type.Order.Chronological, "Popular"]//
 	};
 }
diff --git a/YoutubeUnstableConfig.json b/YoutubeUnstableConfig.json
index f7b4f0b..59e8c1d 100644
--- a/YoutubeUnstableConfig.json
+++ b/YoutubeUnstableConfig.json
@@ -8,7 +8,7 @@
 	"repositoryUrl": "https://futo.org",
 	"scriptUrl": "./YoutubeScript.js",
 
-	"version": 232,
+	"version": 233,
 	"iconUrl": "./youtube.png",
 	"id": "35ae969a-a7db-11ed-afa1-0242ac120003",
 	
-- 
GitLab