1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(feat): added caption support with backwards compatibility

This commit is contained in:
2025-02-07 21:21:32 +05:30
Verified
parent d8a191e408
commit 9c55edeb46
2 changed files with 6 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ function App({ children }: { children: React.ReactNode }) {
} else if(event.payload.command === 'download-stream') {
const startDownload = async () => {
try {
await invoke('download_stream', { url: event.payload.url, stream: event.payload.argument });
await invoke('download_stream', { url: event.payload.url, stream: event.payload.argument.split(' ')[0], caption: event.payload.argument.split(' ')[1] });
await invoke('receive_frontend_response', { response: 'Download started' });
} catch (error) {
console.error(error);