summaryrefslogtreecommitdiff
path: root/python-get-cover-art.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-09 00:49:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-09 00:49:00 +0000
commitc110644ef2ad78051fb1db8462281946d858e257 (patch)
tree5e7d4d0163a417ade4a7a40849fc0b58243f537e /python-get-cover-art.spec
parent57a6cb1487d498f7151ff00e990699e96a88a47d (diff)
automatic import of python-get-cover-artopeneuler20.03
Diffstat (limited to 'python-get-cover-art.spec')
-rw-r--r--python-get-cover-art.spec60
1 files changed, 39 insertions, 21 deletions
diff --git a/python-get-cover-art.spec b/python-get-cover-art.spec
index 4809022..1cab5d9 100644
--- a/python-get-cover-art.spec
+++ b/python-get-cover-art.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-get-cover-art
-Version: 1.7.0
+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.nju.edu.cn/pypi/web/packages/59/89/4882c6f016ef26482042dc57a17532383505d6a16a2980200e4eea5da7c0/get_cover_art-1.7.0.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/f2/52/5c8d4a03723fcd667209217d5e4b08723718a9e2f7e7cba592058bdba89a/get_cover_art-1.8.0.tar.gz
BuildArch: noarch
Requires: python3-mutagen
@@ -34,6 +34,9 @@ It uses Apple Music's artwork, which is already standardized and high-quality.
- DSF
- Ogg Vorbis
- Opus
+- WAV*
+
+(* NOTE: Apple Music and other players may not recognize ID3 tags on WAV files.)
## Setup
@@ -70,8 +73,9 @@ artwork options:
--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}, and {title}. Default '{artist} - {album}.jpg'
+ 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.
@@ -154,9 +158,11 @@ 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}.jpg". If you know that all of the albums you're running
+"{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").
+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"
@@ -215,6 +221,9 @@ It uses Apple Music's artwork, which is already standardized and high-quality.
- DSF
- Ogg Vorbis
- Opus
+- WAV*
+
+(* NOTE: Apple Music and other players may not recognize ID3 tags on WAV files.)
## Setup
@@ -251,8 +260,9 @@ artwork options:
--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}, and {title}. Default '{artist} - {album}.jpg'
+ 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.
@@ -335,9 +345,11 @@ 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}.jpg". If you know that all of the albums you're running
+"{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").
+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"
@@ -393,6 +405,9 @@ It uses Apple Music's artwork, which is already standardized and high-quality.
- DSF
- Ogg Vorbis
- Opus
+- WAV*
+
+(* NOTE: Apple Music and other players may not recognize ID3 tags on WAV files.)
## Setup
@@ -429,8 +444,9 @@ artwork options:
--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}, and {title}. Default '{artist} - {album}.jpg'
+ 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.
@@ -513,9 +529,11 @@ 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}.jpg". If you know that all of the albums you're running
+"{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").
+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"
@@ -545,7 +563,7 @@ You'll have to unsync all your music and re-sync it again. Try it with a single
%prep
-%autosetup -n get-cover-art-1.7.0
+%autosetup -n get_cover_art-1.8.0
%build
%py3_build
@@ -559,20 +577,20 @@ 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
+ 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
+ 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
+ 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
+ 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
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -585,5 +603,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.0-1
+* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.0-1
- Package Spec generated