mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 22:59:39 +00:00
fix continue watching none IDs, add showEmbeddedVideo to useEffect
This commit is contained in:
@@ -68,9 +68,10 @@ class QueryBuilder:
|
|||||||
for i in results
|
for i in results
|
||||||
if not i.get("watched")
|
if not i.get("watched")
|
||||||
]
|
]
|
||||||
continue_ids = {"bool": {"should": ids}}
|
if not ids:
|
||||||
|
return None
|
||||||
|
|
||||||
return continue_ids
|
return {"bool": {"should": ids}}
|
||||||
|
|
||||||
def parse_type(self, video_type: str):
|
def parse_type(self, video_type: str):
|
||||||
"""parse video type"""
|
"""parse video type"""
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ const ChannelVideo = ({ videoType }: ChannelVideoProps) => {
|
|||||||
channelId,
|
channelId,
|
||||||
pagination?.current_page,
|
pagination?.current_page,
|
||||||
videoType,
|
videoType,
|
||||||
|
showEmbeddedVideo,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (!channel) {
|
if (!channel) {
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ const Home = () => {
|
|||||||
userMeConfig.hide_watched,
|
userMeConfig.hide_watched,
|
||||||
currentPage,
|
currentPage,
|
||||||
pagination?.current_page,
|
pagination?.current_page,
|
||||||
|
showEmbeddedVideo,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -110,7 +110,14 @@ const Playlist = () => {
|
|||||||
setRefresh(false);
|
setRefresh(false);
|
||||||
})();
|
})();
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [playlistId, userConfig.config.hide_watched, refresh, currentPage, pagination?.current_page]);
|
}, [
|
||||||
|
playlistId,
|
||||||
|
userConfig.config.hide_watched,
|
||||||
|
refresh,
|
||||||
|
currentPage,
|
||||||
|
pagination?.current_page,
|
||||||
|
showEmbeddedVideo,
|
||||||
|
]);
|
||||||
|
|
||||||
if (!playlistId || !playlist) {
|
if (!playlistId || !playlist) {
|
||||||
return `Playlist ${playlistId} not found!`;
|
return `Playlist ${playlistId} not found!`;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const Search = () => {
|
|||||||
} else {
|
} else {
|
||||||
setSearchResults(EmptySearchResponse);
|
setSearchResults(EmptySearchResponse);
|
||||||
}
|
}
|
||||||
}, [debouncedSearchTerm, refresh]);
|
}, [debouncedSearchTerm, refresh, showEmbeddedVideo]);
|
||||||
|
|
||||||
const fetchResults = async (searchQuery: string) => {
|
const fetchResults = async (searchQuery: string) => {
|
||||||
const searchResults = await loadSearch(searchQuery);
|
const searchResults = await loadSearch(searchQuery);
|
||||||
|
|||||||
Reference in New Issue
Block a user