Skip to content

Commit

Permalink
🐛 Use an alt method due to weird import bug in requests utils - #1266
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Oct 23, 2024
1 parent 36d49e7 commit 85bd85e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/tmdbhelper/lib/api/fanarttv/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from tmdbhelper.lib.addon.consts import CACHE_EXTENDED, ITER_PROPS_MAX
from tmdbhelper.lib.api.request import RequestAPI
from tmdbhelper.lib.api.api_keys.fanarttv import API_KEY, CLIENT_KEY
from requests.utils import requote_uri

EN_FALLBACK = get_setting('fanarttv_enfallback')
API_URL = 'https://webservice.fanart.tv/v3'
Expand Down Expand Up @@ -40,7 +39,7 @@

def get_encoded_url(d):
url = d.get('url') or ''
return requote_uri(url) # Ugly hack to replace unencoded spaces returned by API
return url.replace(' ', '%20') # Ugly hack to replace unencoded spaces returned by API


def add_extra_art(source, output=None):
Expand Down

0 comments on commit 85bd85e

Please sign in to comment.