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

Access token not works #53

Closed
Darnix opened this issue Sep 30, 2022 · 2 comments · Fixed by #54
Closed

Access token not works #53

Darnix opened this issue Sep 30, 2022 · 2 comments · Fixed by #54
Labels
bug Something isn't working enhancement New feature or request

Comments

@Darnix
Copy link

Darnix commented Sep 30, 2022

I tried the new release bin to generate nfo files with access token but still not working.

Just found getting subject api url in https://bangumi.github.io/api/#/%E6%9D%A1%E7%9B%AE/getSubjectById is https://api.bgm.tv/v0/subjects/{subject_id} but dantalian is using https://api.bgm.tv/subject/{subject_id}.

Trying curl -X 'GET' 'https://api.bgm.tv/subject/354246' -H 'accept: application/json' -H 'Authorization: Bearer <token>' will return 404 response, curl -X 'GET' 'https://api.bgm.tv/v0/subjects/354246' -H 'accept: application/json' -H 'Authorization: Bearer <token>' will get the correct response, and the same as getting episode data.

By the way, can dantalian bgm also add access token parameter?

Relay to #51

Thanks.

@laxect laxect added bug Something isn't working enhancement New feature or request labels Sep 30, 2022
@laxect laxect linked a pull request Oct 1, 2022 that will close this issue
@laxect
Copy link
Collaborator

laxect commented Oct 5, 2022

By the way, can dantalian bgm also add access token parameter?

You can use dantalian --access-token xxx bgm get 354246

I tried the new release bin to generate nfo files with access token but still not working.

Can you have a try for PR #54? You can find binaries at https://github.com/nanozuki/dantalian/actions/runs/3188438171

@Darnix
Copy link
Author

Darnix commented Oct 9, 2022

By the way, can dantalian bgm also add access token parameter?

You can use dantalian --access-token xxx bgm get 354246

I tried the new release bin to generate nfo files with access token but still not working.

Can you have a try for PR #54? You can find binaries at https://github.com/nanozuki/dantalian/actions/runs/3188438171

Work like a charm now, thx!

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

Successfully merging a pull request may close this issue.

2 participants