commit sacad for openSUSE:Factory
Hello community, here is the log from the commit of package sacad for openSUSE:Factory checked in at 2020-10-26 16:21:52 Comparing /work/SRC/openSUSE:Factory/sacad (Old) and /work/SRC/openSUSE:Factory/.sacad.new.3463 (New) Package is "sacad" Mon Oct 26 16:21:52 2020 rev:5 rq:844019 version:2.3.4 Changes: --- /work/SRC/openSUSE:Factory/sacad/sacad.changes 2020-09-22 21:04:48.791595077 +0200 +++ /work/SRC/openSUSE:Factory/.sacad.new.3463/sacad.changes2020-10-26 16:22:27.807231931 +0100 @@ -1,0 +2,6 @@ +Sat Oct 24 08:24:06 UTC 2020 - Martin Hauke + +- Update to verssion 2.3.4 + * Workaround bitarray.bitdiff deprecation + +--- Old: sacad-2.3.3.tar.gz New: sacad-2.3.4.tar.gz Other differences: -- ++ sacad.spec ++ --- /var/tmp/diff_new_pack.4evrKS/_old 2020-10-26 16:22:28.227232269 +0100 +++ /var/tmp/diff_new_pack.4evrKS/_new 2020-10-26 16:22:28.227232269 +0100 @@ -17,7 +17,7 @@ Name: sacad -Version:2.3.3 +Version:2.3.4 Release:0 Summary:Search and download music album covers License:MPL-2.0 ++ sacad-2.3.3.tar.gz -> sacad-2.3.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.3/sacad/__init__.py new/sacad-2.3.4/sacad/__init__.py --- old/sacad-2.3.3/sacad/__init__.py 2020-08-16 16:21:13.0 +0200 +++ new/sacad-2.3.4/sacad/__init__.py 2020-10-22 23:00:39.0 +0200 @@ -2,7 +2,7 @@ """ Smart Automatic Cover Art Downloader : search and download music album covers. """ -__version__ = "2.3.3" +__version__ = "2.3.4" __author__ = "desbma" __license__ = "MPL 2.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.3/sacad/cover.py new/sacad-2.3.4/sacad/cover.py --- old/sacad-2.3.3/sacad/cover.py 2020-08-16 16:21:13.0 +0200 +++ new/sacad-2.3.4/sacad/cover.py 2020-10-22 23:00:39.0 +0200 @@ -14,6 +14,10 @@ import appdirs import bitarray +try: + from bitarray import bitdiff +except ImportError: + from bitarray.util import count_xor as bitdiff import PIL.Image import PIL.ImageFile import PIL.ImageFilter @@ -664,7 +668,7 @@ @staticmethod def areImageSigsSimilar(sig1, sig2): """ Compare 2 image "signatures" and return True if they seem to come from a similar image, False otherwise. """ -return bitarray.bitdiff(sig1, sig2) < 100 +return bitdiff(sig1, sig2) < 100 # silence third party module loggers
commit sacad for openSUSE:Factory
Hello community, here is the log from the commit of package sacad for openSUSE:Factory checked in at 2020-09-22 21:03:48 Comparing /work/SRC/openSUSE:Factory/sacad (Old) and /work/SRC/openSUSE:Factory/.sacad.new.4249 (New) Package is "sacad" Tue Sep 22 21:03:48 2020 rev:4 rq:828654 version:2.3.3 Changes: --- /work/SRC/openSUSE:Factory/sacad/sacad.changes 2020-08-03 14:18:06.956663342 +0200 +++ /work/SRC/openSUSE:Factory/.sacad.new.4249/sacad.changes2020-09-22 21:04:48.791595077 +0200 @@ -1,0 +2,6 @@ +Fri Aug 21 17:29:20 UTC 2020 - Dirk Mueller + +- update to 2.3.3: + * Fix tqdm_logging thread safety + +--- Old: sacad-2.3.2.tar.gz New: sacad-2.3.3.tar.gz Other differences: -- ++ sacad.spec ++ --- /var/tmp/diff_new_pack.N2w2oU/_old 2020-09-22 21:04:49.899596047 +0200 +++ /var/tmp/diff_new_pack.N2w2oU/_new 2020-09-22 21:04:49.903596050 +0200 @@ -17,7 +17,7 @@ Name: sacad -Version:2.3.2 +Version:2.3.3 Release:0 Summary:Search and download music album covers License:MPL-2.0 ++ sacad-2.3.2.tar.gz -> sacad-2.3.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.2/sacad/__init__.py new/sacad-2.3.3/sacad/__init__.py --- old/sacad-2.3.2/sacad/__init__.py 2020-07-25 13:44:37.0 +0200 +++ new/sacad-2.3.3/sacad/__init__.py 2020-08-16 16:21:13.0 +0200 @@ -2,7 +2,7 @@ """ Smart Automatic Cover Art Downloader : search and download music album covers. """ -__version__ = "2.3.2" +__version__ = "2.3.3" __author__ = "desbma" __license__ = "MPL 2.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.2/sacad/recurse.py new/sacad-2.3.3/sacad/recurse.py --- old/sacad-2.3.2/sacad/recurse.py2020-07-25 13:44:37.0 +0200 +++ new/sacad-2.3.3/sacad/recurse.py2020-08-16 16:21:13.0 +0200 @@ -13,6 +13,7 @@ import operator import os import string +import sys import tempfile import mutagen @@ -332,7 +333,7 @@ # so work in smaller chunks to avoid hitting fd limit # this also updates the progress faster (instead of working on all searches, work on finishing the chunk before # getting to the next one) -work_chunk_length = 12 +work_chunk_length = 4 if sys.platform.startswith("win") else 12 for work_chunk in ichunk(work, work_chunk_length): futures = {} for i, cur_work in enumerate(work_chunk, i): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.2/sacad/sources/amazonbase.py new/sacad-2.3.3/sacad/sources/amazonbase.py --- old/sacad-2.3.2/sacad/sources/amazonbase.py 2020-07-25 13:44:37.0 +0200 +++ new/sacad-2.3.3/sacad/sources/amazonbase.py 2020-08-16 16:21:13.0 +0200 @@ -1,7 +1,6 @@ from sacad.sources.base import CoverSource - class AmazonBaseCoverSource(CoverSource): """ Base class for Amazon cover sources. """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.2/sacad/tqdm_logging.py new/sacad-2.3.3/sacad/tqdm_logging.py --- old/sacad-2.3.2/sacad/tqdm_logging.py 2020-07-25 13:44:37.0 +0200 +++ new/sacad-2.3.3/sacad/tqdm_logging.py 2020-08-16 16:21:13.0 +0200 @@ -3,6 +3,11 @@ import contextlib import logging +import threading + + +logging_handlers_lock = threading.Lock() + class TqdmLoggingHandler(logging.Handler): @@ -19,21 +24,25 @@ @contextlib.contextmanager def redirect_logging(tqdm_obj, logger=logging.getLogger()): - """ Context manager to redirect logging to a TqdmLoggingHandler object and then restore the original. """ - # remove current handler - assert(len(logger.handlers) == 1) - prev_handler = logger.handlers[0] - logger.removeHandler(prev_handler) - - # add tqdm handler - tqdm_handler = TqdmLoggingHandler(tqdm_obj) - if prev_handler.formatter is not None: -tqdm_handler.setFormatter(prev_handler.formatter) - logger.addHandler(tqdm_handler) + """ Context manager to redirect logging to a TqdmLoggingHandler object and then restore the original logging behavior. """ + with logging_handlers_lock: +# remove current handlers +prev_handlers = [] +for handler in logger.handlers.copy(): + prev_handlers.append(handler) + logger.removeHandler(handler) + +# add tqdm handler +tqdm_handler = TqdmLoggingHandler(tqdm_obj) +if prev_handlers[-1].formatter is not None: + tqdm_handler.setFormatter(prev_handlers[-1].formatter) +logger.addHandler(tqdm_handler) try: yield
commit sacad for openSUSE:Factory
Hello community, here is the log from the commit of package sacad for openSUSE:Factory checked in at 2020-08-03 14:17:25 Comparing /work/SRC/openSUSE:Factory/sacad (Old) and /work/SRC/openSUSE:Factory/.sacad.new.3592 (New) Package is "sacad" Mon Aug 3 14:17:25 2020 rev:3 rq:823993 version:2.3.2 Changes: --- /work/SRC/openSUSE:Factory/sacad/sacad.changes 2020-06-14 18:35:47.190633210 +0200 +++ /work/SRC/openSUSE:Factory/.sacad.new.3592/sacad.changes2020-08-03 14:18:06.956663342 +0200 @@ -1,0 +2,6 @@ +Wed Jul 29 20:29:21 UTC 2020 - Martin Hauke + +- Update to version 2.3.2 + * Fix tests + +--- Old: sacad-2.3.0.tar.gz New: sacad-2.3.2.tar.gz Other differences: -- ++ sacad.spec ++ --- /var/tmp/diff_new_pack.Ty3DWp/_old 2020-08-03 14:18:08.296664686 +0200 +++ /var/tmp/diff_new_pack.Ty3DWp/_new 2020-08-03 14:18:08.296664686 +0200 @@ -17,7 +17,7 @@ Name: sacad -Version:2.3.0 +Version:2.3.2 Release:0 Summary:Search and download music album covers License:MPL-2.0 ++ sacad-2.3.0.tar.gz -> sacad-2.3.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.0/sacad/__init__.py new/sacad-2.3.2/sacad/__init__.py --- old/sacad-2.3.0/sacad/__init__.py 2020-06-08 01:13:37.0 +0200 +++ new/sacad-2.3.2/sacad/__init__.py 2020-07-25 13:44:37.0 +0200 @@ -2,7 +2,7 @@ """ Smart Automatic Cover Art Downloader : search and download music album covers. """ -__version__ = "2.3.0" +__version__ = "2.3.2" __author__ = "desbma" __license__ = "MPL 2.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.0/sacad/recurse.py new/sacad-2.3.2/sacad/recurse.py --- old/sacad-2.3.0/sacad/recurse.py2020-06-08 01:13:37.0 +0200 +++ new/sacad-2.3.2/sacad/recurse.py2020-07-25 13:44:37.0 +0200 @@ -12,7 +12,6 @@ import logging import operator import os -import resource import string import tempfile @@ -429,12 +428,13 @@ # bump nofile ulimit try: +import resource soft_lim, hard_lim = resource.getrlimit(resource.RLIMIT_NOFILE) if ((soft_lim != resource.RLIM_INFINITY) and ((soft_lim < hard_lim) or (hard_lim == resource.RLIM_INFINITY))): resource.setrlimit(resource.RLIMIT_NOFILE, (hard_lim, hard_lim)) logging.getLogger().debug("Max open files count set from %u to %u" % (soft_lim, hard_lim)) - except (AttributeError, OSError): + except (AttributeError, ImportError, OSError, ValueError): # not supported on system pass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.3.0/tests/__init__.py new/sacad-2.3.2/tests/__init__.py --- old/sacad-2.3.0/tests/__init__.py 2020-06-08 01:13:37.0 +0200 +++ new/sacad-2.3.2/tests/__init__.py 2020-07-25 13:44:37.0 +0200 @@ -137,7 +137,7 @@ self.assertFalse(sacad.CoverSourceResult.areImageSigsSimilar(img_sig[2], img_sig[1])) urls = ("https://images-na.ssl-images-amazon.com/images/I/91euo%2BzpKEL._SL1500_.jpg;, - "https://lastfm-img2.akamaized.net/i/u/300x300/c971ea7edb14ede6bab2f94666bb9005.png;) + "https://lastfm.freetls.fastly.net/i/u/300x300/ae3c6b3e81cfd5f5fec71285955d63eb.png;) img_sig = {} for i, url in enumerate(urls): img_data = download(url)
commit sacad for openSUSE:Factory
Hello community, here is the log from the commit of package sacad for openSUSE:Factory checked in at 2020-06-14 18:33:53 Comparing /work/SRC/openSUSE:Factory/sacad (Old) and /work/SRC/openSUSE:Factory/.sacad.new.3606 (New) Package is "sacad" Sun Jun 14 18:33:53 2020 rev:2 rq:814322 version:2.3.0 Changes: --- /work/SRC/openSUSE:Factory/sacad/sacad.changes 2020-03-26 23:33:08.258772083 +0100 +++ /work/SRC/openSUSE:Factory/.sacad.new.3606/sacad.changes2020-06-14 18:35:47.190633210 +0200 @@ -1,0 +2,6 @@ +Sat Jun 13 11:19:24 UTC 2020 - Martin Hauke + +- Update to version 2.3.0 + * Add Deezer cover source + +--- Old: sacad-2.2.3.tar.gz New: sacad-2.3.0.tar.gz Other differences: -- ++ sacad.spec ++ --- /var/tmp/diff_new_pack.yRQOhI/_old 2020-06-14 18:35:47.854635324 +0200 +++ /var/tmp/diff_new_pack.yRQOhI/_new 2020-06-14 18:35:47.858635337 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python-sacad +# spec file for package sacad # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,11 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Name: sacad -Version:2.2.3 +Version:2.3.0 Release:0 Summary:Search and download music album covers License:MPL-2.0 @@ -24,9 +25,11 @@ URL:https://github.com/desbma/sacad Source: https://github.com/desbma/sacad/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: fdupes +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-setuptools -BuildRequires: fdupes +Requires: python3-Pillow >= 2.7.0 +Requires: python3-Unidecode >= 1.1.1 Requires: python3-aiohttp >= 3.6 Requires: python3-appdirs >= 1.4.0 Requires: python3-bitarray >= 0.8.3 @@ -34,9 +37,7 @@ Requires: python3-fake-useragent >= 0.1.11 Requires: python3-lxml >= 4.0.0 Requires: python3-mutagen >= 1.31 -Requires: python3-Pillow >= 2.7.0 Requires: python3-tqdm >= 4.28.1 -Requires: python3-Unidecode >= 1.1.1 Requires: python3-web_cache >= 1.1.0 BuildArch: noarch ++ sacad-2.2.3.tar.gz -> sacad-2.3.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.2.3/README.md new/sacad-2.3.0/README.md --- old/sacad-2.2.3/README.md 2019-11-30 20:51:20.0 +0100 +++ new/sacad-2.3.0/README.md 2020-06-08 01:13:37.0 +0200 @@ -24,11 +24,12 @@ * Support JPEG and PNG formats * Customizable output: save image along with the audio files / in a different directory named by artist/album / embed cover in audio files... * Currently support the following cover sources: -* Last.fm -* Google Images -* ~~CoverLib~~ (site is down) * Amazon CD (.com, .ca, .cn, .fr, .de, .co.jp and .co.uk variants) * Amazon digital music +* ~~CoverLib~~ (site is down) +* Deezer +* Google Images +* Last.fm * Smart sorting algorithm to select THE best cover for a given query, using several factors: source reliability, image format, image size, image similarity with reference cover, etc. * Automatically crunch images with optipng or jpegoptim (can save 30% of filesize without any loss of quality, great for portable players) * Cache search results locally for faster future search diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.2.3/sacad/__init__.py new/sacad-2.3.0/sacad/__init__.py --- old/sacad-2.2.3/sacad/__init__.py 2019-11-30 20:51:20.0 +0100 +++ new/sacad-2.3.0/sacad/__init__.py 2020-06-08 01:13:37.0 +0200 @@ -2,7 +2,7 @@ """ Smart Automatic Cover Art Downloader : search and download music album covers. """ -__version__ = "2.2.3" +__version__ = "2.3.0" __author__ = "desbma" __license__ = "MPL 2.0" @@ -17,11 +17,13 @@ from sacad.cover import CoverSourceResult, HAS_JPEGOPTIM, HAS_OPTIPNG, SUPPORTED_IMG_FORMATS -async def search_and_download(album, artist, format, size, out_filepath, *, size_tolerance_prct, amazon_tlds, no_lq_sources): +async def search_and_download(album, artist, format, size, out_filepath, *, size_tolerance_prct, amazon_tlds, +