From 16ec1f694f28ce9497db2bc0f29042c59affd539 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 17 Jul 2025 12:21:31 +0700 Subject: [PATCH 1/4] remove debug --- backend/common/src/search_processor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/common/src/search_processor.py b/backend/common/src/search_processor.py index 6c1d410b..e5c0cac4 100644 --- a/backend/common/src/search_processor.py +++ b/backend/common/src/search_processor.py @@ -160,7 +160,6 @@ class SearchProcess: "playlist_last_refresh": playlist_last_refresh, } ) - print(playlist_dict) return dict(sorted(playlist_dict.items())) From 64ac647ade06dc6376cb1bc01b0c0b2395239547 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 17 Jul 2025 20:26:30 +0700 Subject: [PATCH 2/4] ensure vid_type enum in __extract_vid_type --- backend/download/src/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/download/src/queue.py b/backend/download/src/queue.py index f5554a18..2e0b2d55 100644 --- a/backend/download/src/queue.py +++ b/backend/download/src/queue.py @@ -386,7 +386,7 @@ class PendingList(PendingIndex): and video_data["vid_type"] and str(video_data["vid_type"]) in VideoTypeEnum.values_known() ): - return str(video_data["vid_type"]) + return VideoTypeEnum(video_data["vid_type"]).value if video_data.get("live_status") == "was_live": return VideoTypeEnum.STREAMS.value From c22fe144b07c7e67381e11984b0ac615d32a93b2 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 17 Jul 2025 20:27:04 +0700 Subject: [PATCH 3/4] fix remove duplicate notification box in channel playlist page --- frontend/src/pages/ChannelPlaylist.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/src/pages/ChannelPlaylist.tsx b/frontend/src/pages/ChannelPlaylist.tsx index 14b2912e..03597913 100644 --- a/frontend/src/pages/ChannelPlaylist.tsx +++ b/frontend/src/pages/ChannelPlaylist.tsx @@ -1,5 +1,4 @@ import { useOutletContext, useParams } from 'react-router-dom'; -import Notifications from '../components/Notifications'; import PlaylistList from '../components/PlaylistList'; import { useEffect, useState } from 'react'; import { OutletContextType } from './Base'; @@ -58,8 +57,6 @@ const ChannelPlaylist = () => { TA | Channel: Playlists
- -
Show subscribed only: From 40f6ee60d4f340f007038e9f9e3feec23200c81a Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 17 Jul 2025 20:51:59 +0700 Subject: [PATCH 4/4] fix unknown vid_type query building --- backend/channel/src/remote_query.py | 2 +- backend/channel/tests/test_src/test_remote_query.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/backend/channel/src/remote_query.py b/backend/channel/src/remote_query.py index 90cbde22..52104fce 100644 --- a/backend/channel/src/remote_query.py +++ b/backend/channel/src/remote_query.py @@ -23,7 +23,7 @@ class VideoQueryBuilder: VideoTypeEnum.SHORTS: self.shorts_query, } - if video_type: + if video_type and video_type != VideoTypeEnum.UNKNOWN: # build query for specific type/s if not isinstance(video_type, list): video_type = [video_type] diff --git a/backend/channel/tests/test_src/test_remote_query.py b/backend/channel/tests/test_src/test_remote_query.py index a123d75c..470b50d9 100644 --- a/backend/channel/tests/test_src/test_remote_query.py +++ b/backend/channel/tests/test_src/test_remote_query.py @@ -77,6 +77,17 @@ def test_build_multiple_queries(default_config, empty_overwrites): assert result == [(VideoTypeEnum.VIDEOS, 5), (VideoTypeEnum.SHORTS, 2)] +def test_build_unknown_queries(default_config, empty_overwrites): + """vid_type unknown""" + builder = VideoQueryBuilder(default_config, empty_overwrites) + result = builder.build_queries(VideoTypeEnum.UNKNOWN) + assert result == [ + (VideoTypeEnum.VIDEOS, 5), + (VideoTypeEnum.STREAMS, 3), + (VideoTypeEnum.SHORTS, 2), + ] + + def test_overwrite_applied(default_config, overwrites): """with overwrite from channel config""" builder = VideoQueryBuilder(default_config, overwrites)