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

Introduce AvistaZ and CinemaZ subtitles provider (via web scraping) #2375

Merged
merged 18 commits into from
Feb 20, 2024
Merged

Conversation

goroskob
Copy link
Contributor

@goroskob goroskob commented Feb 5, 2024

This PR introduces a new subscription provider for AvistaZ and CinemaZ torrent trackers.

  • The PR addresses a feature request
  • The provider uses a subtitles search page and scrapes all the data and download links from there.
  • The refine_from_arr_history refiner queries Sonarr/Radarr's /history endpoint for grabs of the video and extracts it's Info URL, from which subtitles are fetched by AvistazProvider/CinemazProvider
  • History is fetched only if avistaz or cinemaz providers are present in settings
  • The provider won't query Avistaz/CinemaZ for releases not downloaded from there
  • The provider can download both single .srt files for episodes and movies, and complete season archives
  • It's up to the user to put valid cookies into settings (can be addressed in the future, in a way similar to addic7ed)

The implementation can easily be extended extended to work on AvistaZ/CinemaZ sister tracker PrivateHD. I don't have invite there however.

@goroskob goroskob changed the title Introduce AvistaZ subtitles provider (via WEB scraping) Introduce AvistaZ subtitles provider (via web scraping) Feb 5, 2024
@goroskob
Copy link
Contributor Author

goroskob commented Feb 5, 2024

@morpheus65535 I feel there should be some kind of rate limiter or a debounce to limit requests to the tracker so users won't get flagged or banned because of an excessive load. I'm not really a Python dev, so I have no idea how to approach it better. Would appreciate some thoughts on this.

@morpheus65535
Copy link
Owner

morpheus65535 commented Feb 9, 2024

The only way to achieve that is by using time.sleep() to slow down the process. If it was an API with rate-limite headers, it would be cleaner but I'm pretty sure it's not the case here.

Other than that, I don't see anything that offend me. It seems to be good work. Please, just bring all the imports at the beginning.

@goroskob
Copy link
Contributor Author

@morpheus65535 thanks for the review
I did almost a complete rewrite using Info URL, and now I'm satisfied with how it works and with lack of unnecessary requests to tracker. I updated the PR description to reflect the new flow.
I would appreciate a new review from you. Thanks!

@morpheus65535
Copy link
Owner

How does this works with legacy API from older Sonarr versions? We still try to connect to Sonarr prior to v3. We could completely stop supporting it but it will require to rework some stuff if we want to do it.

@goroskob
Copy link
Contributor Author

goroskob commented Feb 11, 2024

I couldn't find API docs for pre v3 Sonarr, but I looked through Sonarr v2 source code and looks like it should be working fine. The /api/history endpoint has been there forever, and it's scheme hasn't changed much. The two fields I used (nzbInfoUrl, releaseGroup) are there.
I guess I could set up Sonarr v2 instance and test the feature against it, if you need me to, but it's quite a hassle, to be honest

@goroskob goroskob changed the title Introduce AvistaZ subtitles provider (via web scraping) Introduce AvistaZ and CinemaZ subtitles provider (via web scraping) Feb 14, 2024
@morpheus65535 morpheus65535 merged commit b933eb8 into morpheus65535:development Feb 20, 2024
2 checks passed
@goroskob goroskob deleted the development branch February 20, 2024 09:21
@Dnkhatri
Copy link

@goroskob hi can you write a better explanation on how to fill the cookie data. For my script I was just pointing to the cookie file but with this I am not sure how to fill.

@goroskob
Copy link
Contributor Author

goroskob commented Feb 21, 2024

@Dnkhatri hey! You are supposed to put string representation of your cookies in there. It's in the format of Cookie HTTP header: name=value; name2=value2; name3=value3.
If you use Chrome, I would suggest an extension called cookie-editor(the one with 1M users on Chrome extension store). Then when logged in on a tracker, you can use Export -> Header String on the extension, and paste the copied string right in.

@Dnkhatri
Copy link

Dnkhatri commented Apr 9, 2024

was anyone apart from the dev able to get this to work. As Ii was not able to so gave it up. The instruction for how to use the cookie are not clear for me.

@goroskob
Copy link
Contributor Author

goroskob commented Apr 15, 2024

@Dnkhatri sorry for the inconvenience. I haven't realized more detailed instructions are needed, since it's almost the same as already existing Addic7ed provider. Here is a step-by-step on how to get your cookies in Google Chrome:

  1. Install extension Cookie Editor
  2. Log in to the tracker (AvistaZ or CinemaZ)
  3. Click on the Cookie Editor icon in Chrome's extensions toolbar at the top (note that the extension may be hidden under the "Extensions" button
  4. When the Cookie Editor asks you "Request permission for...", click "This site" button
  5. In Chrome's dialog, click "Allow" button
  6. Click the Cookie Editor icon again. This time it displays all your cookies for the tracker.
  7. In the Cookie Editor, click "Export" button (bottom right corner of the extension's pop-up)
  8. Click "Header String" button

Now the cookies in the correct format are copied into your clipboard. You just paste them into Cookies field in Bazarr provider's settings

@Dnkhatri
Copy link

Dnkhatri commented Apr 24, 2024

@goroskob Hi I followed you instruction and installed the plugin but I get this error when I search
"'BrotliDecompress failed' ~ avistaz_network.py@280"

@goroskob
Copy link
Contributor Author

Dnkhatri what Python version are you running Bazarr on? I have found a similar issue here on GitHub, which was fixed by upgrading from Python 3.6.9 to 3.8.2

#891 (comment)

@Dnkhatri
Copy link

Dnkhatri what Python version are you running Bazarr on? I have found a similar issue here on GitHub, which was fixed by upgrading from Python 3.6.9 to 3.8.2

#891 (comment)

its the default python install on linux mint Python 3.10.12

@Dnkhatri
Copy link

@goroskob @morpheus65535
I tried uninstalling and then installing bazarr even force installed and uninstalled brotli python package still does not work. Anything else I should try?

@morpheus65535
Copy link
Owner

@Dnkhatri what is the output of pip list?

@Dnkhatri
Copy link

@Dnkhatri what is the output of pip list?

This is the output

daniyal@mint:~$ pip list
Package                   Version
------------------------- ----------------
altgraph                  0.17.3
appdirs                   1.4.4
apt-clone                 0.2.1
apturl                    0.5.2
ascii                     3.6
astroid                   2.12.13
asttokens                 2.2.1
async-generator           1.10
async-timeout             4.0.1
attrs                     22.1.0
auditok                   0.1.5
auto-py-to-exe            2.26.1
autopep8                  2.0.1
backcall                  0.2.0
base58                    2.1.1
beautifulsoup4            4.12.2
bencoder.pyx              3.0.0
blinker                   1.4
bottle                    0.12.23
bottle-websocket          0.2.9
Brlapi                    0.8.3
Brotli                    1.1.0
cchardet                  2.1.7
certifi                   2022.9.24
cfgv                      3.3.1
chardet                   4.0.0
charset-normalizer        2.1.1
click                     8.0.3
cloudscraper              1.2.71
colorama                  0.4.4
command-not-found         0.3
commonmark                0.9.1
configobj                 5.0.6
cryptography              3.4.8
cssselect                 1.2.0
cupshelpers               1.0
cx-Freeze                 6.13.1
Cython                    0.29.28
dbus-python               1.2.18
decorator                 4.4.2
defer                     1.0.6
defusedxml                0.7.1
dill                      0.3.6
distlib                   0.3.6
distro                    1.7.0
distro-info               1.1+ubuntu0.2
dnspython                 2.1.0
docopt                    0.6.2
dottorrent                1.10.1
dottorrent-cli            1.10.3
dottorrent-gui            1.3.11
EbookLib                  0.17.1
Eel                       0.14.0
entrypoints               0.4
et-xmlfile                1.1.0
evdev                     1.4.0
exceptiongroup            1.0.0
executing                 1.2.0
eyeD3                     0.8.10
ffmpeg-python             0.2.0
ffsubsync                 0.4.20
filelock                  3.6.0
flake8                    6.0.0
free-proxy                1.0.6
frozendict                2.3.8
future                    0.18.2
gevent                    22.10.2
gevent-websocket          0.10.1
greenlet                  2.0.1
grpcio                    1.30.2
h11                       0.14.0
html5lib                  1.1
httplib2                  0.20.2
huggingface-hub           0.10.0
humanfriendly             2.4
identify                  2.5.10
idna                      3.3
ifaddr                    0.1.7
imageio                   2.22.4
imageio-ffmpeg            0.4.7
IMDbPY                    2021.4.18
importlib-metadata        4.6.4
ipython                   8.7.0
iso639                    0.1.4
isort                     5.11.4
jedi                      0.18.2
jeepney                   0.7.1
Jinja2                    3.1.2
Js2Py                     0.74
keyring                   23.5.0
langid                    1.1.6
launchpadlib              1.10.16
lazr.restfulclient        0.14.4
lazr.uri                  1.0.6
lazy-object-proxy         1.8.0
libvirt-python            8.0.0
lightnovel-crawler        3.4.0
louis                     3.20.0
lxml                      4.9.2
macaroonbakery            1.3.1
Mako                      1.1.3
Markdown                  3.3.6
MarkupSafe                2.0.1
matplotlib-inline         0.1.6
mccabe                    0.7.0
MediaInfo                 0.0.9
minify_html               0.10.3
more-itertools            8.10.0
moviepy                   1.0.3
multitasking              0.0.11
mutagen                   1.45.1
nemo-emblems              6.0.1
netaddr                   0.8.0
netifaces                 0.11.0
nodeenv                   1.7.0
nose                      1.3.7
notify2                   0.3
numpy                     1.23.2
oauthlib                  3.2.0
odfpy                     1.4.1
onboard                   1.4.1
openpyxl                  3.0.10
opensnitch-ui             1.6.5.1
outcome                   1.2.0
packaging                 21.3
PAM                       0.4.2
pandas                    1.5.2
parso                     0.8.3
patchelf                  0.17.2.0
pexpect                   4.8.0
pickleshare               0.7.5
Pillow                    9.0.1
pip                       22.0.2
platformdirs              2.6.0
pre-commit                2.20.0
proglog                   0.1.10
prompt-toolkit            3.0.30
protobuf                  4.21.5
psutil                    5.9.0
ptyprocess                0.7.0
pure-eval                 0.2.2
pyasn                     1.6.1
pycairo                   1.20.1
pycodestyle               2.10.0
pycryptodome              3.15.0
pycryptodomex             3.11.0
pycups                    2.0.1
pycurl                    7.44.1
pyease-grpc               1.6.1
pyelftools                0.27
pyflakes                  3.0.1
Pygments                  2.11.2
PyGObject                 3.42.1
PyICU                     2.8.1
pyinotify                 0.9.6
pyinstaller               5.7.0
pyinstaller-hooks-contrib 2022.14
pyjsparser                2.7.1
PyJWT                     2.3.0
pylint                    2.15.9
pymacaroons               0.13.0
PyNaCl                    1.5.0
pyparsing                 2.4.7
pyparted                  3.11.7
PyQt5                     5.15.7
PyQt5-Qt5                 5.15.2
PyQt5-sip                 12.11.0
pyRFC3339                 1.1
PySocks                   1.7.1
pysubs2                   1.4.3
pyte                      0.8.1
python-apt                2.4.0+ubuntu3
python-box                6.1.0
python-dateutil           2.8.2
python-debian             0.1.43+ubuntu1.1
python-dotenv             0.20.0
python-gnupg              0.4.8
python-magic              0.4.24
python-slugify            6.1.2
python-xlib               0.29
pytz                      2023.3
pytz-deprecation-shim     0.1.0.post0
pyudev                    0.22.0
pyxattr                   0.7.2
pyxdg                     0.27
PyYAML                    5.4.1
qbittorrent-api           2022.11.40
qrcode                    7.3.1
questionary               1.10.0
readability-lxml          0.8.1
regex                     2022.8.17
reportlab                 3.6.8
requests                  2.28.1
requests-file             1.5.1
requests-toolbelt         0.9.1
requests-unixsocket       0.2.0
retrying                  1.3.4
rich                      12.5.1
ruamel.yaml               0.17.21
ruamel.yaml.clib          0.2.7
schedule                  1.1.0
SecretStorage             3.3.1
selenium                  4.12.0
setproctitle              1.2.2
setuptools                59.6.0
simplejson                3.17.6
six                       1.16.0
sniffio                   1.3.0
sortedcontainers          2.4.0
soupsieve                 2.3.1
srt                       3.5.2
ssh-import-id             5.11
stack-data                0.6.2
static-ffmpeg             2.3
systemd-python            234
text-unidecode            1.3
thefuck                   3.32
tinycss2                  1.1.1
tldextract                3.1.2
tokenizers                0.12.1
toml                      0.10.2
tomli                     2.0.1
tomlkit                   0.11.6
torch                     1.12.1
tqdm                      4.64.0
traitlets                 5.8.0
transformers              4.22.2
trio                      0.22.0
trio-websocket            0.9.2
typing_extensions         4.3.0
tzdata                    2022.2
tzlocal                   4.2
ubuntu-drivers-common     0.0.0
ubuntu-pro-client         8001
ufw                       0.36.1
undetected-chromedriver   3.5.3
Unidecode                 1.3.3
urllib3                   1.26.5
variety                   0.8.5
virtualenv                20.17.1
wadllib                   1.3.6
wcwidth                   0.2.5
webdriver-manager         3.8.4
webencodings              0.5.1
webrtcvad                 2.0.10
webrtcvad-wheels          2.0.10.post2
websockets                10.4
webvtt-py                 0.4.6
wget                      3.2
wheel                     0.37.1
whichcraft                0.6.1
whisper                   1.0
wrapt                     1.14.1
wsproto                   1.2.0
xdg                       5
xkit                      0.0.0
xlrd                      1.2.0
XlsxWriter                3.0.3
yfinance                  0.2.18
yt-dlp                    2022.4.8
zeroconf                  0.38.3
zipp                      1.0.0
zope.event                4.6
zope.interface            5.5.2

@morpheus65535
Copy link
Owner

@Dnkhatri You have Brotli installed. Requests module will use it if it's available. If not, it will make sure that response aren't encoded with Brotli. I would highly suggest that you use a venv to run Bazarr either only the requirements installed.

@Dnkhatri
Copy link

Dnkhatri commented May 8, 2024

Was able to get it to work at last. Works great though it ads HI for hearing impaired in the filename I don't want that now need to know how to fix that.

@morpheus65535
Copy link
Owner

Works great though it ads HI for hearing impaired in the filename I don't want that now need to know how to fix that.

It's because Bazarr discovered hearing-impaired content in the subtitles file. You can use another extension for HI file (in Settings-->Subtitles) but you can't disable this (or it must be done at your own risk using a custom post-processing script which may cause download or upgrade loop).

@Dnkhatri
Copy link

Dnkhatri commented May 10, 2024

Works great though it ads HI for hearing impaired in the filename I don't want that now need to know how to fix that.

It's because Bazarr discovered hearing-impaired content in the subtitles file. You can use another extension for HI file (in Settings-->Subtitles) but you can't disable this (or it must be done at your own risk using a custom post-processing script which may cause download or upgrade loop).

WIth asian content a lot of written text is shown in brackets which prowlarr wrongly detects has HI. I already was using custom script to do some modifications just added renaming to it as well. Working so far. Avistaz has no hearing impaired subs as far as I know would it be possible for prowlarr to ignore subs from avistaz for marking as HI.

@Lebowski89
Copy link

@Dnkhatri sorry for the inconvenience. I haven't realized more detailed instructions are needed, since it's almost the same as already existing Addic7ed provider. Here is a step-by-step on how to get your cookies in Google Chrome:

1. Install extension [Cookie Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm)

2. Log in to the tracker (AvistaZ or CinemaZ)

3. Click on the _Cookie Editor_ icon in Chrome's extensions toolbar at the top (note that the extension may be hidden under the "Extensions" button

4. When the _Cookie Editor_ asks you "Request permission for...", click "This site" button

5. In Chrome's dialog, click "Allow" button

6. Click the _Cookie Editor_ icon again. This time it displays all your cookies for the tracker.

7. In the _Cookie Editor_, click  "Export" button (bottom right corner of the extension's pop-up)

8. Click "Header String" button

Now the cookies in the correct format are copied into your clipboard. You just paste them into Cookies field in Bazarr provider's settings

No need to be getting people to install extensions: See:

https://github.com/Jackett/Jackett/wiki/Finding-cookies

@mat926
Copy link

mat926 commented Jun 16, 2024

Hello I get this error when searching for subtitles

2024-06-15 18:06:06,150 - root                             (7fbc86f1db38) :  DEBUG (ffprobe:40) - FFprobe found: {'path': '/data/media/movies/Mag-ingat ka sa. Kulam (2008)/Mag-ingat ka sa. Kulam (2008) [imdbid-tt1071223] - [DVD][MP3 2.0][DivX].avi', 'duration': datetime.timedelta(seconds=5663, microseconds=724733), 'size': 894479376, 'bit_rate': 1263450, 'container': 'avi', 'video': [{'id': 0, 'name': 'Video', 'duration': datetime.timedelta(seconds=5663, microseconds=724733), 'width': 720, 'height': 480, 'scan_type': 'Progressive', 'aspect_ratio': Decimal('1.5'), 'pixel_aspect_ratio': Decimal('1.0'), 'resolution': '480p', 'frame_rate': Decimal('29.970'), 'bit_rate': 1123835, 'codec': 'MPEG-4'}], 'audio': [{'id': 1, 'name': 'Audio', 'codec': 'MP3', 'channels_count': 2, 'channels': '2.0', 'bit_rate': 128000, 'sampling_rate': 48000}], 'provider': {'name': 'ffmpeg', 'version': {'/usr/bin/ffprobe': 'v6.0'}}}
2024-06-15 18:06:06,150 - root                             (7fbc86f1db38) :  DEBUG (utils:48) - Running refiner: arr_history
2024-06-15 18:06:06,167 - urllib3.connectionpool           (7fbc86f1db38) :  DEBUG (connectionpool:244) - Starting new HTTP connection (1): 192.168.0.143:7878
2024-06-15 18:06:06,571 - urllib3.connectionpool           (7fbc86f1db38) :  DEBUG (connectionpool:549) - http://192.168.0.143:7878 "GET /api/v3/history?eventType=1&movieIds=67&apikey=0d427009cac24ccf89a9f31283604279 HTTP/1.1" 200 None
2024-06-15 18:06:06,572 - root                             (7fbc86f1db38) :  DEBUG (arr_history:31) - Refining <Movie ['Mag-ingat ka sa... Kulam', 2008]> with Info URL: https://avistaz.to/torrent/29351-mag-ingat-ka-sa-kulam-2008-dvdrip-divx
2024-06-15 18:06:06,573 - root                             (7fbc86f1db38) :  DEBUG (utils:48) - Running refiner: anidb
2024-06-15 18:06:06,573 - root                             (7fbc86f1db38) :  DEBUG (anidb:119) - Video is not an Anime TV series, skipping refinement for <Movie ['Mag-ingat ka sa... Kulam', 2008]>
2024-06-15 18:06:06,573 - root                             (7fbc86f1db38) :  DEBUG (utils:51) - BAZARR is using these video object properties: {'name': '/data/media/movies/Mag-ingat ka sa. Kulam (2008)/Mag-ingat Ka Sa... Kulam (2008) DVDRiP DivX.avi', 'source': 'DVD', 'release_group': None, 'resolution': '0p', 'video_codec': 'DivX', 'audio_codec': 'MP3', 'imdb_id': 'tt1071223', 'hashes': {'opensubtitlescom': 'a7e645028665a5bc'}, 'size': 894479376, 'subtitle_languages': set(), 'original_name': 'Mag-ingat ka sa. Kulam (2008) [imdbid-tt1071223] - [DVD][MP3 2.0][DivX].avi', 'plexapi_metadata': {}, 'hints': {'title': 'Mag-ingat ka sa... Kulam', 'type': 'movie', 'single_value': True}, 'audio_languages': set(), 'external_subtitle_languages': set(), 'streaming_service': None, 'edition': None, 'original_path': '/data/media/movies/Mag-ingat ka sa. Kulam (2008)/Mag-ingat ka sa. Kulam (2008) [imdbid-tt1071223] - [DVD][MP3 2.0][DivX].avi', 'other': 'Rip', 'info_url': 'https://avistaz.to/torrent/29351-mag-ingat-ka-sa-kulam-2008-dvdrip-divx', 'series_anidb_series_id': (None,), 'series_anidb_episode_id': (None,), 'title': 'Mag-ingat ka sa... Kulam', 'year': 2008, 'alternative_titles': [], 'used_scene_name': True, 'radarrId': 67, 'fps': Decimal('29.970')}
2024-06-15 18:06:06,574 - subliminal_patch.core_persistent (7fbc86f1db38) :  INFO (core_persistent:21) - Listing subtitles for <Movie ['Mag-ingat ka sa... Kulam', 2008]>
2024-06-15 18:06:06,574 - subliminal_patch.core            (7fbc81c92b38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-15 18:06:06,575 - subliminal_patch.core            (7fbc81a80b38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-15 18:06:06,575 - subliminal_patch.core            (7fbc81c92b38) :  DEBUG (core:192) - New set: 346 items
2024-06-15 18:06:06,577 - subliminal_patch.core            (7fbc81c92b38) :  DEBUG (core:170) - Nothing to translate found
2024-06-15 18:06:06,577 - subliminal_patch.core            (7fbc81c92b38) :  INFO (core:365) - Listing subtitles with provider 'avistaz' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-15 18:06:06,578 - subliminal_patch.core            (7fbc81c92b38) :  INFO (core:296) - Initializing provider avistaz
2024-06-15 18:06:06,577 - subliminal_patch.core            (7fbc81a80b38) :  DEBUG (core:192) - New set: 346 items
2024-06-15 18:06:06,575 - subliminal_patch.core            (7fbc8186eb38) :  DEBUG (core:335) - Languages requested: {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-15 18:06:06,578 - subliminal_patch.core            (7fbc81a80b38) :  DEBUG (core:170) - Nothing to translate found
2024-06-15 18:06:06,579 - subliminal_patch.core            (7fbc8186eb38) :  DEBUG (core:192) - New set: 1688 items
2024-06-15 18:06:06,579 - subliminal_patch.core            (7fbc81a80b38) :  INFO (core:365) - Listing subtitles with provider 'cinemaz' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-15 18:06:06,580 - subliminal_patch.core            (7fbc8186eb38) :  DEBUG (core:170) - Nothing to translate found
2024-06-15 18:06:06,580 - subliminal_patch.providers.avistaz_network (7fbc81a80b38) :  DEBUG (avistaz_network:296) - <Movie ['Mag-ingat ka sa... Kulam', 2008]> not downloaded from https://cinemaz.to/. Skipped
2024-06-15 18:06:06,581 - subliminal_patch.core            (7fbc8186eb38) :  INFO (core:365) - Listing subtitles with provider 'opensubtitlescom' and languages {<Language: alpha3=eng>, <Language: hi=True;alpha3=eng>}
2024-06-15 18:06:06,581 - subliminal_patch.providers.opensubtitlescom (7fbc8186eb38) :  DEBUG (opensubtitlescom:295) - Searching using this hash: a7e645028665a5bc
2024-06-15 18:06:06,581 - subliminal_patch.providers.opensubtitlescom (7fbc8186eb38) :  DEBUG (opensubtitlescom:320) - Searching for those languages: en
2024-06-15 18:06:06,610 - urllib3.connectionpool           (7fbc8186eb38) :  DEBUG (connectionpool:549) - https://api.opensubtitles.com:443 "GET /api/v1/subtitles?ai_translated=exclude&imdb_id=1071223&languages=en&moviehash=a7e645028665a5bc HTTP/1.1" 200 66
2024-06-15 18:06:06,610 - subliminal_patch.providers.opensubtitlescom (7fbc8186eb38) :  DEBUG (opensubtitlescom:370) - Query returned 0 subtitles
2024-06-15 18:06:06,689 - urllib3.connectionpool           (7fbc81c92b38) :  DEBUG (connectionpool:1055) - Starting new HTTPS connection (1): avistaz.to:443
2024-06-15 18:06:07,067 - urllib3.connectionpool           (7fbc81c92b38) :  DEBUG (connectionpool:549) - https://avistaz.to:443 "GET /rules HTTP/1.1" 200 None
2024-06-15 18:06:07,069 - subliminal_patch.providers.avistaz_network (7fbc81c92b38) :  DEBUG (avistaz_network:287) - Cookies valid
2024-06-15 18:06:09,296 - urllib3.connectionpool           (7fbc81c92b38) :  DEBUG (connectionpool:549) - https://avistaz.to:443 "GET /torrent/29351-mag-ingat-ka-sa-kulam-2008-dvdrip-divx HTTP/1.1" 200 None
2024-06-15 18:06:09,346 - subliminal_patch.core            (7fbc81c92b38) :  ERROR (core:399) - Unexpected error in provider 'avistaz': Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/avistaz_network.py", line 305, in list_subtitles
    release = self._parse_release_table(html)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/avistaz_network.py", line 360, in _parse_release_table
    for tr in release_data_table.find_all('tr', recursive=False):
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/core.py", line 368, in list_subtitles_provider
    results = self[provider].list_subtitles(video, to_request)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/avistaz_network.py", line 305, in list_subtitles
    release = self._parse_release_table(html)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../custom_libs/subliminal_patch/providers/avistaz_network.py", line 360, in _parse_release_table
    for tr in release_data_table.find_all('tr', recursive=False):
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find_all'
2024-06-15 18:06:09,348 - root                             (7fbc81c92b38) :  INFO (get_providers:379) - Throttling avistaz for 10 minutes, until 24/06/15 18:16, because of: AttributeError. Exception info: "''NoneType' object has no attribute 'find_all'' ~ avistaz_network.py@360"
2024-06-15 18:06:09,350 - socketio.server                  (7fbc81c92b38) :  INFO (server:161) - emitting event "data" to all [/]
2024-06-15 18:06:09,351 - engineio.server                  (7fbc81c92b38) :  INFO (socket:76) - lh-bAiYg7z1WR-v_AAAE: Sending packet MESSAGE data 2["data",{"type":"badges","action":"update","payload":null}]
2024-06-15 18:06:09,352 - subliminal_patch.core            (7fbc86f1db38) :  INFO (core:734) - Discarding provider avistaz
2024-06-15 18:06:09,352 - subliminal_patch.core_persistent (7fbc86f1db38) :  INFO (core_persistent:26) - Found 0 subtitle(s)
2024-06-15 18:06:09,354 - root                             (7fbc86f1db38) :  DEBUG (manual:134) - BAZARR 0 Subtitles have been found for this file: /data/media/movies/Mag-ingat ka sa. Kulam (2008)/Mag-ingat ka sa. Kulam (2008) [imdbid-tt1071223] - [DVD][MP3 2.0][DivX].avi
2024-06-15 18:06:09,355 - root                             (7fbc86f1db38) :  DEBUG (manual:135) - BAZARR Ended searching Subtitles for this file: /data/media/movies/Mag-ingat ka sa. Kulam (2008)/Mag-ingat ka sa. Kulam (2008) [imdbid-tt1071223] - [DVD][MP3 2.0][DivX].avi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants