Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
export type MediaPreview = {
url: string;
title: string;
author: string;
thumbnail_url: string | null;
duration_seconds: number | null;
};
let currentPreview = $state<MediaPreview | null>(null);
export function getMediaPreview(): MediaPreview | null {
return currentPreview;
}
export function setMediaPreview(preview: MediaPreview | null) {
currentPreview = preview;
}
export function clearMediaPreview() {
currentPreview = null;
}