7 # error: phantomjs 1.9.8 has been dropped due to lack of maintenance and security issues
11 programs.bash.shellAliases = {
13 yt-audio = "yt-dlp -f 'worstaudio[acodec=opus]/worstaudio'";
15 xdg.configFile."yt-dlp/config".text = ''
16 #--download-archive .downloaded
17 --external-downloader aria2c
21 --format-sort +res~480,+vcodec:av01,+acodec:opus
22 --format ${lib.concatStringsSep "/" [
26 --output "%(release_date>%Y-%m-%d,upload_date>%Y-%m-%d)s - %(title)s.%(id)s.%(format_id)s.%(ext)s"
27 --match-filter !is_live
29 --sub-format ass/srt/best
30 --sub-langs "en.*,fr,-live_chat,-rechat"
31 --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"