| Crates.io | prehrajto-tauri |
| lib.rs | prehrajto-tauri |
| version | 0.1.0 |
| created_at | 2025-12-26 18:58:12.003856+00 |
| updated_at | 2025-12-26 18:58:12.003856+00 |
| description | Tauri plugin for prehraj.to video scraper |
| homepage | |
| repository | https://github.com/xdkid1337/prehrajto-scraper |
| max_upload_size | |
| id | 2006099 |
| size | 138,075 |
Tauri plugin for prehrajto-core - search videos and get download links from prehraj.to.
[dependencies]
prehrajto-tauri = "0.1"
tauri = { version = "2", features = [] }
Register the plugin in your Tauri app:
fn main() {
tauri::Builder::default()
.plugin(prehrajto_tauri::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
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'
});
search_videosSearch for videos by query string.
| Parameter | Type | Description |
|---|---|---|
query |
string |
Search query |
Returns: VideoResult[]
get_download_urlGenerate download URL for a video.
| Parameter | Type | Description |
|---|---|---|
videoSlug |
string |
URL-friendly video slug |
videoId |
string |
Unique video ID |
Returns: string
| Field | Type | Description |
|---|---|---|
name |
string |
Video title |
url |
string |
Video page URL |
video_id |
string |
Unique video ID |
video_slug |
string |
URL-friendly slug |
download_url |
string |
Direct download link |
duration |
string | null |
Duration (HH:MM:SS) |
quality |
string | null |
Quality (e.g., "HD") |
file_size |
string | null |
File size |
MIT
This project is provided for educational and research purposes only.
According to prehraj.to Terms of Service (Articles 7.5 and 7.6), automated requests to their servers are prohibited. By using this library, you acknowledge that:
Use at your own risk.