Skip to content

stackxp/copyparty-wget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyparty wget

A screenshot of the plugin UI

An improved plugin to directly download files off the internet onto copyparty.

How to use

  1. Download wget.js amd wget.py
  2. Put wget.js somewhere that can be accessed from the copyparty webserver. (any public volume)
  3. Add --js-browser <mapped path to wget.js> --xm I,<absolute path to wget.py> or add this to your config file:
[global]
	js-browser: <mapped path to wget.js>
	xm: I,<absolute path to wget.py>

Note

The "mapped path" is the path on the webserver to wget.js, so if you have wget.js stored in the /party folder in your filesystem and /party is mapped to / in copyparty, /wget.js is the mapped path.

  1. Restart copyparty
  2. Done! 🎉

Docker Notes

If you are running copyparty inside a Docker container, the standard wget package might not be installed by default. You can install it by running this command on your host:

docker exec -u 0 -it <your_container_name> apk add wget

Features

  • nice UI
  • multiple downloads at the same time
  • progress indicator
  • hidden from users that don't have write permissions
  • provides wget error logs when download fails (can be disabled)

TODOs

  • provide error logs when wget crashes
  • upgrade to an up2k-like progress bar

Disabling wget logs

copyparty-wget automatically shows logs on the web UI when a file download fails. This is to identify potential problems without having to read the server logs. However, you might not want users to see those because they might expose filesystem paths or other server information. To disable those logs, simply open wget.py and change DISABLE_LOGS at the top of the file from False to True like this:

DISABLE_LOGS = True # Set to true if you don't want logs to be sent when wget fails

Note: You can still access the wget logs by reading the server logs, this only prevents sending potentially sensitive information to users who you can't really trust)

About

An improved plugin to directly download files off the internet onto copyparty

Topics

Resources

License

Stars

Watchers

Forks

Contributors