Compare commits
No commits in common. "ea6671d954efb02447d228bc35a48c01d3b6cde1" and "b6761c282421717e3e50961ee3a6b6eff37aa145" have entirely different histories.
ea6671d954
...
b6761c2824
3 changed files with 9 additions and 48 deletions
14
Makefile
14
Makefile
|
@ -1,3 +1,8 @@
|
||||||
|
clean:
|
||||||
|
rm -rf __pycache__/
|
||||||
|
rm -rf .mypy_cache/
|
||||||
|
rm -f lyrics.txt input
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
python3 -m pip install -r requirements.txt
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
@ -13,15 +18,6 @@ tags:
|
||||||
chmod +x ./id3tag.sh
|
chmod +x ./id3tag.sh
|
||||||
./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:
|
pyformat:
|
||||||
python3 -m autopep8 --in-place .*.py
|
python3 -m autopep8 --in-place .*.py
|
||||||
|
|
||||||
|
|
36
README.md
36
README.md
|
@ -1,35 +1 @@
|
||||||
# Auto YT-DLP
|
Main file: `autoytdlp.sh`
|
||||||
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,4 +1,3 @@
|
||||||
yt-dlp>=2022.11.11
|
mutagen
|
||||||
mutagen>=1.45.0
|
requests
|
||||||
requests>=2.28.2
|
bs4
|
||||||
bs4==0.0.1
|
|
||||||
|
|
Reference in a new issue