Crate prehrajto_tauri

Crate prehrajto_tauri 

Source
Expand description

Prehraj.to Tauri Integration

Provides Tauri plugin for frontend integration with prehraj.to scraper.

§Usage

Register the plugin in your Tauri application:

fn main() {
    tauri::Builder::default()
        .plugin(prehrajto_tauri::init())
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

Then invoke commands from the frontend:

import { invoke } from '@tauri-apps/api/core';

// Search for videos
const results = await invoke('plugin:prehrajto|search_videos', { query: 'doctor who' });

// Get download URL
const url = await invoke('plugin:prehrajto|get_download_url', {
  videoSlug: 'doctor-who-s07e05',
  videoId: '63aba7f51f6cf'
});

Structs§

ScraperState
Thread-safe wrapper for PrehrajtoScraper
Video
Represents a video result from prehraj.to search

Functions§

init
Initialize the prehrajto plugin