About the ocdownloader category

This is where we discuss the ocDownloader app!

thank you :slight_smile: :+1:

1 Like

To enable Youtube downloads, you need youtube-dl;

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

To install and run Aria; (in my case on Ubuntu 16.04LTS)
sudo apt-get install aria2

And to run aria2 in daemon mode;
aria2c --enable-rpc --rpc-allow-origin-all -c -D --check-certificate=false

Additional scripts
there seems to be an issue regarding permissions and cache of NC

After the download is complete, the owner of the folder is ‘root’, which means you cannot change/move/delete the files

Re-scan folder
sudo -u www-data php /var/www/nextcloud/occ -v files:scan <username> --path="/<username>/files/Downloads"

Set permissions
chown -R www-data:www-data /var/www/nextcloud/files/<username>/Downloads/

You can put both commands in a bash script and run it every minute with the crontab

1 Like

Aria2c has to be run with the same user your webserver runs. Please read the information here on how to set up ocDownloader correctly:

so should ocdownloader renamed ncdownloader, if explizit for nextcloud…

just easy as note …

best regards
blacky