You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add progress bar using rich progress
update getting started docs
update yt-dlp
fixes#235
* make deepsource happy
* add progress bars for album download
* update sentry sdk
Copy file name to clipboardexpand all lines: GETTING_STARTED.md
+21-12
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
-
####Getting start
1
+
# Getting started
2
2
3
-
Pre-requisite: You need Python 3.6+
3
+
### Pre-requisites
4
+
5
+
You need Python 3.6+. To download songs as MP3, you will need ffmpeg.
6
+
7
+
- Linux users can get them by installing libav-tools by using apt-get `sudo apt-get install -y libav-tools`) or a package manager which comes with your distro
8
+
- Windows users can download FFMPEG pre-built binaries from [here](http://ffmpeg.zeranoe.com/builds/). Extract the file using [7-zip](http://7-zip.org/) to a foldrer and [add the folder to your PATH environment variable](http://www.wikihow.com/Install-FFmpeg-on-Windows)
4
9
5
10
1. Install using pip
6
11
@@ -10,20 +15,26 @@ Pre-requisite: You need Python 3.6+
10
15
11
16
3. Make a note of Client ID and Client Secret. These values need to be then set `SPOTIPY_CLIENT_ID`, `SPOTIPY_CLIENT_SECRET` environment variables respectively.
12
17
13
-
You can set environment variables in Linux like so:
18
+
You can set environment variables as mentioned below:
Windows users, check for [this question](http://superuser.com/a/284351/4377) for details on how you can set environment variables. If you don't wish to use my URL for the redirect, you are free to use any valid URL. Just ensurethe redirect URL set as the environment variable matches with what you have entered in the developer console & in the environment variable above.
19
-
20
-
4. Create your YouTube API key & fetch the keys from [Google Developer Console](https://console.developers.google.com/apis/api/youtube/overview). Set the key as `YOUTUBE_DEV_KEY` environment variable as mentioned above. Note that as of **version 5 you do not have to set this** - it will fallback to scraping the YouTube page.
set SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
21
32
22
-
export YOUTUBE_DEV_KEY=youtube-dev-key
33
+
See [this question](http://superuser.com/a/284351/4377) for more info,
23
34
24
-
5. Run the script using `spotify_dl`. spotify_dl accepts different parameters, for more details run `spotify_dl -h`.
35
+
4. Run the script using `spotify_dl`. spotify_dl accepts different parameters, for more details run `spotify_dl -h`.
25
36
26
-
For most users `spotify_dl -l spotify_playlist_link -o download_directory -s yes` should do where
37
+
For most users `spotify_dl -l spotify_playlist_link -o download_directory` should do where
27
38
28
39
-`spotify_playlist_link` is a link to Spotify's playlist. You can get it from the 3-dot menu.
29
40
@@ -33,9 +44,7 @@ Pre-requisite: You need Python 3.6+
33
44
34
45
-`download_directory` is the location where the songs must be downloaded to. If you give a `.` then it will download to the current directory.
35
46
36
-
6. To retrieve download songs as MP3, you will need to install ffmpeg. If you prefer to skip MP3 conversion, pass `-m` or `--skip_mp3` as a parameter when running the script
37
-
- Linux users can get them by installing libav-tools by using apt-get (`sudo apt-get install -y libav-tools`) or a package manager which comes with your distro
38
-
- Windows users can download FFMPEG pre-built binaries from [here](http://ffmpeg.zeranoe.com/builds/). Extract the file using [7-zip](http://7-zip.org/) to a foldrer and [add the folder to your PATH environment variable](http://www.wikihow.com/Install-FFmpeg-on-Windows)
47
+
6. If you prefer to skip MP3 conversion, pass `-m` or `--skip_mp3` as a parameter when running the script
log.info(f"Fetched {offset}/{total_songs} songs in the album")
97
-
iftotal_songs==offset:
98
-
log.info('All pages fetched, time to leave. Added %s songs in total', offset)
99
-
break
94
+
progress.update(task_id=album_songs_task, description=f"Fetched {offset} of {album_total} songs from the album {track_album}", advance=offset, total=album_total)
0 commit comments