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

[mteamtp] (testing) Exception (mteamtp): Login failed: Selector "a[href="logout.php"]" didn't match: Parse error #15177

Closed
3 tasks done
PN62323424 opened this issue Mar 22, 2024 · 16 comments · Fixed by #15182
Closed
3 tasks done

Comments

@PN62323424
Copy link

Have you checked our Troubleshooting page for your issue?

  • I have checked the Troubleshooting page

Is there already an issue for your problem?

  • I have checked older issues, open and closed

Have you read our Contributing Guidelines?

  • I have read the Contributing Guidelines

Environment

none

Description

https://kp.m-team.cc/ This site has been revamped

Logged Error Messages

none

Screenshots

No response

@ilike2burnthing
Copy link
Contributor

@mynameisbogdan are you seeing this as well, or is the issue here user-side?

@mynameisbogdan
Copy link
Contributor

I can confirm they migrated once again, and now I see I can create a API Key in the user CP but there's no docs on how to use it so we'll have to wait for things to settle down.

@chain710
Copy link

I can confirm they migrated once again, and now I see I can create a API Key in the user CP but there's no docs on how to use it so we'll have to wait for things to settle down.

I did some research and found that we can request the new API using cookies, and the new API seems to be more easily integrated.

  1. login: POST https://kp.m-team.cc/api/login with plain user & pass, return cookie and user id
  2. search: POST https://kp.m-team.cc/api/torrent/search, return list of torrents

I opened a PR in another project, and the code is available for reference.

@mynameisbogdan
Copy link
Contributor

Your research didn't considered to support for accounts with 2FA, so I really rather wait for them to document on how to use the API keys.

@garfield69
Copy link
Contributor

While we wait for the API docs to become available (if ever), are there plans to update the html scraper to at least get the two indexers going again?

@mynameisbogdan
Copy link
Contributor

Scraping is not possible anymore. Already took a look at it today and figured out that Cardigann doesn't have support for POST requests with a JSON body, but anyone else if free to take a jab at it until things get definitive.

@garfield69 garfield69 added the Down / Waiting for removal Site is 522/500/403/302. To be Monitored. If still offline after 30d then Indexer will be removed. label Mar 23, 2024
@chain710
Copy link

Your research didn't considered to support for accounts with 2FA, so I really rather wait for them to document on how to use the API keys.

Abount 2FA: is it possible to add a new indexer M-Team Cookie? I've tested the apis work with cookie
There're already other cookie based implementations like YGGcookie

@WangEdward
Copy link

WangEdward commented Mar 24, 2024

While we wait for the API docs to become available (if ever), are there plans to update the html scraper to at least get the two indexers going again?

@mynameisbogdan The API docs are available at https://test2.m-team.cc/api/doc.html#/home after you login through https://test2.m-team.cc/

You may need to switch to the second option to see the user APIs

@mynameisbogdan
Copy link
Contributor

Sadly I don't see anything security related on how to use API keys.

@WangEdward
Copy link

WangEdward commented Mar 24, 2024

Sadly I don't see anything security related on how to use API keys.

You can try calling API with the x-api-key header; the API key can be obtained in the user CP. jxxghp/MoviePilot@bd7ca7f is an example of the migration to x-api-key

If the user provides Jackett with their API key, there is no need to maintain 2 versions (2fa) of the app.

@mynameisbogdan
Copy link
Contributor

Thank you, x-api-key works. 👍

@yjiawqgj

This comment was marked as off-topic.

@ilike2burnthing

This comment was marked as off-topic.

@yjiawqgj

This comment was marked as off-topic.

@ilike2burnthing ilike2burnthing removed the Down / Waiting for removal Site is 522/500/403/302. To be Monitored. If still offline after 30d then Indexer will be removed. label Mar 25, 2024
@garfield69
Copy link
Contributor

v0.21.2163

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

Successfully merging a pull request may close this issue.

7 participants