Skip to content

Commit

Permalink
quote search string for item download helper
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-martino committed Jun 11, 2024
1 parent a4d4e32 commit f90d3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion musify/processors/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections.abc import Iterable, Collection
from itertools import batched
from typing import Any
from urllib.parse import quote
from webbrowser import open as webopen

from musify.base import MusifyItem
Expand Down Expand Up @@ -78,7 +79,7 @@ def _open_sites_for_item(self, item: MusifyItem, fields: Iterable[Field]) -> boo
value = " ".join(value)
query_parts.append(str(value))

query = " ".join(query_parts)
query = quote(" ".join(query_parts))
if not query:
self.logger.debug(f"Could not get query for item: {item.name}")
return False
Expand Down

0 comments on commit f90d3a3

Please sign in to comment.