- Python 3.x
ytmdl -s
Run the following commands from you terminal
# Install ytmdl
sudo pip install ytmdl
# Setup the config file
ytmdl -s
-
Download the repo and extract it.
-
Run the following in cmd
# Copy the config
python ytmdl.py -s
-
Download a zip from here.
-
Extract.
-
Copy the three files in bin to C:\users\{username}\appdata\local\programs\python\python36\scripts\
usage: ytmdl [-h] [-q] [--version] [--url URL] [-s] [SONG_NAME]
positional arguments:
SONG_NAME Name of the song to download.
optional arguments:
-h, --help show this help message and exit
-q, --quiet Do not ask the user to select songs if more than one search
result. The first result in each case will be considered.
--version show the program version number and exit
--url URL Youtube song link.
-s, --setup Setup the config file
--nolocal Dont search locally for the song before downloading.
In case of windows, use python ytmdl.py
instead of ytmdl
above
Name | |
---|---|
SONG_DIR |
Directory to save the songs in after editing |
SONG_QUALITY |
Quality of the song |
|--your
|--desired
|--path
|--Album
|--Artist
|--Title
|--Song.mp3
Supported options are:
Name | |
---|---|
Artist |
Artist Of the Song |
Album |
Album Of the Song |
Title |
Title Of the Song |
Genre |
Genre Of the Song |
TrackNumber |
TrackNumber Of the Song |
ReleaseDate |
ReleaseDate Of the Song |
-
Inspired from https://github.com/tterb/yt2mp3
-
Thanks to the developers of youtube-dl, itunespy, mutagen, colorama and Python.
-
Thanks to itunes and gaana for their awesome API's.
-
Thanks to Nishan Pantha for search logic.
-
Thanks to Biswaroop for testing in windows.