Commit Graph

21 Commits

Author SHA1 Message Date
efe7640980 By default probe for youtube-dl or yt-dlp binary
Still possible to override with Path
2024-01-13 18:07:51 +01:00
3184158e02 DownloadSections option 2023-08-21 17:20:19 -04:00
b6c1793051 Unexport the Options.noInfoDownload field
There is a package Download() function now which handle downloading without
using the Info struct so this field no longer needs to be exported.
2023-08-17 11:47:20 +02:00
a230313e47 Add main Download() function and its test
// It downloads given URL using the given options and filter (usually a format
id or quality designator). If filter is empty, then youtube-dl will use its
default format selector.
2023-08-17 11:19:19 +02:00
ddaf5ad2fa Add the NoInfoDownload option
Set it to true if you don't want to use the result.Info structure.

If it is set to true, then the New() call won't call youtube-dl to request info
about the source in JSON format, and result.Info structure will not be
populated. The given URL will be downloaded in a single pass in the Download()
call.
2023-08-17 11:18:47 +02:00
f97b09d082 fix typo 2023-08-16 17:19:03 +02:00
fcfd4acd74 edit default value 2023-08-16 11:59:17 +02:00
ad9066c4f4 add options to handle downloading one entry from a playlist 2023-08-16 01:28:23 +02:00
4b1de1d3ad Make Download() function comment more clear 2023-08-15 13:06:07 +02:00
f483ae69c8 Update Download() usage comment lines 2023-08-15 11:51:02 +02:00
c1dcced791 Add options to set merge output format and sorting format
yt-dlp uses mp4 format by default to merge sources with separate video and
audio streams. mp4 format does not handle VP9 codec, so adding the ability
to set the merge output format, we can set it to use for ex. mkv, which
handles VP9 well.

With the possibility of setting the sorting format we can tell yt-dlp which
criteria to consider as the best format.
2023-08-14 13:48:26 +02:00
3c1f4ce6da Only use -f arg if filter is given
If filter is not given then we let youtube-dl/yt-dlp decide the format to download.
2023-08-14 13:47:06 +02:00
4046d6dc4b Add Downlaoder option
Specificies --downloader optionn
2023-06-15 14:51:18 +02:00
1fcacaf3f0 add proxy settings
Signed-off-by: allan716 <525223688@qq.com>
2023-06-13 14:05:58 +08:00
3b67f6a80c Better errors and error handling
Fix issue with ignore errors for playlists, now ignore
errors if we get info JSON with a non empty ID.
2019-11-05 00:46:54 +01:00
4bc99db15d Less confusing wront type error messages 2019-11-01 00:25:12 +01:00
042aba554c Use youtube-dl headers for own requests too
Might be some issues downloading images and subtiles if cookies are required etc
2019-11-01 00:02:07 +01:00
5b6ef4f1f2 Make response type an/single/playlist
Make it possible to assert what response to get
2019-11-01 00:01:13 +01:00
23419ec767 Add thumbnails array 2019-10-29 00:58:46 +01:00
47b4e26567 Add --ignore-errors for info download also
--ignore-errors still return error message and exit code != 0
so workaround is to assume things went ok if we get some json on stdout

Filter out failed entries for playlists
2019-09-22 23:13:16 +02:00
88fc6c8d7a init 2019-07-23 21:39:07 +02:00