Closed modem closed 4 months ago
Looking at the last code modification, there are 2 possible places that seem related to this issue. 1st is the search URL:
the 2nd is populating the search URL:
There is no distinction if the search is for a movie of for an episode, so when trying to get the season from a movie it fails as movies have no seasons.
I tested searching for a movie subtitle leaving temporada
and episodio
empty (for season and episode respectively) and the search returns correct results (in the browser).
Used the following test url: https://www.legendasdivx.pt/modules.php?name=Downloads&file=jz&d_op=search&op=_jz00&query=tt10473036&temporada=&episodio=&imdb=tt10473036
query
and imdb
in this case both show the imdb_id, as further above in the code, query
is set to the imdb_id if available, otherwise it is set to movie title.
It also works without the imdb tag in the URL, or leaving it empty.
Submitted a pull request with a dirty fix,
Should be fixed by your PR in upcoming beta.
Describe the bug Provider legendasdivx.com is throwing errors after movie subtitle search, either manual or automatic. I'm using the 1.4.4-beta.6 as downloading from this provider was not working on version 1.4.3 (bug https://github.com/morpheus65535/bazarr/issues/2509).
Haven't seen this error when searching for TV episode subtitles. Error mentions
'Movie' object has no attribute 'season'
so the error should be specific to movies only. Probably the search URL is malformed.To Reproduce Steps to reproduce the behavior:
Expected behavior No errors expected
Screenshots
Software (please complete the following information):
Additional context Wondering if fix for https://github.com/morpheus65535/bazarr/issues/2509 was enough or if it introduced this new bug. Debug log: