gropple/README.md

83 lines
2.7 KiB
Markdown
Raw Normal View History

2021-09-21 08:31:51 +09:30
# gropple
2021-09-21 08:32:50 +09:30
2021-09-22 11:45:48 +09:30
A web service and bookmarklet to download videos with a single click.
2021-09-22 23:15:02 +09:30
![Screencast](/screencast.gif)
2021-09-22 23:01:19 +09:30
2021-09-21 08:32:50 +09:30
## Pre-requisites
2021-09-21 19:57:36 +09:30
* a passing familiarity with the command line
2021-09-21 18:10:52 +09:30
* youtube-dl (plus any of its required dependencies, like ffmpeg)
2021-09-22 23:45:33 +09:30
* golang compiler (if you'd like to build from source)
2021-09-21 08:32:50 +09:30
## Build
2021-09-21 18:10:52 +09:30
go build
2021-09-21 08:32:50 +09:30
2021-09-21 19:57:36 +09:30
## Binaries
2021-09-22 11:45:48 +09:30
Binaries are available at https://github.com/tardisx/gropple/releases
2021-09-21 19:57:36 +09:30
2021-09-21 08:32:50 +09:30
## Running
gropple -port 6283 -address http://hostname:6283 -path /downloads
2021-09-21 18:10:52 +09:30
With no arguments, it will listen on port 6283 and use an address of 'http://localhost:6283'.
2021-09-21 18:10:52 +09:30
The address must be specified so that the bookmarklet can refer to the correct
host if it is not running on your local machine. You may also need to specify
2021-09-21 18:10:52 +09:30
a different address if you are running it behind a proxy server or similar.
## Using
Bring up `http://localhost:6283` (or your chosen address) in your browser. You
should see a link to the bookmarklet at the top of the screen, and the list of
downloads (currently empty).
2021-09-21 19:57:36 +09:30
Drag the bookmarklet to your favourites bar, or otherwise bookmark it as you
see fit.
2021-09-21 19:57:36 +09:30
Whenever you are on a page with a video you would like to download, simply
click the bookmarklet.
2021-09-21 19:57:36 +09:30
A popup window will appear, the download will start on the your gropple server
and the status will be shown in the window.
2021-09-21 19:57:36 +09:30
You may close this window at any time without stopping the download, the status
of all downloads is available on the index page.
## Using an alternative downloader
The default downloader is youtube-dl. It is possible to use a different downloader
via the `-dl-cmd` command line option.
While `gropple` will use your `PATH` to find the executable, you may also want
2021-09-28 15:53:32 +09:30
to specify a full path instead.
So, for instance, to use `youtube-dlc` instead of `youtube-dl` and specify the
full path:
`gropple -dl-cmd /home/username/bin/youtube-dlc`
Note that this is only the path to the executable. If you need to change the
command arguments, see below.
## Changing the youtube-dl arguments
The default arguments passed to `youtube-dl` are:
* `--newline` (needed to allow gropple to properly parse the output)
* `--write-info-json` (optional, but provides information on the download in the corresponding .json file)
* `-f` and `bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best` (choose the type of video `youtube-dl` will download)
These are customisable on the command line for `gropple`. For example, to duplicate these default options, you would
do:
`gropple -dl-args '--newline' -dl-args '--write-info-json' -dl-args '-f' -dl-args 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best`
2021-09-21 19:57:36 +09:30
## TODO
2021-09-22 12:03:59 +09:30
Many things. Please raise an issue after checking the [currently open issues](https://github.com/tardisx/gropple/issues).
2021-09-21 19:57:36 +09:30
2021-09-21 18:10:52 +09:30