Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plugins.crunchyroll: update auth logic#3150

Merged
gravyboat merged 1 commit into
streamlink:masterfrom
beardypig:crunchyroll-auth
Sep 4, 2020
Merged

plugins.crunchyroll: update auth logic#3150
gravyboat merged 1 commit into
streamlink:masterfrom
beardypig:crunchyroll-auth

Conversation

@beardypig

Copy link
Copy Markdown
Member

Updated the auth logic a bit, re-authenticating with the auth token no longer returns an auth token. If the saved token no longer works then it will try to authenticate with the username and password if they are set.

I updated the old logging calls too.

fixes #3148

@codecov

codecov Bot commented Sep 4, 2020

Copy link
Copy Markdown

Codecov Report

Merging #3150 into master will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #3150      +/-   ##
==========================================
- Coverage   52.66%   52.63%   -0.04%     
==========================================
  Files         244      244              
  Lines       15623    15631       +8     
==========================================
- Hits         8228     8227       -1     
- Misses       7395     7404       +9     

@beardypig beardypig mentioned this pull request Sep 4, 2020
1 task
@gravyboat

Copy link
Copy Markdown
Member

Nice looks good, thanks @beardypig.

@gravyboat gravyboat added the plugin issue A Plugin does not work correctly label Sep 4, 2020
@gravyboat gravyboat merged commit 7ddd4aa into streamlink:master Sep 4, 2020
@skcihmit

skcihmit commented Sep 5, 2020

Copy link
Copy Markdown

Thanks @beardypig. Confiring this fixes the issue - I had to still manually delete my auth token file to get it to work though.

@beardypig

Copy link
Copy Markdown
Member Author

@skcihmit that's weird, it should have detected that the credentials didn't work and removed them automatically. You don't happen to have a log output from that failed attempt do you? :)

@skcihmit

skcihmit commented Sep 8, 2020

Copy link
Copy Markdown

@beardypig sorry, no I don't, and I can't recreate it, so must have been something else I did.

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

Labels

plugin issue A Plugin does not work correctly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to purge crunchyroll credentials or reauthenticate

3 participants