dropout-dl/readme.md

83 lines
3.3 KiB
Markdown
Raw Normal View History

2022-09-14 01:07:03 +00:00
# dropout-dl
2022-12-22 03:49:20 +00:00
dropout-dl is tool to download [dropout.tv](dropout.tv) episodes. It can download single episodes, seasons, or full series.
2022-09-14 01:07:03 +00:00
2022-12-22 03:42:50 +00:00
* [Installation](#installation)
* [How to Build](#how-to-build)
* [Dependencies](#Dependencies)
# Installation
2022-10-01 02:54:00 +00:00
## How to Build
2022-09-14 01:07:03 +00:00
```
cmake -S <source-dir> -B <build-dir>
cd <build-dir>
make
```
2022-12-22 03:42:50 +00:00
### Dependencies
### Required
2022-12-22 03:49:20 +00:00
* [cURL](https://curl.se/libcurl/) - Required for downloading pages and videos.
### Recommended
2022-12-22 03:42:50 +00:00
* [SQLite](https://www.sqlite.org/index.html) - Required for retrieving cookies from browsers. This can be avoided by using the `--force-cookies` [option](#options).
### Optional
* [libgcrypt](https://www.gnupg.org/software/libgcrypt/index.html) - Used for decrypting chrome cookies retrieved from the sqlite database.
2022-09-14 01:07:03 +00:00
#### Void
2022-09-14 01:07:03 +00:00
```
2022-12-22 03:42:50 +00:00
sudo xbps-install -S libcurl sqlite-devel libgcrypt
2022-09-14 01:07:03 +00:00
```
#### Debian
2022-09-14 01:07:03 +00:00
```
sudo apt install libcurl4-gnutls-dev sqlite-devel
2022-09-14 01:07:03 +00:00
```
2022-09-29 03:15:20 +00:00
## How to Use
2022-09-14 01:07:03 +00:00
```
2022-09-29 03:15:20 +00:00
./dropout-dl <url> [OPTIONS]
```
By default, dropout-dl will download the episode in the format `<series>/S<season-num>E<episode-num><name>.mp4`
2022-09-29 03:15:20 +00:00
### Options
```
--help Display this message
--quality Set the quality of the downloaded video. Quality can be set to 'all' which
will download all qualities and place them into separate folders
--output Set the output filename
--output-directory Set the directory where files are output
--verbose Display debug information while running
--force-cookies Interpret the next to arguments as authentication cookie and session cookie
--series Interpret the url as a link to a series and download all episodes from all seasons
--season Interpret the url as a link to a season and download all episodes from all seasons
2022-09-14 01:07:03 +00:00
```
2022-12-22 03:42:50 +00:00
## Cookies
### Firefox
Create a file named `firefox_profile` in the build directory and paste in your [firefox profile folder path](https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data)
### Chrome
Install libgcrypt and create a file named `chrome_profile` in the build directory and paste in your chrome profile folder path (found on [chrome://version](chrome://version))
### Other/No Sqlite
Use the `--force-cookies` program option to manually input cookies.
2022-09-30 18:19:38 +00:00
## TODO
- [x] Create tests
- [x] Handle non-alphanumeric characters
- [ ] Test build process on other setups with other OSs.
2022-09-30 18:19:38 +00:00
2022-12-22 03:42:50 +00:00
## Contributing
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
### Issues
If you have any issues or would like a feature to be added please don't hesitate to submit an issue after checking to make sure it hasn't already been submitted. Using the templates is a good place to start, but sometimes they're overkill. For example, if the program segfaults for you, you don't need to state that the intended behaviour is to not segfault. \
\
If you'd like to contribute a good place to start is looking at open issues and trying to fix one with a pull request. \
**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://kcd.im/pull-request)
## Contributors
- Moss - [mossx-dev](https://github.com/mossx-dev)