pluto_tv_scraper
pluto_tv_scraper copied to clipboard
Feature: Unique `sid` (session ID) for each stream URL entry so that multiple streams can be watched simultaneously
When all streams share the same sid only the last loaded stream is available, the rest becomes empty.
@4v3ngR
Steps to reproduce
- Generate a shared
sidusing a UUID generator. - Construct stream URLs:
https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/62ba60f059624e000781c436/master.m3u8?appName=web&appVersion=unknown&clientTime=0&deviceDNT=0&deviceId=6c25e430-30d3-11ef-9cf5-e9ddff8fe497&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&serverSideAds=false&sessionID={SID}&sid={SID}
https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/65775e07dfed030008cb3f47/master.m3u8?appName=web&appVersion=unknown&clientTime=0&deviceDNT=0&deviceId=6c263251-30d3-11ef-9cf5-e9ddff8fe497&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&serverSideAds=false&sessionID={SID}&sid={SID}
where {SID} is the generated UUID.
- Play both streams in separate tabs at https://hlsjs.video-dev.org/demo.
- Open DevTools on both tabs; Watch for "Fatal error"s.
Expected results
- DevTools Console: The stream that loads last will be the one that plays without the "Fatal error: levelEmptyError".
- DevTools Network: The one that fails keeps loading empty M3U8 playlists.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Notes
I have also tried different deviceIds for each stream but that didn't seem to do anything.
Hypotheses
-
sidcontrols the streaming session, regardless of thedeviceId. - Only one stream may be active for an
sidat any given time; new streams opened with the samesidwill "steal" the session from the old ones.
Can you provide some information on how you're playing the streams?
Multiple streams with the same ID work for me. If you're playing streams on multiple devices, each device should have a unique ID, otherwise you will have issues.
@4v3ngR
Can you provide some information on how you're playing the streams?
See the update.