Hello community, here is the log from the commit of package r128gain for openSUSE:Factory checked in at 2020-06-11 10:14:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/r128gain (Old) and /work/SRC/openSUSE:Factory/.r128gain.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "r128gain" Thu Jun 11 10:14:07 2020 rev:3 rq:813389 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/r128gain/r128gain.changes 2020-02-03 11:15:09.881900925 +0100 +++ /work/SRC/openSUSE:Factory/.r128gain.new.3606/r128gain.changes 2020-06-11 10:17:47.265678830 +0200 @@ -1,0 +2,7 @@ +Wed Jun 10 10:44:05 UTC 2020 - Martin Hauke <[email protected]> + +- Update to version 1.0.2: + * Better handling of non unicode filenames + * Pass ffmpeg verbosity flags + +------------------------------------------------------------------- Old: ---- r128gain-1.0.1.tar.gz New: ---- r128gain-1.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ r128gain.spec ++++++ --- /var/tmp/diff_new_pack.8KZrOI/_old 2020-06-11 10:17:49.373685597 +0200 +++ /var/tmp/diff_new_pack.8KZrOI/_new 2020-06-11 10:17:49.377685610 +0200 @@ -1,7 +1,7 @@ # # spec file for package r128gain # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2020, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,7 @@ Name: r128gain -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: Fast audio loudness (ReplayGain / R128) scanner & tagger License: LGPL-2.0-only ++++++ r128gain-1.0.1.tar.gz -> r128gain-1.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/r128gain-1.0.1/r128gain/__init__.py new/r128gain-1.0.2/r128gain/__init__.py --- old/r128gain-1.0.1/r128gain/__init__.py 2020-02-02 14:23:54.000000000 +0100 +++ new/r128gain-1.0.2/r128gain/__init__.py 2020-06-08 01:23:45.000000000 +0200 @@ -2,7 +2,7 @@ """ Scan audio files and tag them with ReplayGain/R128 loudness metadata. """ -__version__ = "1.0.1" +__version__ = "1.0.2" __author__ = "desbma" __license__ = "LGPLv2" @@ -109,7 +109,7 @@ start_evt.wait() logger().info("Analyzing loudness of file%s %s..." % ("s" if (len(audio_filepaths) > 1) else "", - ", ".join("'%s'" % (audio_filepath) for audio_filepath in audio_filepaths))) + ", ".join(repr(audio_filepath) for audio_filepath in audio_filepaths))) # build command line ffmpeg_inputs = [] @@ -121,7 +121,7 @@ ffmpeg_input = ffmpeg.input(audio_filepath, **additional_ffmpeg_args).audio ffmpeg_inputs.append(ffmpeg_input) - output_streams = [] + output_streams = [] ffmpeg_r128_streams = [] for ffmpeg_input in ffmpeg_inputs: if calc_peak: @@ -155,7 +155,7 @@ cmd = ffmpeg.compile(ffmpeg.output(*output_streams, os.devnull, **additional_ffmpeg_args, - f="null"), + f="null").global_args("-hide_banner", "-nostats"), cmd=ffmpeg_path or "ffmpeg") # run @@ -231,7 +231,7 @@ futures[future] = ALBUM_GAIN_KEY for audio_filepath in audio_filepaths: if skip_tagged and has_loudness_tag(audio_filepath)[0]: - logger().info("File '%s' already has a track gain tag, skipping track gain scan" % (audio_filepath)) + logger().info("File %r already has a track gain tag, skipping track gain scan" % (audio_filepath)) # create dummy future future = executor.submit(lambda: None) else: @@ -260,15 +260,14 @@ try: result = done_future.result() except Exception as e: - # raise if audio_filepath == ALBUM_GAIN_KEY: - logger().warning("Failed to analyze files %s: %s %s" % (", ".join("'%s'" % (audio_filepath) for audio_filepath in audio_filepaths), + logger().warning("Failed to analyze files %s: %s %s" % (", ".join(repr(audio_filepath) for audio_filepath in audio_filepaths), e.__class__.__qualname__, e)) else: - logger().warning("Failed to analyze file '%s': %s %s" % (audio_filepath, - e.__class__.__qualname__, - e)) + logger().warning("Failed to analyze file %r: %s %s" % (audio_filepath, + e.__class__.__qualname__, + e)) if boxed_error_count is not None: boxed_error_count[0] += 1 else: @@ -312,7 +311,7 @@ if album_peak is not None: assert(0 <= album_peak <= 1.0) - logger().info("Tagging file '%s'" % (filepath)) + logger().info("Tagging file %r" % (filepath)) original_mtime = os.path.getmtime(filepath) mf = mutagen.File(filepath) if (mf is not None) and (mf.tags is None) and isinstance(mf, mutagen.trueaudio.TrueAudio): @@ -407,7 +406,7 @@ # preserve original modification time, possibly increasing it by some seconds if mtime_second_offset is not None: if mtime_second_offset == 0: - logger().debug("Restoring modification time for file '{}'".format(filepath)) + logger().debug("Restoring modification time for file %r" % (filepath)) else: logger().debug("Restoring modification time for file '{}' (adding {} seconds)".format(filepath, mtime_second_offset)) @@ -421,9 +420,9 @@ try: mf = mutagen.File(filepath) except mutagen.MutagenError as e: - logger().warning("File '%s' %s: %s" % (filepath, - e.__class__.__qualname__, - e)) + logger().warning("File %r %s: %s" % (filepath, + e.__class__.__qualname__, + e)) return if mf is None: return @@ -448,8 +447,8 @@ album = ("----:COM.APPLE.ITUNES:REPLAYGAIN_ALBUM_GAIN" in mf) and ("----:COM.APPLE.ITUNES:REPLAYGAIN_ALBUM_PEAK" in mf) else: - logger().warning("Unhandled '%s' tag format for file '%s'" % (mf.__class__.__name__, - filepath)) + logger().warning("Unhandled '%s' tag format for file %r" % (mf.__class__.__name__, + filepath)) return return track, album @@ -469,7 +468,7 @@ peak = "-" else: peak = "%.1f dBFS" % (scale_to_gain(peak)) - logger().info("File '%s': loudness = %s, sample peak = %s" % (audio_filepath, loudness, peak)) + logger().info("File %r: loudness = %s, sample peak = %s" % (audio_filepath, loudness, peak)) # album loudness/peak if album_dir: @@ -483,7 +482,7 @@ album_peak = "-" else: album_peak = "%.1f dBFS" % (scale_to_gain(album_peak)) - logger().info("Album '%s': loudness = %s, sample peak = %s" % (album_dir, album_loudness, album_peak)) + logger().info("Album %r: loudness = %s, sample peak = %s" % (album_dir, album_loudness, album_peak)) def process(audio_filepaths, *, album_gain=False, opus_output_gain=False, mtime_second_offset=None, skip_tagged=False, @@ -531,10 +530,9 @@ album_loudness=album_loudness, album_peak=album_peak, opus_output_gain=opus_output_gain, mtime_second_offset=mtime_second_offset) except Exception as e: - # raise - logger().error("Failed to tag file '%s': %s %s" % (audio_filepath, - e.__class__.__qualname__, - e)) + logger().error("Failed to tag file %r: %s %s" % (audio_filepath, + e.__class__.__qualname__, + e)) error_count += 1 return error_count @@ -632,13 +630,13 @@ result = dir_future.result() except Exception as e: if album_gain and (key == ALBUM_GAIN_KEY): - logger().warning("Failed to analyze files %s: %s %s" % (", ".join("'%s'" % (audio_filepath) for audio_filepath in audio_filepaths), + logger().warning("Failed to analyze files %s: %s %s" % (", ".join(repr(audio_filepath) for audio_filepath in audio_filepaths), e.__class__.__qualname__, e)) else: - logger().warning("Failed to analyze file '%s': %s %s" % (key, - e.__class__.__qualname__, - e)) + logger().warning("Failed to analyze file %r: %s %s" % (key, + e.__class__.__qualname__, + e)) error_count += 1 else: if result is not None: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/r128gain-1.0.1/tests/__init__.py new/r128gain-1.0.2/tests/__init__.py --- old/r128gain-1.0.1/tests/__init__.py 2020-02-02 14:23:54.000000000 +0100 +++ new/r128gain-1.0.2/tests/__init__.py 2020-06-08 01:23:45.000000000 +0200 @@ -52,7 +52,7 @@ vorbis_filepath) opus_filepath = os.path.join(cls.ref_temp_dir.name, "f.opus") - download("https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-64.opus", + download("https://www.dropbox.com/s/xlp1goezxovlgl4/ehren-paper_lights-64.opus?dl=1", opus_filepath) cls.ref_temp_dir2 = tempfile.TemporaryDirectory()
