~ghuter/caoydl

rewrite of the "aoydl" shell script in C based on the "frontends" project at codemadness.org
fix a bug which caused a segfault when "MAX_VIDEOS" is reached
cosmetic changes
change default compiler to musl-gcc

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ghuter/caoydl
read/write
git@git.sr.ht:~ghuter/caoydl

You can also use your local clone with git send-email.

Originally a rewrite of [aoydl](https://acz.kalli.st/00220/aoydl)
(shell script) in C.  It was based on
[frontends](https://git.codemadness.org/frontends/file/README.html).

- `caoydl <url|id>`:
    get video direct links
    get channel's video urls
    get playlist's video urls
- `caoydl -s <query>`:
    search for videos
- `caoydl -S <query>`:
    search for videos (long output)
- `caoydl -c <query>`:
    search for channel
- `caoydl -P <url|id>`:
    get channel's playlists

All of these options can be combined with the `-r` flag which gives you the raw
json(s).


INSTALLATION
============

Dependencies:

- C compiler
- LibreSSL + libtls
- make

Then:

	$ make

And optionally, as root:

	$ make install


BUGS
=====

Empty. Does not mean there is no bug!


NOTES
=====

Eventually take inspiration from:

    /usr/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py:/if\ not\ fmt_url
Do not follow this link