fix theme selector not working, add input styling

This commit is contained in:
Jorrin
2024-03-24 20:41:09 +01:00
parent c24b2e01c1
commit ceffab182d
11 changed files with 124 additions and 45 deletions

View File

@@ -232,19 +232,12 @@ export const useSourceScrape = (sourceId: string | null) => {
const query = useQuery({
queryKey: ["sourceScrape", meta, sourceId],
queryFn: async () => {
console.log("useSourceScrape", meta, sourceId);
if (!meta || !sourceId) return;
const scrapeMedia = convertMetaToScrapeMedia(meta);
const result = await getVideoStreamFromSource({
sourceId,
media: scrapeMedia,
events: {
update(evt) {
console.log("update useSourceScrape", evt);
},
},
});
console.log("useSourceScrape result", result);
if (result?.stream) {
setCurrentStream(result.stream[0]!);