Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sacad for openSUSE:Factory checked 
in at 2023-01-03 15:05:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sacad (Old)
 and      /work/SRC/openSUSE:Factory/.sacad.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sacad"

Tue Jan  3 15:05:07 2023 rev:9 rq:1046245 version:2.7.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/sacad/sacad.changes      2022-12-04 
14:59:46.664762293 +0100
+++ /work/SRC/openSUSE:Factory/.sacad.new.1563/sacad.changes    2023-01-03 
15:05:23.622519788 +0100
@@ -1,0 +2,7 @@
+Mon Jan  2 13:47:26 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 2.7.3:
+  * fix error logs when closing eventloop
+  * exclude non-CD covers 
+
+-------------------------------------------------------------------

Old:
----
  sacad-2.7.2.tar.gz

New:
----
  sacad-2.7.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sacad.spec ++++++
--- /var/tmp/diff_new_pack.aKto7U/_old  2023-01-03 15:05:24.606525529 +0100
+++ /var/tmp/diff_new_pack.aKto7U/_new  2023-01-03 15:05:24.610525553 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sacad
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           sacad
-Version:        2.7.2
+Version:        2.7.3
 Release:        0
 Summary:        Search and download music album covers
 License:        MPL-2.0

++++++ sacad-2.7.2.tar.gz -> sacad-2.7.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sacad-2.7.2/sacad/__init__.py 
new/sacad-2.7.3/sacad/__init__.py
--- old/sacad-2.7.2/sacad/__init__.py   2022-11-25 20:41:16.000000000 +0100
+++ new/sacad-2.7.3/sacad/__init__.py   2022-12-17 15:30:11.000000000 +0100
@@ -2,7 +2,7 @@
 
 """ Smart Automatic Cover Art Downloader : search and download music album 
covers. """
 
-__version__ = "2.7.2"
+__version__ = "2.7.3"
 __author__ = "desbma"
 __license__ = "MPL 2.0"
 
@@ -216,12 +216,8 @@
         source_classes=args.cover_sources,
         preserve_format=args.preserve_format,
     )
-    if hasattr(asyncio, "run"):
-        # Python >=3.7.0
-        asyncio.run(coroutine)
-    else:
-        future = asyncio.ensure_future(coroutine)
-        asyncio.get_event_loop().run_until_complete(future)
+    future = asyncio.ensure_future(coroutine)
+    asyncio.get_event_loop().run_until_complete(future)
 
 
 if __name__ == "__main__":
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sacad-2.7.2/sacad/cover.py 
new/sacad-2.7.3/sacad/cover.py
--- old/sacad-2.7.2/sacad/cover.py      2022-11-25 20:41:16.000000000 +0100
+++ new/sacad-2.7.3/sacad/cover.py      2022-12-17 15:30:11.000000000 +0100
@@ -41,10 +41,14 @@
     # whether or not the search query matching is fuzzy (does a typo return 
results ?)
     FUZZY_SEARCH = 0
     EXACT_SEARCH = 1 << 1
+    # whether or not the source can return cover images for the correct album, 
but not being the front cover
+    # unused for now
+    NOT_FRONT_COVER_RESULT_RISK = 0
+    NO_NOT_FRONT_COVER_RESULT_RISK = 1 << 2
     # whether or not the source will return complete crap instead of no 
results when it has not found a real match
-    # this seems similar to the previous flags but is different
+    # this seems similar to the fuzzy flags but is different
     UNRELATED_RESULT_RISK = 0
-    NO_UNRELATED_RESULT_RISK = 1 << 2
+    NO_UNRELATED_RESULT_RISK = 1 << 3
 
     def isReference(self) -> bool:
         """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sacad-2.7.2/sacad/sources/discogs.py 
new/sacad-2.7.3/sacad/sources/discogs.py
--- old/sacad-2.7.2/sacad/sources/discogs.py    2022-11-25 20:41:16.000000000 
+0100
+++ new/sacad-2.7.3/sacad/sources/discogs.py    2022-12-17 15:30:11.000000000 
+0100
@@ -62,6 +62,8 @@
 
         results = []
         for rank, release in enumerate(json_data["results"], 1):
+            if release["formats"][0]["name"] != "CD":
+                continue
             thumbnail_url = release["thumb"]
             img_url = release["cover_image"]
             url_tokens = img_url.split("/")

Reply via email to