Update README.md

Added bookmarklet code, very handy if using media-roller from a PC
This commit is contained in:
Brett 2020-09-22 21:02:55 -06:00 committed by GitHub
parent 40a0bd0aaa
commit 470e9da8e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,12 @@ To download a video directly, use the API endpoint:
/api/download?url=SOME_URL /api/download?url=SOME_URL
``` ```
Create a bookmarklet, allowing one click downloads (From a PC):
```
javascript:(location.href="http://127.0.0.1:3000/fetch?url="+encodeURIComponent(location.href));
```
# Integrating with mobile # Integrating with mobile
After you you have you server up, install this shortcut. Update the endpoint to your server address by editing the shortcut before running it. After you you have you server up, install this shortcut. Update the endpoint to your server address by editing the shortcut before running it.