Compare commits
2 commits
b6761c2824
...
ea6671d954
Author | SHA1 | Date | |
---|---|---|---|
ea6671d954 | |||
037f017914 |
3 changed files with 48 additions and 9 deletions
14
Makefile
14
Makefile
|
@ -1,8 +1,3 @@
|
|||
clean:
|
||||
rm -rf __pycache__/
|
||||
rm -rf .mypy_cache/
|
||||
rm -f lyrics.txt input
|
||||
|
||||
deps:
|
||||
python3 -m pip install -r requirements.txt
|
||||
|
||||
|
@ -18,6 +13,15 @@ tags:
|
|||
chmod +x ./id3tag.sh
|
||||
./id3tag.sh
|
||||
|
||||
clean:
|
||||
rm -rf __pycache__/
|
||||
rm -rf .mypy_cache/
|
||||
rm -f lyrics.txt input
|
||||
|
||||
rmfiles:
|
||||
rm -rf files/
|
||||
rm -rf convert/
|
||||
|
||||
pyformat:
|
||||
python3 -m autopep8 --in-place .*.py
|
||||
|
||||
|
|
36
README.md
36
README.md
|
@ -1 +1,35 @@
|
|||
Main file: `autoytdlp.sh`
|
||||
# Auto YT-DLP
|
||||
The Bash script which automatically finds links in the clipboard
|
||||
and downloads video/audio from these URLs using [yt-dlp](https://github.com/yt-dlp/yt-dlp).
|
||||
|
||||
Created mainly for downloading music albums from YouTube.
|
||||
|
||||
## Requirements
|
||||
It requires Python 3.7 or newer and `yt-dlp`.
|
||||
Additionally, if you want to use `convert.sh`, you'll need to install `ffmpeg`.
|
||||
For `id3tag.sh` requirements are `mutagen`, `requests` and `bs4` libraries.
|
||||
|
||||
You can run `make deps` to install all requirements,
|
||||
or this command:
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Usage: autoytdlp
|
||||
1. Run the script with `./autoytdlp.sh` or `make run` command.
|
||||
2. Just copy video links from YouTube or another supported website.
|
||||
3. Return to the terminal window and press Ctrl+C.
|
||||
4. Choose which tool will be used for downloading videos:
|
||||
- **`yt-dlp` CLI utility** provides much better
|
||||
performance and supports many sources.
|
||||
- **Piped API client** implementation works slower,
|
||||
but all requests are proxied with Piped server.
|
||||
Note that Piped works only with YouTube.
|
||||
5. Enter file format (and instance URL for Piped),
|
||||
then wait while videos are downloading.
|
||||
|
||||
## Usage: convert
|
||||
// TODO
|
||||
|
||||
## Usage: id3tag
|
||||
// TODO
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
mutagen
|
||||
requests
|
||||
bs4
|
||||
yt-dlp>=2022.11.11
|
||||
mutagen>=1.45.0
|
||||
requests>=2.28.2
|
||||
bs4==0.0.1
|
||||
|
|
Reference in a new issue