Commit Graph

6 Commits

Author SHA1 Message Date
4a1a254026 feat: direct download with filename:
- Fixed issues with escaping query in Hx-Redirect
	header.

	- GetFilename functions that runs concurrently
	since it takes time for yt-dlp to fetch info.
	Investigate getting url and name in one execution.

	- Directly redirects to /download-direct for a
	streaming response of the file. I am observing
	that the request on the server side to content
	provider does not wait for the full download.
	instead, it is streamed in a buffer, that is
	also copied at the same time to the user response
	as partial. Pretty cool. Not much memory overhead,
	which was the main concern.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-14 21:49:17 +03:00
d50e88d1f9 fix: use params in cmd... 2023-09-14 19:45:33 +03:00
6e61c39f51 fix previous 2023-09-14 19:36:50 +03:00
2dee4917d0 feat: only use '-f 22' on yt links 2023-09-14 19:35:10 +03:00
13269a7b84 feat: better url validation:
- Do not accept redirects. Usually
	on yt at least, redirect means the link
	is invalid. Hence, it redirects to the home
	page.

	- This is tested and it works well. trust.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-13 13:43:44 +03:00
b82b70d911 feat: added yt for yt-dlp logic within the app 2023-09-12 00:09:24 +03:00