1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
|
%global _empty_manifest_terminate_build 0
Name: python-get-cover-art
Version: 1.8.0
Release: 1
Summary: Batch cover art downloader and embedder for audio files
License: MIT
URL: https://github.com/regosen/get_cover_art
Source0: https://mirrors.aliyun.com/pypi/web/packages/f2/52/5c8d4a03723fcd667209217d5e4b08723718a9e2f7e7cba592058bdba89a/get_cover_art-1.8.0.tar.gz
BuildArch: noarch
Requires: python3-mutagen
%description
# get_cover_art
### THE PROBLEM
Missing cover art for large imported music libraries.
### EXISTING SOLUTIONS
1. Apple's Music App (and its predecessor iTunes) has a "Get Album Artwork" feature, but it isn't reliable and doesn't actually embed cover art into your audio files. That means if you move your music library elsewhere, you'll be missing all your album artwork.
2. Metadata utilities like Metadatics are great (and cheap if not free), but they can require a lot of manual interaction to go through each album and select artwork from search results. This can be forbidding for large libraries of thousands of albums.
### THIS SOLUTION
This Python package will batch-update your entire library without manual interaction for each album.
It uses Apple Music's artwork, which is already standardized and high-quality. It also embeds the artwork directly into your audio files, so that it's independent of your player.
## Supported formats (so far)
- MP3
- MP4 (.m4a, .m4b)
- FLAC
- DSF
- Ogg Vorbis
- Opus
- WAV*
(* NOTE: Apple Music and other players may not recognize ID3 tags on WAV files.)
## Setup
### Requirements
- Python 3.5 or greater
- Python packages: [mutagen](https://pypi.org/project/mutagen/)
- automatically installed if you use `pip install` below
### Installation
You can download this repository from GitHub, or grab it from [PyPI](https://pypi.org/project/get-cover-art/) using pip:
```
$ pip install get_cover_art
```
To upgrade existing installations:
```
$ pip install --upgrade get_cover_art
```
## Usage
### From the Command Line
```
[python -m] get_cover_art [--path=<path_to_audio_file_or_folder>] [--options]
--path PATH audio file, or folder of audio files (recursive)
artwork options:
--art-size ART_SIZE square dimensions of artwork (default: 500)
--art-quality ART_QUALITY
jpeg compression quality (1-100, default: auto)
--art-dest DEST set artwork destination folder
--art-dest-inline set artwork destination folder to same folders as audio files
--art-dest-filename ART_DEST_FILENAME
set artwork destination filename format. Accepts
{artist}, {album}, {album_or_title}, {filename}, and
{title}. Default is '{artist} - {album_or_title}.jpg'
--external-art-mode {before,after,none}
Use images from local disk: "before" prevents
downloads, "after" downloads as a fallback. Default is none.
--external-art-filename EXTERNAL_ART_FILENAME [EXTERNAL_ART_FILENAME ...]
Filename(s) of folder art to use. Accepts {artist},
{album}, and {title} for replacement: e.g. cover.jpg
or {album}-{artist}.jpg ; this does not affect the filename
for art that must be fetched (use --art-dest-filename for
that).
behavior options:
--test, --no-embed scan and download only, don't embed artwork
--no-download embed only previously-downloaded artwork
--clear clear artwork from audio file (regardless of finding art)
--cleanup remove downloaded artwork files afterward
--force process files regardless of existing artwork
--verbose print verbose logging
--no-skip don't skip previously-scanned files
--throttle THROTTLE number of seconds to wait if request is rejected
filter options:
--skip-artwork SKIP_ARTWORK
(maintained between runs) file listing destination art files to skip
--skip-artists SKIP_ARTISTS
file listing artists to skip
--skip-albums SKIP_ALBUMS
file listing albums to skip
```
if you omit `path`, it will scan the current working directory
_Pro Tip:_ You can run with `--test` first, then browse/prune the downloaded artwork, then run again with `--no-download` to embed only the artwork you didn't prune.
### From the Python Environment
```python
from get_cover_art import CoverFinder
finder = CoverFinder(OPTIONS)
# then you can run either of these:
finder.scan_folder(PATH_TO_AUDIO_LIBRARY)
finder.scan_file(PATH_TO_AUDIO_FILE)
```
- `OPTIONS` is a dict of the same options listed for the commandline, e.g. `--verbose` -> `{'verbose': True}`
- you can omit `PATH_TO_AUDIO_LIBRARY` to default to your current directory
- your `CoverFinder` object keeps a list of files_processed, files_skipped, files_failed, files_invalid
## How it works
1. First, it recursively scans your provided folder for supported files.
- Step 1 is skipped if you specified a single file instead of a folder.
2. For each file without embedded artwork (or all files if `--force` is used), attempts to download from Apple Music based on artist and album metadata.
- Step 2 is skipped if it had already downloaded (or attempted to download) the image file.
- This works by caching a list of previously downloaded/attempted artwork (using `skip_artwork.txt`)
- You can ignore the cached list by using `--no-skip`
- Step 2 is also skipped based on `--no-download` or other `--skip-*` options.
3. If artwork is found, it's embedded into the audio file.
### Why do you download from Apple Music and not Google image search?
1. Google's Image Search API requires a dev token (so does Apple Music's API, but not its public web query URL).
2. Google search queries are heavily throttled.
3. Apple Music's cover sizes are standardized and sufficiently large.
### Using external art sources
The external-art options allow you to fall back on local folder art.
Some other scraping systems may have created cover art: for instance, some
Kodi scrapers create a "cover.jpg" image in each album directory.
Specifying "--external-art-mode before" will use these existing images, and only
download images if there is no existing image. Specifying "--external-art-mode
after" will attempt to download artwork as usual, only falling back on the
existing images if the download is unable to locate new art.
The "--external-art-filename" option allows you to specify the filename(s) to use
for this existing folder art. It defaults to "cover.jpg \_albumcover.jpg folder.jpg", which are 3 filenames commonly used by other scraping programs. You
can also use bracket formatting with the artist, album, and title fields:
for instance, --external-art-filename "{artist}-{album}-cover.jpg" would create
filenames such as "The Beatles-Abbey Road-cover.jpg".
The "--art-dest-filename" option allows you to specify the filename used to
store downloaded files, for interoperability with other systems. You __must__
be careful to avoid collisions between different albums: The default is
"{artist} - {album_or_title}.jpg". If you know that all of the albums you're running
against have their own directories _and_ you are using "--art-dest-inline", then you
could use something more generic (such as "cover.jpg"). A note about the format:
- {album_or_title} falls back on the title tag if the album tag is blank
- {filename} uses the filename of the source audio file (minus the extension)
_Pro Tip:_ If you have a cover.jpg in each album directory, you can use:
"--external-art-mode before --external-art-filename cover.jpg --art-dest-inline"
and the local images will be used when present (avoiding network lookups).
You could also specify "--art-dest-filename cover.jpg" if you want to store the
newly downloaded covers in a similar location (again, this is only sane
in combination with --art-dest-inline, in cases where each album is stored in
a separate directory).
## Troubleshooting
### The artwork is embedded now, but Apple's Music App still won't show it.
Try re-importing one of your embedded files. If the re-imported version shows artwork, you need to reimport your music library. You can do this without losing your playlists as follows:
1. File->Library->Export Library... and name your exported library file.
2. Visit Music->Preferences...->Files and screenshot your options. You'll need to restore them later.
3. Quit the app and relaunch while holding down the Option key.
4. Choose "Create Library..." and pick a new location.
5. Visit Music->Preferences...->Files and restore your desired options.
6. File->Library->Import Playlist... and choose your library file from step 1. (Yes, it's called "Import Playlist..." but you actually use this to import your library.)
Step 6 will take a while.
### The artwork appears in Apple's Music App but not my iOS device.
You'll have to unsync all your music and re-sync it again. Try it with a single file first.
%package -n python3-get-cover-art
Summary: Batch cover art downloader and embedder for audio files
Provides: python-get-cover-art
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-get-cover-art
# get_cover_art
### THE PROBLEM
Missing cover art for large imported music libraries.
### EXISTING SOLUTIONS
1. Apple's Music App (and its predecessor iTunes) has a "Get Album Artwork" feature, but it isn't reliable and doesn't actually embed cover art into your audio files. That means if you move your music library elsewhere, you'll be missing all your album artwork.
2. Metadata utilities like Metadatics are great (and cheap if not free), but they can require a lot of manual interaction to go through each album and select artwork from search results. This can be forbidding for large libraries of thousands of albums.
### THIS SOLUTION
This Python package will batch-update your entire library without manual interaction for each album.
It uses Apple Music's artwork, which is already standardized and high-quality. It also embeds the artwork directly into your audio files, so that it's independent of your player.
## Supported formats (so far)
- MP3
- MP4 (.m4a, .m4b)
- FLAC
- DSF
- Ogg Vorbis
- Opus
- WAV*
(* NOTE: Apple Music and other players may not recognize ID3 tags on WAV files.)
## Setup
### Requirements
- Python 3.5 or greater
- Python packages: [mutagen](https://pypi.org/project/mutagen/)
- automatically installed if you use `pip install` below
### Installation
You can download this repository from GitHub, or grab it from [PyPI](https://pypi.org/project/get-cover-art/) using pip:
```
$ pip install get_cover_art
```
To upgrade existing installations:
```
$ pip install --upgrade get_cover_art
```
## Usage
### From the Command Line
```
[python -m] get_cover_art [--path=<path_to_audio_file_or_folder>] [--options]
--path PATH audio file, or folder of audio files (recursive)
artwork options:
--art-size ART_SIZE square dimensions of artwork (default: 500)
--art-quality ART_QUALITY
jpeg compression quality (1-100, default: auto)
--art-dest DEST set artwork destination folder
--art-dest-inline set artwork destination folder to same folders as audio files
--art-dest-filename ART_DEST_FILENAME
set artwork destination filename format. Accepts
{artist}, {album}, {album_or_title}, {filename}, and
{title}. Default is '{artist} - {album_or_title}.jpg'
--external-art-mode {before,after,none}
Use images from local disk: "before" prevents
downloads, "after" downloads as a fallback. Default is none.
--external-art-filename EXTERNAL_ART_FILENAME [EXTERNAL_ART_FILENAME ...]
Filename(s) of folder art to use. Accepts {artist},
{album}, and {title} for replacement: e.g. cover.jpg
or {album}-{artist}.jpg ; this does not affect the filename
for art that must be fetched (use --art-dest-filename for
that).
behavior options:
--test, --no-embed scan and download only, don't embed artwork
--no-download embed only previously-downloaded artwork
--clear clear artwork from audio file (regardless of finding art)
--cleanup remove downloaded artwork files afterward
--force process files regardless of existing artwork
--verbose print verbose logging
--no-skip don't skip previously-scanned files
--throttle THROTTLE number of seconds to wait if request is rejected
filter options:
--skip-artwork SKIP_ARTWORK
(maintained between runs) file listing destination art files to skip
--skip-artists SKIP_ARTISTS
file listing artists to skip
--skip-albums SKIP_ALBUMS
file listing albums to skip
```
if you omit `path`, it will scan the current working directory
_Pro Tip:_ You can run with `--test` first, then browse/prune the downloaded artwork, then run again with `--no-download` to embed only the artwork you didn't prune.
### From the Python Environment
```python
from get_cover_art import CoverFinder
finder = CoverFinder(OPTIONS)
# then you can run either of these:
finder.scan_folder(PATH_TO_AUDIO_LIBRARY)
finder.scan_file(PATH_TO_AUDIO_FILE)
```
- `OPTIONS` is a dict of the same options listed for the commandline, e.g. `--verbose` -> `{'verbose': True}`
- you can omit `PATH_TO_AUDIO_LIBRARY` to default to your current directory
- your `CoverFinder` object keeps a list of files_processed, files_skipped, files_failed, files_invalid
## How it works
1. First, it recursively scans your provided folder for supported files.
- Step 1 is skipped if you specified a single file instead of a folder.
2. For each file without embedded artwork (or all files if `--force` is used), attempts to download from Apple Music based on artist and album metadata.
- Step 2 is skipped if it had already downloaded (or attempted to download) the image file.
- This works by caching a list of previously downloaded/attempted artwork (using `skip_artwork.txt`)
- You can ignore the cached list by using `--no-skip`
- Step 2 is also skipped based on `--no-download` or other `--skip-*` options.
3. If artwork is found, it's embedded into the audio file.
### Why do you download from Apple Music and not Google image search?
1. Google's Image Search API requires a dev token (so does Apple Music's API, but not its public web query URL).
2. Google search queries are heavily throttled.
3. Apple Music's cover sizes are standardized and sufficiently large.
### Using external art sources
The external-art options allow you to fall back on local folder art.
Some other scraping systems may have created cover art: for instance, some
Kodi scrapers create a "cover.jpg" image in each album directory.
Specifying "--external-art-mode before" will use these existing images, and only
download images if there is no existing image. Specifying "--external-art-mode
after" will attempt to download artwork as usual, only falling back on the
existing images if the download is unable to locate new art.
The "--external-art-filename" option allows you to specify the filename(s) to use
for this existing folder art. It defaults to "cover.jpg \_albumcover.jpg folder.jpg", which are 3 filenames commonly used by other scraping programs. You
can also use bracket formatting with the artist, album, and title fields:
for instance, --external-art-filename "{artist}-{album}-cover.jpg" would create
filenames such as "The Beatles-Abbey Road-cover.jpg".
The "--art-dest-filename" option allows you to specify the filename used to
store downloaded files, for interoperability with other systems. You __must__
be careful to avoid collisions between different albums: The default is
"{artist} - {album_or_title}.jpg". If you know that all of the albums you're running
against have their own directories _and_ you are using "--art-dest-inline", then you
could use something more generic (such as "cover.jpg"). A note about the format:
- {album_or_title} falls back on the title tag if the album tag is blank
- {filename} uses the filename of the source audio file (minus the extension)
_Pro Tip:_ If you have a cover.jpg in each album directory, you can use:
"--external-art-mode before --external-art-filename cover.jpg --art-dest-inline"
and the local images will be used when present (avoiding network lookups).
You could also specify "--art-dest-filename cover.jpg" if you want to store the
newly downloaded covers in a similar location (again, this is only sane
in combination with --art-dest-inline, in cases where each album is stored in
a separate directory).
## Troubleshooting
### The artwork is embedded now, but Apple's Music App still won't show it.
Try re-importing one of your embedded files. If the re-imported version shows artwork, you need to reimport your music library. You can do this without losing your playlists as follows:
1. File->Library->Export Library... and name your exported library file.
2. Visit Music->Preferences...->Files and screenshot your options. You'll need to restore them later.
3. Quit the app and relaunch while holding down the Option key.
4. Choose "Create Library..." and pick a new location.
5. Visit Music->Preferences...->Files and restore your desired options.
6. File->Library->Import Playlist... and choose your library file from step 1. (Yes, it's called "Import Playlist..." but you actually use this to import your library.)
Step 6 will take a while.
### The artwork appears in Apple's Music App but not my iOS device.
You'll have to unsync all your music and re-sync it again. Try it with a single file first.
%package help
Summary: Development documents and examples for get-cover-art
Provides: python3-get-cover-art-doc
%description help
# get_cover_art
### THE PROBLEM
Missing cover art for large imported music libraries.
### EXISTING SOLUTIONS
1. Apple's Music App (and its predecessor iTunes) has a "Get Album Artwork" feature, but it isn't reliable and doesn't actually embed cover art into your audio files. That means if you move your music library elsewhere, you'll be missing all your album artwork.
2. Metadata utilities like Metadatics are great (and cheap if not free), but they can require a lot of manual interaction to go through each album and select artwork from search results. This can be forbidding for large libraries of thousands of albums.
### THIS SOLUTION
This Python package will batch-update your entire library without manual interaction for each album.
It uses Apple Music's artwork, which is already standardized and high-quality. It also embeds the artwork directly into your audio files, so that it's independent of your player.
## Supported formats (so far)
- MP3
- MP4 (.m4a, .m4b)
- FLAC
- DSF
- Ogg Vorbis
- Opus
- WAV*
(* NOTE: Apple Music and other players may not recognize ID3 tags on WAV files.)
## Setup
### Requirements
- Python 3.5 or greater
- Python packages: [mutagen](https://pypi.org/project/mutagen/)
- automatically installed if you use `pip install` below
### Installation
You can download this repository from GitHub, or grab it from [PyPI](https://pypi.org/project/get-cover-art/) using pip:
```
$ pip install get_cover_art
```
To upgrade existing installations:
```
$ pip install --upgrade get_cover_art
```
## Usage
### From the Command Line
```
[python -m] get_cover_art [--path=<path_to_audio_file_or_folder>] [--options]
--path PATH audio file, or folder of audio files (recursive)
artwork options:
--art-size ART_SIZE square dimensions of artwork (default: 500)
--art-quality ART_QUALITY
jpeg compression quality (1-100, default: auto)
--art-dest DEST set artwork destination folder
--art-dest-inline set artwork destination folder to same folders as audio files
--art-dest-filename ART_DEST_FILENAME
set artwork destination filename format. Accepts
{artist}, {album}, {album_or_title}, {filename}, and
{title}. Default is '{artist} - {album_or_title}.jpg'
--external-art-mode {before,after,none}
Use images from local disk: "before" prevents
downloads, "after" downloads as a fallback. Default is none.
--external-art-filename EXTERNAL_ART_FILENAME [EXTERNAL_ART_FILENAME ...]
Filename(s) of folder art to use. Accepts {artist},
{album}, and {title} for replacement: e.g. cover.jpg
or {album}-{artist}.jpg ; this does not affect the filename
for art that must be fetched (use --art-dest-filename for
that).
behavior options:
--test, --no-embed scan and download only, don't embed artwork
--no-download embed only previously-downloaded artwork
--clear clear artwork from audio file (regardless of finding art)
--cleanup remove downloaded artwork files afterward
--force process files regardless of existing artwork
--verbose print verbose logging
--no-skip don't skip previously-scanned files
--throttle THROTTLE number of seconds to wait if request is rejected
filter options:
--skip-artwork SKIP_ARTWORK
(maintained between runs) file listing destination art files to skip
--skip-artists SKIP_ARTISTS
file listing artists to skip
--skip-albums SKIP_ALBUMS
file listing albums to skip
```
if you omit `path`, it will scan the current working directory
_Pro Tip:_ You can run with `--test` first, then browse/prune the downloaded artwork, then run again with `--no-download` to embed only the artwork you didn't prune.
### From the Python Environment
```python
from get_cover_art import CoverFinder
finder = CoverFinder(OPTIONS)
# then you can run either of these:
finder.scan_folder(PATH_TO_AUDIO_LIBRARY)
finder.scan_file(PATH_TO_AUDIO_FILE)
```
- `OPTIONS` is a dict of the same options listed for the commandline, e.g. `--verbose` -> `{'verbose': True}`
- you can omit `PATH_TO_AUDIO_LIBRARY` to default to your current directory
- your `CoverFinder` object keeps a list of files_processed, files_skipped, files_failed, files_invalid
## How it works
1. First, it recursively scans your provided folder for supported files.
- Step 1 is skipped if you specified a single file instead of a folder.
2. For each file without embedded artwork (or all files if `--force` is used), attempts to download from Apple Music based on artist and album metadata.
- Step 2 is skipped if it had already downloaded (or attempted to download) the image file.
- This works by caching a list of previously downloaded/attempted artwork (using `skip_artwork.txt`)
- You can ignore the cached list by using `--no-skip`
- Step 2 is also skipped based on `--no-download` or other `--skip-*` options.
3. If artwork is found, it's embedded into the audio file.
### Why do you download from Apple Music and not Google image search?
1. Google's Image Search API requires a dev token (so does Apple Music's API, but not its public web query URL).
2. Google search queries are heavily throttled.
3. Apple Music's cover sizes are standardized and sufficiently large.
### Using external art sources
The external-art options allow you to fall back on local folder art.
Some other scraping systems may have created cover art: for instance, some
Kodi scrapers create a "cover.jpg" image in each album directory.
Specifying "--external-art-mode before" will use these existing images, and only
download images if there is no existing image. Specifying "--external-art-mode
after" will attempt to download artwork as usual, only falling back on the
existing images if the download is unable to locate new art.
The "--external-art-filename" option allows you to specify the filename(s) to use
for this existing folder art. It defaults to "cover.jpg \_albumcover.jpg folder.jpg", which are 3 filenames commonly used by other scraping programs. You
can also use bracket formatting with the artist, album, and title fields:
for instance, --external-art-filename "{artist}-{album}-cover.jpg" would create
filenames such as "The Beatles-Abbey Road-cover.jpg".
The "--art-dest-filename" option allows you to specify the filename used to
store downloaded files, for interoperability with other systems. You __must__
be careful to avoid collisions between different albums: The default is
"{artist} - {album_or_title}.jpg". If you know that all of the albums you're running
against have their own directories _and_ you are using "--art-dest-inline", then you
could use something more generic (such as "cover.jpg"). A note about the format:
- {album_or_title} falls back on the title tag if the album tag is blank
- {filename} uses the filename of the source audio file (minus the extension)
_Pro Tip:_ If you have a cover.jpg in each album directory, you can use:
"--external-art-mode before --external-art-filename cover.jpg --art-dest-inline"
and the local images will be used when present (avoiding network lookups).
You could also specify "--art-dest-filename cover.jpg" if you want to store the
newly downloaded covers in a similar location (again, this is only sane
in combination with --art-dest-inline, in cases where each album is stored in
a separate directory).
## Troubleshooting
### The artwork is embedded now, but Apple's Music App still won't show it.
Try re-importing one of your embedded files. If the re-imported version shows artwork, you need to reimport your music library. You can do this without losing your playlists as follows:
1. File->Library->Export Library... and name your exported library file.
2. Visit Music->Preferences...->Files and screenshot your options. You'll need to restore them later.
3. Quit the app and relaunch while holding down the Option key.
4. Choose "Create Library..." and pick a new location.
5. Visit Music->Preferences...->Files and restore your desired options.
6. File->Library->Import Playlist... and choose your library file from step 1. (Yes, it's called "Import Playlist..." but you actually use this to import your library.)
Step 6 will take a while.
### The artwork appears in Apple's Music App but not my iOS device.
You'll have to unsync all your music and re-sync it again. Try it with a single file first.
%prep
%autosetup -n get_cover_art-1.8.0
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-get-cover-art -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.0-1
- Package Spec generated
|