Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unicode normalize title query #231

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/lib/tmdbscraper/tmdbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

"""Functions to interact with TMDb API."""

import unicodedata
from . import api_utils
import xbmc
try:
Expand Down Expand Up @@ -52,6 +53,7 @@ def search_movie(query, year=None, language=None, page=None):
:param page: the results page to return (optional)
:return: a list with found movies
"""
query = unicodedata.normalize('NFC', query)
xbmc.log('using title of %s to find movie' % query, xbmc.LOGDEBUG)
theurl = SEARCH_URL
params = _set_params(None, language)
Expand Down
Loading