pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pass headers to app

Pas c9c40a12 3507db40

+9
+8
src/components/player/atoms/settings/Downloads.tsx
··· 76 76 const captionList = usePlayerStore((s) => s.captionList); 77 77 const meta = usePlayerStore((s) => s.meta); 78 78 const duration = usePlayerStore((s) => s.progress.duration); 79 + const source = usePlayerStore((s) => s.source); 79 80 const isDesktopApp = useIsDesktopApp(); 80 81 81 82 const startOfflineDownload = useCallback(async () => { ··· 97 98 } 98 99 } 99 100 101 + const headers = { 102 + ...(source?.headers ?? {}), 103 + ...(source?.preferredHeaders ?? {}), 104 + }; 105 + 100 106 window.desktopApi?.startDownload({ 101 107 url: downloadUrl, 102 108 title, ··· 104 110 subtitleText, 105 111 duration, 106 112 type: sourceType, 113 + headers, 107 114 }); 108 115 109 116 if (window.desktopApi?.openOffline) { ··· 118 125 captionList, 119 126 duration, 120 127 router, 128 + source, 121 129 sourceType, 122 130 t, 123 131 ]);
+1
src/hooks/useIsDesktopApp.ts
··· 10 10 subtitleText?: string; 11 11 duration?: number; 12 12 type?: string; 13 + headers?: Record<string, string>; 13 14 }): void; 14 15 openOffline(): void; 15 16 };