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) 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())) 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 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: