Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
suffolk.edu/sjc: Massachusetts Supreme Judicial Court livestream jwplayer in Generic #11993
Comments
|
Great, that fixes it. What about the postscript (p.s.) regarding diagnostics? |
|
You can post your (new) ideas to #10894. Actually the logging facility in youtube-dl is not pythonic at all ;-) It's more C-like. |
|
There are lots of such places. I don't see much point to put debug output everywhere. |
|
Thanks for the superfast response, by the way! Ha ha, @yan12125, you're funny. But perhaps I should go ahead with that. Although it sounds like there is not a single mind about all this. (Also, it'd be nice if you guys could tell me what to do on IQM2...) @dstftw: I'm happy to have it anywhere. While doing it comprehensively may be hard, doing it little by little can really help incrementally improve. Every little bit helps. Also dumb question on your b7a8c1b: is that really the appropriate fix? It doesn't seem right that check_video() should have a list of common format infoextractors and just run them. Surely there are more possible extractors in this case than just |
This is a bit challenging to test and debug because the website is different during the occasional intermittent livestream, and versus how it later appears when the videos are archived. I could just use some API guidance.
I don't quite understand how the
jwplayerchecking code inextractor/generic.pyis supposed to work. It properly identifies an rtmp:// URL associated with this video, but then throws it away because it does not passYoutubeIE.suitable(vurl). I'm not sure why the Youtube InfoExtractor is involved with rtmp. And passing the raw rtmp URL to the commandline works just fine.After adding a quick patch for some diagnostics in filter_video():
Then I get this this output:
Note it properly finds
rtmp://192.138.214.154/live/sjclive. And feeding that to youtube-dl a second time works just fine:So, I think there is probably a trivial fix here, but I just don't understand how this is supposed to work, and why YoutubeIE is involved in jwplayer, etc.
Here's the HTML from the site at this time:
Thanks!
p.s.: It would be great to be able to get that kind of diagnostic information I got from my patch by adding a command-line debug or verbose flag, and it wasn't necessary for me use the python debugger or source-code modifications to see what is going on in this kind of case. I'm not sure what kind of diagnostic patches you're willing to accept, though?