sdm-pycli 2.0.0__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sdm-pycli
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: A fast, zero-config CLI tool to download and sync playlists from Spotify, Apple Music, Tidal, YouTube, and SoundCloud.
5
5
  Author: Antares699
6
6
  License: MIT
@@ -22,6 +22,7 @@ Requires-Dist: typer>=0.12.0
22
22
  Requires-Dist: imageio-ffmpeg>=0.4.9
23
23
  Requires-Dist: ytmusicapi>=1.5.0
24
24
  Requires-Dist: spotapi>=1.2.0
25
+ Requires-Dist: Pillow>=9.0.0
25
26
  Dynamic: license-file
26
27
 
27
28
  # SDM - SDM Downloads Music
@@ -39,7 +40,7 @@ Recently, Spotify restricted their Web API, requiring developers to have a Premi
39
40
  - **Universal Support:** Spotify, Apple Music, Tidal, YouTube, and SoundCloud.
40
41
  - **Smart Syncing:** Two-way mirroring. Run `sdm sync` to fetch new tracks and clean up removed ones.
41
42
  - **Multi-Format:** Download in M4A (default), MP3, FLAC, or OPUS with native tags.
42
- - **Perfect Metadata:** Embeds Track, Artist, Album, Cover Art, Track/Disc Numbers, Genre, and Release Year.
43
+ - **Perfect Metadata:** Embeds Track, Artist, Album, Cover Art, Track/Disc Numbers, Genre, Release Year, and automatically generates `.m3u8` playlists.
43
44
  - **Advanced Processing:** Synced lyrics via LRCLIB, custom 2-pass EBU R128 (-14 LUFS) audio normalization algorithm for perfectly balanced studio-grade levels without dynamic range compression artifacts, and SponsorBlock trimming.
44
45
 
45
46
  ## Installation
@@ -126,13 +127,15 @@ sdm sync "C:\Users\You\Music\My Playlist"
126
127
  To import a local audio file into your playlist with official metadata and protect it from future sync deletions, run
127
128
 
128
129
  ```bash
129
- sdm inject [filePath] [trackUrl]
130
+ sdm inject [filePath] [trackUrl (Optional)]
130
131
  ```
131
132
 
133
+ If the `trackUrl` is omitted, `sdm` will launch an interactive search menu to help you find and apply metadata (including Last.fm enrichment and high-resolution cover art).
134
+
132
135
  Example:
133
136
 
134
137
  ```bash
135
- sdm inject "C:\Users\You\Downloads\song.mp3" https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b
138
+ sdm inject "C:\Users\You\Downloads\song.mp3"
136
139
  ```
137
140
 
138
141
  ### Config
@@ -173,30 +176,32 @@ sdm search "Never Gonna Give You Up - Rick Astley"
173
176
 
174
177
  ### Stats
175
178
 
176
- To show statistics for your local library (such as track count, total size, and format distribution), run
179
+ To show comprehensive statistics for your local library (such as track count, total size, format distribution, Top Genres, Top Artists, and Decades), run
177
180
 
178
181
  ```bash
179
182
  sdm stats [directory]
180
183
  ```
181
184
 
185
+ This command also runs a Health Check, warning you if any files are missing cover art or have a bitrate below 128kbps. Add the `-v` or `--verbose` flag to print a detailed list of problematic files.
186
+
182
187
  Example:
183
188
 
184
189
  ```bash
185
- sdm stats "C:\Users\You\Music"
190
+ sdm stats "C:\Users\You\Music" -v
186
191
  ```
187
192
 
188
193
  ### Migrate
189
194
 
190
- To bulk convert a downloaded library to a different audio format, run
195
+ To bulk convert a downloaded library to a different audio format (multithreaded for significantly faster processing), run
191
196
 
192
197
  ```bash
193
- sdm migrate --dir [directory] [target_format]
198
+ sdm migrate --dir [directory] [target_format] -w [workers]
194
199
  ```
195
200
 
196
201
  Example:
197
202
 
198
203
  ```bash
199
- sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus
204
+ sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus -w 5
200
205
  ```
201
206
 
202
207
  ## Options & Flags
@@ -205,11 +210,13 @@ sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus
205
210
  |---|---|
206
211
  | `-o, --output` | Save to a specific directory |
207
212
  | `-f, --format` | Audio format: `m4a`, `mp3`, `flac`, `opus` (default: `m4a`) |
208
- | `-w, --workers` | Number of concurrent downloads (default: `3`) |
213
+ | `-w, --workers` | Number of concurrent downloads or migrations (default: `3`) |
214
+ | `-v, --verbose` | Show detailed list of tracks with warnings during `stats` |
209
215
  | `--cleanup` | Run sync cleanup logic on a standard download to remove orphaned files |
210
216
  | `--index` | Manually override the track index number when injecting a file |
211
217
  | `--dir` | Target directory for the migrate and stats commands |
212
218
  | `--lyrics` | Fetch and embed synced lyrics from LRCLIB |
219
+ | `--resize-covers` | Resize high-res cover art to 600x600px to save storage space |
213
220
  | `--normalize` | Apply custom 2-pass EBU R128 (-14 LUFS) volume normalization |
214
221
  | `--sponsor-block` | Trim non-music sections from YouTube sources |
215
222
  | `--dry-run` | Simulate a sync/download without making changes |
@@ -217,6 +224,7 @@ sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus
217
224
  | `--refresh-metadata` | Re-tag existing files with the latest metadata (alias: `--refresh`) |
218
225
  | `--cookies` | Pass browser cookies for age-restricted content |
219
226
  | `--lastfm-key` | Enable extensive track-level genres and wiki summaries via Last.fm API |
227
+ | `--version` | Show the version and exit |
220
228
 
221
229
  Example with flags:
222
230
 
@@ -13,7 +13,7 @@ Recently, Spotify restricted their Web API, requiring developers to have a Premi
13
13
  - **Universal Support:** Spotify, Apple Music, Tidal, YouTube, and SoundCloud.
14
14
  - **Smart Syncing:** Two-way mirroring. Run `sdm sync` to fetch new tracks and clean up removed ones.
15
15
  - **Multi-Format:** Download in M4A (default), MP3, FLAC, or OPUS with native tags.
16
- - **Perfect Metadata:** Embeds Track, Artist, Album, Cover Art, Track/Disc Numbers, Genre, and Release Year.
16
+ - **Perfect Metadata:** Embeds Track, Artist, Album, Cover Art, Track/Disc Numbers, Genre, Release Year, and automatically generates `.m3u8` playlists.
17
17
  - **Advanced Processing:** Synced lyrics via LRCLIB, custom 2-pass EBU R128 (-14 LUFS) audio normalization algorithm for perfectly balanced studio-grade levels without dynamic range compression artifacts, and SponsorBlock trimming.
18
18
 
19
19
  ## Installation
@@ -100,13 +100,15 @@ sdm sync "C:\Users\You\Music\My Playlist"
100
100
  To import a local audio file into your playlist with official metadata and protect it from future sync deletions, run
101
101
 
102
102
  ```bash
103
- sdm inject [filePath] [trackUrl]
103
+ sdm inject [filePath] [trackUrl (Optional)]
104
104
  ```
105
105
 
106
+ If the `trackUrl` is omitted, `sdm` will launch an interactive search menu to help you find and apply metadata (including Last.fm enrichment and high-resolution cover art).
107
+
106
108
  Example:
107
109
 
108
110
  ```bash
109
- sdm inject "C:\Users\You\Downloads\song.mp3" https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b
111
+ sdm inject "C:\Users\You\Downloads\song.mp3"
110
112
  ```
111
113
 
112
114
  ### Config
@@ -147,30 +149,32 @@ sdm search "Never Gonna Give You Up - Rick Astley"
147
149
 
148
150
  ### Stats
149
151
 
150
- To show statistics for your local library (such as track count, total size, and format distribution), run
152
+ To show comprehensive statistics for your local library (such as track count, total size, format distribution, Top Genres, Top Artists, and Decades), run
151
153
 
152
154
  ```bash
153
155
  sdm stats [directory]
154
156
  ```
155
157
 
158
+ This command also runs a Health Check, warning you if any files are missing cover art or have a bitrate below 128kbps. Add the `-v` or `--verbose` flag to print a detailed list of problematic files.
159
+
156
160
  Example:
157
161
 
158
162
  ```bash
159
- sdm stats "C:\Users\You\Music"
163
+ sdm stats "C:\Users\You\Music" -v
160
164
  ```
161
165
 
162
166
  ### Migrate
163
167
 
164
- To bulk convert a downloaded library to a different audio format, run
168
+ To bulk convert a downloaded library to a different audio format (multithreaded for significantly faster processing), run
165
169
 
166
170
  ```bash
167
- sdm migrate --dir [directory] [target_format]
171
+ sdm migrate --dir [directory] [target_format] -w [workers]
168
172
  ```
169
173
 
170
174
  Example:
171
175
 
172
176
  ```bash
173
- sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus
177
+ sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus -w 5
174
178
  ```
175
179
 
176
180
  ## Options & Flags
@@ -179,11 +183,13 @@ sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus
179
183
  |---|---|
180
184
  | `-o, --output` | Save to a specific directory |
181
185
  | `-f, --format` | Audio format: `m4a`, `mp3`, `flac`, `opus` (default: `m4a`) |
182
- | `-w, --workers` | Number of concurrent downloads (default: `3`) |
186
+ | `-w, --workers` | Number of concurrent downloads or migrations (default: `3`) |
187
+ | `-v, --verbose` | Show detailed list of tracks with warnings during `stats` |
183
188
  | `--cleanup` | Run sync cleanup logic on a standard download to remove orphaned files |
184
189
  | `--index` | Manually override the track index number when injecting a file |
185
190
  | `--dir` | Target directory for the migrate and stats commands |
186
191
  | `--lyrics` | Fetch and embed synced lyrics from LRCLIB |
192
+ | `--resize-covers` | Resize high-res cover art to 600x600px to save storage space |
187
193
  | `--normalize` | Apply custom 2-pass EBU R128 (-14 LUFS) volume normalization |
188
194
  | `--sponsor-block` | Trim non-music sections from YouTube sources |
189
195
  | `--dry-run` | Simulate a sync/download without making changes |
@@ -191,6 +197,7 @@ sdm migrate --dir "C:\Users\You\Music\FLAC Library" opus
191
197
  | `--refresh-metadata` | Re-tag existing files with the latest metadata (alias: `--refresh`) |
192
198
  | `--cookies` | Pass browser cookies for age-restricted content |
193
199
  | `--lastfm-key` | Enable extensive track-level genres and wiki summaries via Last.fm API |
200
+ | `--version` | Show the version and exit |
194
201
 
195
202
  Example with flags:
196
203
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sdm-pycli"
7
- version = "2.0.0"
7
+ version = "2.1.0"
8
8
  description = "A fast, zero-config CLI tool to download and sync playlists from Spotify, Apple Music, Tidal, YouTube, and SoundCloud."
9
9
  readme = "README.md"
10
10
  authors = [
@@ -26,7 +26,8 @@ dependencies = [
26
26
  "typer>=0.12.0",
27
27
  "imageio-ffmpeg>=0.4.9",
28
28
  "ytmusicapi>=1.5.0",
29
- "spotapi>=1.2.0"
29
+ "spotapi>=1.2.0",
30
+ "Pillow>=9.0.0"
30
31
  ]
31
32
  requires-python = ">=3.8"
32
33
 
@@ -1,3 +1,3 @@
1
1
  """SDM - SDM Downloads Music. A fast CLI tool to download and sync playlists from Spotify, Apple Music, Tidal, YouTube, and SoundCloud."""
2
2
 
3
- __version__ = "2.0.0"
3
+ __version__ = "2.1.0"