Skip to content

Provider podnapisi is showing no result #2620

Description

@nate9976

When automatic search or manual, provider "podnapisi" returns no results even if subtitles do exists.

To Reproduce
Steps to reproduce the behavior (example on movie: Pirates of the Caribbean: At World's End):

  1. Go to Settings -> Providers -> Add provider Podnapisi (Verifiy SSL does not affect the bug)
  2. Go to Settings -> Languages -> Add New Profile -> Name: Slovenian -> Add Language -> Slovenian (Normal)
  3. Go to Movies -> Pirates of the Caribbean: At World's End -> Edit Movie -> Languages Profile: Slovenian
  4. Go to Movies -> Pirates of the Caribbean: At World's End -> Manual -> Search
  5. No result

Expected behavior
To return/show existing subtitles.

Screenshots
Bazaar result:
image

Podnapisi website result:
image

XML result from query method in PodnapisiProvider:
image

Software (please complete the following information):

  • Bazarr: 1.4.3

Additional context
Posnapisi API returns only 1 result, even if there are multiple results. Most likely different issue/not part of this issue.

Fix
Fix:
In file: bazarr > custom_libs > subliminal_patch > providers > podnapisi.py
Line: 212

xml.find() is missing .text

line without fix:
if not xml.find('pagination/results') or not int(xml.find('pagination/results').text):

line with fix:
if not xml.find('pagination/results').text or not int(xml.find('pagination/results').text):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions