Skip to content

Commit 0bcaba0

Browse files
committed
fix bug in RemoteItemChecker match to remote
1 parent 9486960 commit 0bcaba0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/info/release-history.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ The format is based on `Keep a Changelog <https://keepachangelog.com/en>`_,
3232
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_
3333

3434

35+
1.1.8
36+
=====
37+
38+
Fixed
39+
-----
40+
* Bug in :py:class:`.RemoteItemChecker` that tries to remove items from the `added` list when they are not present
41+
whilst trying to match items to remote playlist.
42+
3543
1.1.7
3644
=====
3745

musify/processors/check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ async def _match_to_remote(self, name: str) -> None:
449449

450450
item.uri = match.uri
451451

452-
added.remove(match)
452+
if match in added:
453+
added.remove(match)
453454
removed.remove(item) if item in removed else missing.remove(item)
454455
self._switched.append(match)
455456

0 commit comments

Comments
 (0)