From 47f2b620c3506896f1d1a0c980e3373f70a7305f Mon Sep 17 00:00:00 2001 From: Stephan Skrodzki Date: Sun, 29 Jan 2023 19:53:10 +0100 Subject: [PATCH] absolute path should also be checked in two_way_sync --- src/gpodder/syncui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gpodder/syncui.py b/src/gpodder/syncui.py index 9e8c3e3e..2491842f 100644 --- a/src/gpodder/syncui.py +++ b/src/gpodder/syncui.py @@ -256,7 +256,10 @@ class gPodderSyncUI(object): # if playlist doesn't exist (yet) episodes_in_playlist will be empty if episodes_in_playlists: for episode_filename in episodes_in_playlists: - if not playlist.mountpoint.resolve_relative_path(episode_filename).query_exists(): + if ((not self._config.device_sync.playlists.use_absolute_path + and not playlist.playlist_folder.resolve_relative_path(episode_filename).query_exists()) or + (self._config.device_sync.playlists.use_absolute_path + and not playlist.mountpoint.resolve_relative_path(episode_filename).query_exists())): # episode was synced but no longer on device # i.e. must have been deleted by user, so delete from gpodder try: