DASH formats are not supported by external downloaders like aria2, so I like to avoid them. Merging two formats is ok (so I don't want -f best
). What should I use for -f
?
HappyFace's questions
I thought the .snap files are just cached installation files and deleted them. How can I restore them? refresh and install don't seem to work. I like to keep the data of my installed snaps (uninstalling would delete those I assume?)
Here is one error message:
internal error, please report: running "antibody" failed: cannot find installed snap "antibody" at revision 10: missing file /var/lib/snapd/snaps/antibody_10.snap
I have installed Nextcloud via snaps, and it stores its files under /var/snap/nextcloud/common/nextcloud/data/FriedRose/files, owned by root. I like to give my normal user access to read and write to /var/snap/nextcloud/common/nextcloud/data/FriedRose/files/downloads.
How can I achieve this without creating a security risk or breaking the snap package? Is giving all directories in this path the executable permission, and giving the downloads directors read and write permission, a good solution? (chmod a+x ...). If this is a good solution, then is there a way to automatically do it or should I write a little function to break up a path into all its directories?
I want to write a bash function to both start downloading a file and open it in a video player; I don't know how to get the path of the file being downloaded though:
function dl-and-stream() {
aria2c "$1" &
sleep 30
mpv #What to put here
}
PS: This is not my only use case, and I’m aware of --out
, but I like to keep the original file name.
Update: My use cases can be fulfilled via --on-download-complete
(and other event handlers), but I still prefer not using that if possible. (Because they need the creation of additional script files.)
I have UFW enabled, so the solution should not interfere with it. It should also work after reboot.
I currently know these commands which limit the data usage of ports:
sudo iptables -I OUTPUT -p tcp --sport 443 -j DROP
sudo iptables -I OUTPUT -p tcp --sport 443 -m quota --quota 50000000000 -j ACCEPT
But I don't know how to persist these without affecting UFW, and I very much prefer a speed rate limit.
Update: It seems I've got to use tc
. If it should work (I'm optimistic), I'll post the solution.
I want to start watching the downloading file immediately, so if youtube-dl downloads video and audio separately I'll be foiled. I.e, I want youtube-dl to choose the best format that has both video and audio.