diff --git a/app/playlists.py b/app/playlists.py index dc935c6..5e6af7e 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -1024,11 +1024,18 @@ class PlaylistTab(QTableWidget): if not track_path: return - pathq = track_path.replace("'", "\\'") - pathqs = pathq.replace(" ", "\\ ") + replacements = [ + ("'", "\\'"), + (" ", "\\ "), + ("(", "\\("), + (")", "\\)"), + ] + for old, new in replacements: + track_path = track_path.replace(old, new) + cb = QApplication.clipboard() cb.clear(mode=cb.Clipboard) - cb.setText(pathqs, mode=cb.Clipboard) + cb.setText(track_path, mode=cb.Clipboard) def _delete_rows(self) -> None: """