summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormodem <[email protected]>2024-06-18 10:50:34 +0100
committerGitHub <[email protected]>2024-06-18 05:50:34 -0400
commit9a52b3c539b3f32841f45177a949b001c51abf39 (patch)
tree23ee09263867fbae67de60a96976ec66e1a51db7
parent55d96b3231ba78e2a5c0ae8a7df103b53f42b6c5 (diff)
downloadbazarr-9a52b3c539b3f32841f45177a949b001c51abf39.tar.gz
bazarr-9a52b3c539b3f32841f45177a949b001c51abf39.zip
Fixed legendasdivx provider while searching for movies subtitles
-rw-r--r--custom_libs/subliminal_patch/providers/legendasdivx.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/custom_libs/subliminal_patch/providers/legendasdivx.py b/custom_libs/subliminal_patch/providers/legendasdivx.py
index 2b04dc373..e4d839ed2 100644
--- a/custom_libs/subliminal_patch/providers/legendasdivx.py
+++ b/custom_libs/subliminal_patch/providers/legendasdivx.py
@@ -325,9 +325,9 @@ class LegendasdivxProvider(Provider):
search_url = _searchurl.format(
query=querytext,
- season=video.season,
- episode=video.episode,
- imdbid=video.series_imdb_id.replace('tt', '') if video.series_imdb_id else None,
+ season='' if isinstance(video, Movie) else video.season,
+ episode='' if isinstance(video, Movie) else video.episode,
+ imdbid='' if isinstance(video, Movie) else video.series_imdb_id.replace('tt', '') if video.series_imdb_id else None,
op=op,
d_op=d_op,
)