Skip to content

Picarto plugin: update RTMPStream settings#1469

Open
Swirt wants to merge 3 commits into
chrippa:developfrom
Swirt:picarto-fix
Open

Picarto plugin: update RTMPStream settings#1469
Swirt wants to merge 3 commits into
chrippa:developfrom
Swirt:picarto-fix

Conversation

@Swirt

@Swirt Swirt commented Sep 5, 2016

Copy link
Copy Markdown

Changed RTMPStream-settings to match the August 30th Picarto update.

Comment thread src/livestreamer/plugins/picarto.py Outdated

_channel_casing_re = re.compile(r"""
<script>placeStreamChannel\('(?P<channel>[^']+)',[^,]+,[^,]+,'(?P<visibility>[^']+)'\);</script>
<script>placeStreamChannelFlash\('(?P<channel>[^']+)',[^,]+,[^,]+,'(?P<visibility>[^']+)',[^,]+\);</script>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look at my comments in PR #1332. The matching of placeStreamChannelFlash works if a single person is streaming, or placeStreamChannel if they are involved with a multistream. The following works for both as long as it isn't a multistream where the primary streamer is offline
<script>placeStreamChannel(Flash)?\('(?P<channel>[^']+)',[^,]+,[^,]+,'(?P<visibility>[^']+)'(,[^,]+)?\);</script>
If the page you go to is involved in a multistream and the primary streamer (the one who's page you went to) is offline, but the secondary or tertiary stream is live, it will incorrectly match the second or third stream instead of (correctly) reporting the stream offline.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants