Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit be783ab

Browse files
committed
Build
1 parent 5bd8a23 commit be783ab

File tree

7 files changed

+82
-8
lines changed

7 files changed

+82
-8
lines changed

build/lib/mmdl/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def list(songs, verbose, debug, ask):
159159
songs_list = songs_list.split(",")
160160
else:
161161
if len(songs) < 1:
162-
console.print("[cyan][-][/] You didn't specify any songs. So we'll be manually asking them to you.")
162+
# console.print("[cyan][-][/] You didn't specify any songs. So we'll be manually asking them to you.")
163163
songs_list = questionary.text("Write all songs search terms (comma seperated)").ask()
164164
if not songs_list:
165165
quit()
@@ -196,10 +196,8 @@ def list(songs, verbose, debug, ask):
196196
@click.option("-d","--debug", help="Enable debug mode", is_flag=True)
197197
@click.option("-a","--ask", help="Get songs via input (easy)", is_flag=True)
198198
def ytmusic(file, verbose, debug, ask):
199-
if not ask and not file:
200-
ask = True
201199
"""
202-
Download multiple songs from YouTube Music Liked songs.
200+
Download multiple songs from YouTube Music liked songs playlist.
203201
204202
mmdl [Mega Music Downloader] - A tool to easily download music.
205203
@@ -209,6 +207,8 @@ def ytmusic(file, verbose, debug, ask):
209207
Run 'mmdl download ytmusic <filepath e.g. ~/Downloads/file.txt> (or --ask or -a for entering file via input)'.
210208
211209
"""
210+
if not ask and not file:
211+
ask = True
212212
if ask:
213213
console.print("[cyan][>][/] We'll be manually asking you for the file location.")
214214
console.print("""

build/lib/mmdl/mdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def download_songs(self): # sourcery no-metrics
190190
temp.append(song)
191191

192192
if len(temp) > 1:
193-
for r in track(concurrent.futures.as_completed(temp), description="Downloading song(s) (Be patient, this can take some time)...", total=len(temp)):
193+
for r in track(concurrent.futures.as_completed(temp), description="Downloading song(s) (This can take some time)...", total=len(temp)):
194194
pass
195195
else:
196196
with console.status("[bold]Downloading single song, please wait...[/bold]", spinner="bouncingBar") as status:

dist/mmdl-0.0.11-py3-none-any.whl

-10.6 KB
Binary file not shown.

dist/mmdl-0.0.11.tar.gz

-8.98 KB
Binary file not shown.

dist/mmdl-0.0.12-py3-none-any.whl

11.5 KB
Binary file not shown.

dist/mmdl-0.0.12.tar.gz

11 KB
Binary file not shown.

mmdl.egg-info/PKG-INFO

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: mmdl
3-
Version: 0.0.11
3+
Version: 0.0.12
44
Summary: MMDL [Mega Music Downloader] - A tool to easily download music.
55
Home-page: https://github.com/techboy-coder/mmdl
66
Author: techboy-coder
@@ -16,8 +16,82 @@ Description-Content-Type: text/markdown
1616
License-File: LICENCE
1717

1818

19-
# mmdl
19+
![carbon](./carbon.svg)
20+
21+
# mmdl - Mega Music Downloader
22+
23+
![License](https://img.shields.io/pypi/l/mmdl?style=for-the-badge) ![PyPI](https://img.shields.io/pypi/v/mmdl?style=for-the-badge) ![Downloads](https://img.shields.io/pypi/dw/mmdl?style=for-the-badge)
24+
25+
## What is mmdl ❓
26+
27+
MMDL is a cli app which allows you to quickly and efficiently download one or multiple songs from YouTube.
28+
29+
### Why
30+
31+
- 🕖 Fast: Thanks to *async code* and *multithreading*.
32+
- ⚡ Simple: Type `mmdl go` and get started with downloading songs.
33+
- ✨ Powerful
34+
- Find songs based on songs query/title
35+
- Skip already existing songs
36+
- Add metadata such as artist name and artwork
37+
38+
## Requirements 👇
39+
40+
- Python 3
41+
- FFmpeg
42+
43+
## Install ❤️
44+
45+
```bash
46+
pip install mmdl
47+
```
48+
49+
⚡**That’s it! **⚡
50+
51+
## Usage 🔥
52+
53+
### Go
54+
55+
*Very quick and easy way of running the cli. Few questions will be asked via prompts. **This is the recommended way!***
56+
57+
```shell
58+
mmdl go
59+
```
60+
61+
### Download
62+
63+
*Fast and traditional way of running the cli. Pass arguments and have your songs downloaded. Useful for automation scripts.*
64+
65+
```shell
66+
mmdl download <method> #(add -h for more information)
67+
```
68+
69+
#### Methods
70+
71+
- File `mmdl download file <location>`: Get songs from file. Then download them.
72+
- List `mmdl download list "Term1" "Term2" ...` or `mmdl download list -a` for a prompt: Add multiple songs as cli arguments or enter them in a prompt.
73+
- YTMusic (beta) `mmdl download ytmusi` : Download multiple songs from *YouTube Music liked songs playlist* (via parsing HTML)
74+
- Single `mmdl download single song name`: Download a single song.
75+
76+
## Support ⚡
77+
78+
### Bugs 🐛
79+
80+
Please [open a issue](https://github.com/techboy-coder/mmdl/issues/new) with some information to reproduce your problem.
81+
82+
### Questions ❓
83+
84+
Please [start/check a discussion](https://github.com/techboy-coder/mmdl/discussions/new).
85+
86+
## Contributing 🤜
87+
88+
We welcome contributions very much. They are appreciated.
89+
90+
### Steps
91+
92+
1. Check for bugs/issues you would like to solve.
93+
2. Fork the repo and make your changes.
94+
3. Send a pull request.
2095

21-
Mmdl [Mega Music Downloader] - A tool to easily download music.
2296

2397

0 commit comments

Comments
 (0)