Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sacad for openSUSE:Factory checked in at 2022-12-04 14:59:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sacad (Old) and /work/SRC/openSUSE:Factory/.sacad.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sacad" Sun Dec 4 14:59:07 2022 rev:8 rq:1039969 version:2.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/sacad/sacad.changes 2022-11-15 13:21:37.548862813 +0100 +++ /work/SRC/openSUSE:Factory/.sacad.new.1835/sacad.changes 2022-12-04 14:59:46.664762293 +0100 @@ -1,0 +2,8 @@ +Sun Dec 4 12:04:08 UTC 2022 - Dirk Müller <dmuel...@suse.com> + +- update to 2.7.2: + * fix: remove fake-useragent dependency because of lack of API stability + * fix: version fake-useragent cache file + * fix: pre-commit URL + +------------------------------------------------------------------- Old: ---- sacad-2.7.0.tar.gz New: ---- sacad-2.7.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sacad.spec ++++++ --- /var/tmp/diff_new_pack.pG5WjP/_old 2022-12-04 14:59:47.088764736 +0100 +++ /var/tmp/diff_new_pack.pG5WjP/_new 2022-12-04 14:59:47.092764758 +0100 @@ -17,7 +17,7 @@ Name: sacad -Version: 2.7.0 +Version: 2.7.2 Release: 0 Summary: Search and download music album covers License: MPL-2.0 ++++++ sacad-2.7.0.tar.gz -> sacad-2.7.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.7.0/.pre-commit-config.yaml new/sacad-2.7.2/.pre-commit-config.yaml --- old/sacad-2.7.0/.pre-commit-config.yaml 2022-09-11 23:35:26.000000000 +0200 +++ new/sacad-2.7.2/.pre-commit-config.yaml 2022-11-25 20:41:16.000000000 +0100 @@ -32,7 +32,7 @@ additional_dependencies: - types-requests - - repo: https://gitlab.com/pycqa/flake8 + - repo: https://github.com/pycqa/flake8 rev: 3.9.2 hooks: - id: flake8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.7.0/requirements.txt new/sacad-2.7.2/requirements.txt --- old/sacad-2.7.0/requirements.txt 2022-09-11 23:35:26.000000000 +0200 +++ new/sacad-2.7.2/requirements.txt 2022-11-25 20:41:16.000000000 +0100 @@ -2,7 +2,6 @@ appdirs>=1.4.0 bitarray>=2.0.0 cssselect>=1.1.0 -fake-useragent>=0.1.11 lxml>=4.0.0 mutagen>=1.31 pillow>=8.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.7.0/sacad/__init__.py new/sacad-2.7.2/sacad/__init__.py --- old/sacad-2.7.0/sacad/__init__.py 2022-09-11 23:35:26.000000000 +0200 +++ new/sacad-2.7.2/sacad/__init__.py 2022-11-25 20:41:16.000000000 +0100 @@ -2,7 +2,7 @@ """ Smart Automatic Cover Art Downloader : search and download music album covers. """ -__version__ = "2.7.0" +__version__ = "2.7.2" __author__ = "desbma" __license__ = "MPL 2.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.7.0/sacad/sources/amazonbase.py new/sacad-2.7.2/sacad/sources/amazonbase.py --- old/sacad-2.7.0/sacad/sources/amazonbase.py 2022-09-11 23:35:26.000000000 +0200 +++ new/sacad-2.7.2/sacad/sources/amazonbase.py 2022-11-25 20:41:16.000000000 +0100 @@ -16,7 +16,6 @@ rate_limited_domains=(base_domain,), **kwargs, ) - self.current_ua = self.ua.firefox self.base_domain = base_domain def processQueryString(self, s): @@ -26,7 +25,7 @@ def updateHttpHeaders(self, headers): """See CoverSource.updateHttpHeaders.""" # mimic Firefox headers - headers["User-Agent"] = self.current_ua + headers["User-Agent"] = self.ua headers["Accept"] = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" headers["Accept-Language"] = "en-US,en;q=0.9" headers["DNT"] = "1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sacad-2.7.0/sacad/sources/base.py new/sacad-2.7.2/sacad/sources/base.py --- old/sacad-2.7.0/sacad/sources/base.py 2022-09-11 23:35:26.000000000 +0200 +++ new/sacad-2.7.2/sacad/sources/base.py 2022-11-25 20:41:16.000000000 +0100 @@ -12,7 +12,6 @@ import urllib.parse import appdirs -import fake_useragent import web_cache from sacad import http_helpers @@ -47,9 +46,7 @@ logger=self.logger, ) - ua_cache_dir = os.path.join(appdirs.user_cache_dir(appname="sacad", appauthor=False), "fake_useragent") - os.makedirs(ua_cache_dir, exist_ok=True) - self.ua = fake_useragent.UserAgent(path=os.path.join(ua_cache_dir, "ua.json")) + self.ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0" if not hasattr(__class__, "api_cache"): db_filepath = os.path.join(appdirs.user_cache_dir(appname="sacad", appauthor=False), "sacad-cache.sqlite")