Magnatune: Albums download keeps repeating if album already exists
If the downloaded album already exists, the unzip code fails with 'File exists' error as below:
Exception in thread Thread-13:
Traceback (most recent call last):
File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/crvi/rhythmbox/data/../plugins/magnatune/MagnatuneSource.py", line 468, in unzip_album
track_out = Gio.file_new_for_uri(track_uri).create(Gio.FileCreateFlags.NONE, None)
gi.repository.GLib.Error: g-io-error-quark: Error opening file “/home/crvi/Music/Loops For Licensing/World Loops 3/01-118-FNo.-tim_rayborn-799-MagnaLoops-vbr.mp3”: File exists (2)
As a result, the clean-up code which removes 'in_progress' files are not cleared, and the download keeps starting everytime rhythmbox is starting in a loop.