question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schoolism Plugin Error with newer streams

See original GitHub issue

Plugin Issue

  • [ X] This is a plugin issue and I have read the contribution guidelines.

Description

The plugin is working with older streams but not working with newer streams like “Deconstructed: Drawing People”

Description

Schoolism plugin doesnt work with the following

Deconstructed: Drawing People

I’m using streamlink 1.4.1 latest installation

Reproduction steps / Explicit stream URLs to test

  1. … Using Username and password the plugin logs in correctly
  2. … Accessing the path of the course either to stream or to output doesn’t work https://www.schoolism.com/watchLesson.php?type=st&id=596
  3. … It throws the following error “Unable to parse JSON” (see log)

Log output

Using the log i get the following:

C:\Users\PC>streamlink -l debug "https://www.schoolism.com/watchLesson.php?type=
st&id=596" --schoolism-email --schoolism-password --schoolism-part 1
[cli][debug] OS: Windows 7
[cli][debug] Python: 3.6.6
[cli][debug] Streamlink: 1.4.1
[cli][debug] Requests(2.23.0), Socks(1.7.1), Websocket(0.57.0)
[cli][info] Found matching plugin schoolism for URL https://www.schoolism.com/wa
tchLesson.php?type=st&id=596
[cli][debug] Plugin specific arguments:
[cli][debug] --schoolism-email= (email)
[cli][debug] --schoolism-password= (password)
[cli][debug] --schoolism-part=1 (part)
[plugin.schoolism][debug] Logged in to Schoolism as
error: Unable to parse JSON: Expecting ',' delimiter: line 1 column 1053 (char 1
052) ('[{"sources":[{"type":"application/ ...)

Additional comments, screenshots, etc.

Love Streamlink? Please consider supporting our collective. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tianwang95commented, Dec 18, 2020

@bastimeyer Here’s the raw JS:

js_output.txt

1reaction
bastimeyercommented, Dec 18, 2020

Please open a PR with your changes, @mkbloke, this looks fine.

input = '[{"title":""foo":bar"},{"title":""FOO":BAR"},{"title":""f00":b4r"}]'

re.compile(r'"title":""(.*)":(.*)"').sub(r'"title":"\1:\2"', input)
'[{"title":"foo":bar"},{"title":""FOO":BAR"},{"title":""f00:b4r"}]'

re.compile(r'"title":""(.*?)":(.*?)"').sub(r'"title":"\1:\2"', input)
'[{"title":"foo:bar"},{"title":"FOO:BAR"},{"title":"f00:b4r"}]'

If you want, you can add a simple test for the plugin’s playlist_schema

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions - Schoolism
We offer classes in two formats: Critiqued Sessions and Subscriptions. Do I need a fast internet connection to use Schoolism? Yes, we highly...
Read more >
streamlink/streamlink - Gitter
Streamlink(). plugin = session.resolve_url(url) streams = plugin.get_streams(). bit i have the problem that the stream breaks after 30 sec.
Read more >
Streamlink 5.1.2 documentation
A command-line utility that extracts streams from various services and pipes them into a video player of choice. 5.1.2. Stable · Latest.
Read more >
streamlink - extracts streams from various services and pipes ...
In addition, this plugin requires a incap_ses cookie to be sent with each HTTP request (see issue #2088); this unique session cookie can...
Read more >
streamlink(1) - Arch manual pages
A URL to attempt to extract streams from. Usually, the protocol of http(s) URLs can be omitted (https://), depending on the implementation of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found