Skip to content

Conversation

@beardypig
Copy link
Member

This fixes the session issue #1574 using the API rather than the website, as this change caused some other issues.

The only changes I might make are to the X-Android headers, as it is pretty obviously the emulator.

I added a small convenience parameter to cache.set to allow you to set an expiry time rather than expiry duration. (Need to add tests for this)

Should fix #1808.

This fixes the session issue streamlink#1574 using the API rather than the
website, as this change caused some other issues.
@beardypig beardypig added WIP Work in process plugin issue A Plugin does not work correctly labels Jun 18, 2018
- don't cache the session_id
- don't login when using a user set session_id
@codecov
Copy link

codecov bot commented Jun 18, 2018

Codecov Report

Merging #1820 into master will decrease coverage by <.01%.
The diff coverage is 30.98%.

@@            Coverage Diff            @@
##           master   #1820      +/-   ##
=========================================
- Coverage      50%     50%   -0.01%     
=========================================
  Files         234     234              
  Lines       13852   13864      +12     
=========================================
+ Hits         6927    6933       +6     
- Misses       6925    6931       +6

@gravyboat
Copy link
Member

Good stuff @beardypig, I think this is good to go unless you have something else you want to add as it has resolved the original issue.

@beardypig
Copy link
Member Author

beardypig commented Jun 19, 2018

I would be nice if @Atemu could give it a try to see if their problem is still solved.

@Atemu
Copy link

Atemu commented Jun 19, 2018

Sure, getting a US Session ID via the method I used still doesn't work for the Monogatari series (eventhough it works for all other geo blocked content I've tried), but the ID Streamlink generates when using a US VPN or proxy now works flawlessly.

I just had to adjust my scripts to use an actual proxy instead of the other method.

Thanks a bunch @beardypig !

@beardypig
Copy link
Member Author

Sure, getting a US Session ID via the method I used still doesn't work for the Monogatari series

@Atemu were you generating a session id with an account?

@Atemu
Copy link

Atemu commented Jun 19, 2018

Don't think so, but it had nothing to do with Streamlink (I only assumed it did because Streamlink didn't generate the ID properly either) and shouldn't really have worked in the first place.

@beardypig beardypig removed the WIP Work in process label Jun 19, 2018
@beardypig
Copy link
Member Author

@gravyboat I think it's good to go.

@gravyboat
Copy link
Member

Good stuff, thanks @beardypig.

@gravyboat gravyboat merged commit 4dd5605 into streamlink:master Jun 19, 2018
mkbloke pushed a commit to mkbloke/streamlink that referenced this pull request Aug 18, 2020
* plugins.crunchyroll: refactoring and updated API calls

This fixes the session issue streamlink#1574 using the API rather than the
website, as this change caused some other issues.

* plugins.crunchyroll: do not cache session id

- don't cache the session_id
- don't login when using a user set session_id
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.

No streams found for newest CR episodes that are only available to premium users

3 participants