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

Matcher fails on detecting #814

Open
justjew opened this issue Feb 20, 2025 · 4 comments
Open

Matcher fails on detecting #814

justjew opened this issue Feb 20, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@justjew
Copy link

justjew commented Feb 20, 2025

Kyoo's version

v4.7.1

What happened?

Matcher fails with the following error:

matcher-1  | ERROR:matcher.matcher:Unhandled error
matcher-1  | Traceback (most recent call last):
matcher-1  |   File "/app/matcher/matcher.py", line 36, in identify
matcher-1  |     await self._identify(path)
matcher-1  |   File "/app/matcher/matcher.py", line 50, in _identify
matcher-1  |     raw = guessit(path, xem_titles=await self._provider.get_expected_titles())
matcher-1  |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/providers/implementations/thexem.py", line 179, in get_expected_titles
matcher-1  |     return await self._client.get_expected_titles()
matcher-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/matcher/cache.py", line 47, in wrapper
matcher-1  |     return await wrapper(*args, **kwargs)
matcher-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/matcher/cache.py", line 47, in wrapper
matcher-1  |     return await wrapper(*args, **kwargs)
matcher-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/matcher/cache.py", line 47, in wrapper
matcher-1  |     return await wrapper(*args, **kwargs)
matcher-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   [Previous line repeated 16 more times]
matcher-1  |   File "/app/matcher/cache.py", line 53, in wrapper
matcher-1  |     return await exec_as_cache(cache, key, lambda: f(*args, **kwargs))
matcher-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/matcher/cache.py", line 64, in exec_as_cache
matcher-1  |     result = await f()
matcher-1  |              ^^^^^^^^^
matcher-1  |   File "/app/providers/implementations/thexem.py", line 155, in get_expected_titles
matcher-1  |     map = await self.get_map(provider)
matcher-1  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/matcher/cache.py", line 53, in wrapper
matcher-1  |     return await exec_as_cache(cache, key, lambda: f(*args, **kwargs))
matcher-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
matcher-1  |   File "/app/matcher/cache.py", line 64, in exec_as_cache
matcher-1  |     result = await f()
matcher-1  |              ^^^^^^^^^
matcher-1  |   File "/app/providers/implementations/thexem.py", line 49, in get_map
matcher-1  |     r.raise_for_status()
matcher-1  |     ~~~~~~~~~~~~~~~~~~^^
matcher-1  |   File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
matcher-1  |     raise ClientResponseError(
matcher-1  |     ...<5 lines>...
matcher-1  |     )
matcher-1  | aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url='https://thexem.info/map/allNames?origin=tvdb&seasonNumbers=1&defaultNames=1'
matcher-1  | INFO:providers.implementations.thexem:Fetching data from thexem for tvdb
matcher-1  | WARNING:matcher.subscriber:failed to process Scan(path='/video/anime/###')

Seems like it's blocking access by IP address.
So, is the only way to fix this is to use VPN on the host?
(Yes, russian IP. Please, be patient)

@justjew justjew added the bug Something isn't working label Feb 20, 2025
@zoriya
Copy link
Owner

zoriya commented Feb 20, 2025

Can you reach https://thexem.info? If not thexem might have banned your IP...

Maybe we'll need to safeguard calls to thexem (and simply disable it).

@justjew
Copy link
Author

justjew commented Feb 20, 2025

Can you reach https://thexem.info? If not thexem might have banned your IP...

Maybe we'll need to safeguard calls to thexem (and simply disable it).

Unfortunately, I can't reach it if my IP is russia located. "Access denied. Error 1005".

@justjew
Copy link
Author

justjew commented Feb 26, 2025

@zoriya is there any update for this? I still want Kyoo on my server but it still doesn't work as needed

@zoriya
Copy link
Owner

zoriya commented Feb 26, 2025

sorry, i've been busy with #763 recently. i haven't forgotten about this, i do plan on tackling this soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants