Closed szymon3 closed 2 months ago
Actually I just realized that the issue is in language setting:
INFO (core:357) - Skipping provider 'napiprojekt': no language to search for
However I don't understand why, because couple of lines above it says that is searches for Polish:
Languages requested: {<Language: alpha3=pol>}
Could be a typo between pol and pl or something? - https://github.com/morpheus65535/bazarr/blob/97ea3a81242f604007fcd54c54f4acf17a97fade/custom_libs/subliminal/providers/napiprojekt.py#L65 I even changed the series source language in Sonarr to English, but it didn't change search results.
If you restart Bazarr and automatic search for this episode (using context menu, not manual search dialog), does it works?
It worked for one episode:
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,635 - subliminal_patch.core (729cc36006c0) : DEBUG (core:335) - Languages requested: {<Language: alpha3=pol>}
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,635 - subliminal_patch.core (729cc36006c0) : DEBUG (core:192) - New set: 24 items
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,635 - subliminal_patch.core (729cc36006c0) : DEBUG (core:170) - Nothing to translate found
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,635 - subliminal_patch.core (729cc36006c0) : INFO (core:365) - Listing subtitles with provider 'tvsubtitles' and languages {<Language: alpha3=pol>}
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,636 - subliminal_patch.core (729cc36006c0) : INFO (core:296) - Initializing provider tvsubtitles
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,633 - urllib3.connectionpool (729cc2c006c0) : DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): podnapisi.net:443
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,637 - subliminal.providers.tvsubtitles (729cc36006c0) : DEBUG (tvsubtitles:212) - No show id found for 'Fargo' ({'year': 2014})
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,878 - urllib3.connectionpool (729cc2c006c0) : DEBUG (connectionpool:549) - https://podnapisi.net:443 "GET /subtitles/search/old?sXML=1&sL=pl&sK=fargo&sTS=2&sTE=3&sY=2014 HTTP/1.1" 302 138
Aug 28 10:32:01 arrstack bazarr[21613]: 2024-08-28 10:32:01,879 - urllib3.connectionpool (729cc2c006c0) : DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): www.podnapisi.net:443
Aug 28 10:32:02 arrstack bazarr[21613]: 2024-08-28 10:32:02,027 - urllib3.connectionpool (729cc22006c0) : DEBUG (connectionpool:549) - http://napiprojekt.pl:80 "GET /unit_napisy/dl.php?v=dreambox&kolejka=false&nick=&pass=&napios=Linux&l=PL&f=ac796542e089189e87f4c6402e32d568&t=00ec8 HTTP/1.1" 200 13790
Aug 28 10:32:02 arrstack bazarr[21613]: 2024-08-28 10:32:02,033 - subliminal_patch.providers.napiprojekt (729cc22006c0) : DEBUG (napiprojekt:64) - Found subtitle <NapiProjektSubtitle 'ac796542e089189e87f4c6402e32d568' [pl]>
Aug 28 10:32:02 arrstack bazarr[21613]: 2024-08-28 10:32:02,034 - urllib3.connectionpool (729cc22006c0) : DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): www.napiprojekt.pl:443
Aug 28 10:32:02 arrstack bazarr[21613]: 2024-08-28 10:32:02,278 - urllib3.connectionpool (729cc22006c0) : DEBUG (connectionpool:549) - https://www.napiprojekt.pl:443 "POST /ajax/search_catalog.php HTTP/1.1" 200 651
Aug 28 10:32:02 arrstack bazarr[21613]: 2024-08-28 10:32:02,378 - urllib3.connectionpool (729cc22006c0) : DEBUG (connectionpool:549) - https://www.napiprojekt.pl:443 "GET /napisy1,7,0-dla-41381-Fargo-(2014)-s02e03 HTTP/1.1" 200 None
Aug 28 10:32:02 arrstack bazarr[21613]: 2024-08-28 10:32:02,411 - subliminal_patch.providers.napiprojekt (729cc22006c0) : DEBUG (napiprojekt:101) - Found subtitles [<NapiProjektSubtitle 'Fargo 2x3.mp4' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.avi' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.avi' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mp4' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.avi' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mp4' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.avi' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.avi' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.avi' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mkv' [pl]>, <NapiProjektSubtitle 'Fargo 2x3.mp4' [pl]>]
But after successful download for that episode I started search for next one and encountered the same error as before:
Aug 28 10:33:08 arrstack bazarr[21613]: 2024-08-28 10:33:08,448 - subliminal_patch.core (729cc22006c0) : DEBUG (core:335) - Languages requested: {<Language: alpha3=pol>}
Aug 28 10:33:08 arrstack bazarr[21613]: 2024-08-28 10:33:08,448 - subliminal_patch.core (729cc22006c0) : DEBUG (core:192) - New set: 1 items
Aug 28 10:33:08 arrstack bazarr[21613]: 2024-08-28 10:33:08,448 - subliminal_patch.core (729cc22006c0) : INFO (core:357) - Skipping provider 'napiprojekt': no language to search for
I believe I fixed this in a recent 1.4.4 beta. Please try that, if you can.
I believe I fixed this in a recent 1.4.4 beta. Please try that, if you can.
That's what I had in mind.
v1.4.4-beta.37 Now it seems to be throwing exception on subtitles download attempt:
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.core (7e74200006c0) : DEBUG (core:573) - <NapiProjektSubtitle '56616471c749d37076f13e1d2ecfe575' [pl]>: Found matches {'hash'}
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.score (7e74200006c0) : DEBUG (score:91) - Scores to use for <Episode ['Fargo', 2014, 2x5]>: {'hearing_impaired': 1, 'streaming_service': 1, 'video_codec': 2, 'resolution': 2, 'audio_codec': 3, 'source': 7, 'release_group': 14, 'episode': 30, 'season': 30, 'year': 90, 'series': 180, 'hash': 359}
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.score (7e74200006c0) : DEBUG (score:128) - <NapiProjektSubtitle '56616471c749d37076f13e1d2ecfe575' [pl]>: Hash not verifiable for this provider. Keeping it
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.score (7e74200006c0) : DEBUG (score:148) - Matched hearing_impaired
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.score (7e74200006c0) : INFO (score:154) - <NapiProjektSubtitle '56616471c749d37076f13e1d2ecfe575' [pl]>: Computed score 360 with final matches {'hearing_impaired', 'hash'}
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.core (7e74200006c0) : DEBUG (core:624) - <NapiProjektSubtitle '56616471c749d37076f13e1d2ecfe575' [pl]>: Trying to download subtitle with matches {'hearing_impaired', 'hash'}, score: 360; release(s): 56616471c749d37076f13e1d2ecfe575
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.core (7e74200006c0) : INFO (core:466) - Downloading subtitle <NapiProjektSubtitle '56616471c749d37076f13e1d2ecfe575' [pl]>
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.subtitle (7e74200006c0) : INFO (subtitle:182) - Guessing encoding for language pl
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.subtitle (7e74200006c0) : DEBUG (subtitle:250) - Trying encodings ['utf-8', 'windows-1250', 'iso-8859-2']
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.subtitle (7e74200006c0) : INFO (subtitle:258) - Guessed encoding utf-8
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.subtitle (7e74200006c0) : ERROR (subtitle:301) - PySRT-parsing failed, trying pysubs2
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,824 - subliminal_patch.subtitle (7e74200006c0) : DEBUG (subtitle:308) - Trying parsing with PySubs2
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,829 - subliminal_patch.subtitle (7e74200006c0) : ERROR (subtitle:337) - Couldn't convert subtitle <NapiProjektSubtitle '56616471c749d37076f13e1d2ecfe575' [pl]> to .srt format: Traceback (most recent call last):
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../custom_libs/subliminal_patch/subtitle.py", line 311, in is_valid
Aug 29 07:45:59 arrstack bazarr[13139]: subs = pysubs2.SSAFile.from_string(text)
Aug 29 07:45:59 arrstack bazarr[13139]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../libs/pysubs2/ssafile.py", line 147, in from_string
Aug 29 07:45:59 arrstack bazarr[13139]: return cls.from_file(fp, format_, fps=fps, **kwargs)
Aug 29 07:45:59 arrstack bazarr[13139]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../libs/pysubs2/ssafile.py", line 184, in from_file
Aug 29 07:45:59 arrstack bazarr[13139]: format_ = autodetect_format(fragment)
Aug 29 07:45:59 arrstack bazarr[13139]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../libs/pysubs2/formats/__init__.py", line 78, in autodetect_format
Aug 29 07:45:59 arrstack bazarr[13139]: raise FormatAutodetectionError(content=content, formats=[])
Aug 29 07:45:59 arrstack bazarr[13139]: pysubs2.exceptions.FormatAutodetectionError: No suitable formats
Aug 29 07:45:59 arrstack bazarr[13139]: Traceback (most recent call last):
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../custom_libs/subliminal_patch/subtitle.py", line 311, in is_valid
Aug 29 07:45:59 arrstack bazarr[13139]: subs = pysubs2.SSAFile.from_string(text)
Aug 29 07:45:59 arrstack bazarr[13139]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../libs/pysubs2/ssafile.py", line 147, in from_string
Aug 29 07:45:59 arrstack bazarr[13139]: return cls.from_file(fp, format_, fps=fps, **kwargs)
Aug 29 07:45:59 arrstack bazarr[13139]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../libs/pysubs2/ssafile.py", line 184, in from_file
Aug 29 07:45:59 arrstack bazarr[13139]: format_ = autodetect_format(fragment)
Aug 29 07:45:59 arrstack bazarr[13139]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 29 07:45:59 arrstack bazarr[13139]: File "/opt/Bazarr/bazarr/../libs/pysubs2/formats/__init__.py", line 78, in autodetect_format
Aug 29 07:45:59 arrstack bazarr[13139]: raise FormatAutodetectionError(content=content, formats=[])
Aug 29 07:45:59 arrstack bazarr[13139]: pysubs2.exceptions.FormatAutodetectionError: No suitable formats
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,829 - subliminal_patch.core (7e74200006c0) : ERROR (core:518) - Invalid subtitle
Aug 29 07:45:59 arrstack bazarr[13139]: 2024-08-29 07:45:59,829 - subliminal_patch.core_persistent (7e74200006c0) : INFO (core_persistent:81) - Downloaded 0 subtitle(s)
Sorry, I did a restart of bazarr again and it seems to download subtitles from napiprojekt correctly now on previously mentioned beta version.
Good, let us know if you have further issues.
The restart of Bazarr is a workaround for this problem but not a solution. The issue will eventually happen again and you will have to restart again. I believe the issue happens after you download an HI Polish file. All downloads after that will fail until you restart. There is a permanent solution in 1.4.4 beta.
I'm leaving 1.4.4 beta running until you release it officially and I will switch back to main/master branch. I do not enforce HI subtitles, they are just being imported automatically for some episodes. I'm fine with regular ones.
Anyway, thank you for explanation! :)
Describe the bug I have default language profile that specifies two languages, polish and english. Both don't enforce hearing impaired subtitles (default setting). Automatic subtitles search ignores results with 99% score, because they are not hearing impaired, but I believe there is nothing in my configuration that would enforce them.
I'm not sure if it's general or provider issue.
To Reproduce Steps to reproduce the behavior:
If I use Manual Search, I see results with 99% score from napiprojekt provider with warning about missing hearing impaired subtitles.
Expected behavior Automatically download subtitles with 99% Score without warning about missing hearing impaired subtitles.
Screenshots Sonarr settings:
Software (please complete the following information):
Additional context Debug logs from automatic search:
Debug logs from Manual Search: