Play "blob:html://asd" scraped from web page

Hi,
I’ve built a plugin to play m3u8 links found on the web (mostly thanks to IPTVLite.bundle), so I already have all the menu structure and html scraper built.
But now I need to play blob:html links
How can I modify this function to play
“blob:http://www.la7.it/0ad86d9e-0fee-4840-afe7-044408c3600e
scraped from
<video id="player_la7_2902_video_Html5Hls_api" class="vjs-tech" preload="metadata" playsinline="true" src="blob:http://www.la7.it/0ad86d9e-0fee-4840-afe7-044408c3600e"></video>
??

    @route('/video/test/show', include_container = bool)
    def Show(url, title, include_container = False, **kwargs):
      vco = VideoClipObject(
        key = Callback(Show, url = url, title = title, include_container = True),
        rating_key = url,
        title = title,
        items = [
          MediaObject(
            protocol = Protocol.HLS,
            container = Container.MP4,
            video_codec = VideoCodec.H264,
            audio_codec = AudioCodec.AAC,
            audio_channels = 2,
            optimized_for_streaming = True,
            parts = [
              PartObject(
                key = HTTPLiveStreamURL(Callback(Play, url = url))
              )
            ],
          )
        ]
      )
      if include_container:
        return ObjectContainer(objects = [vco])
      else:
        return vco
    
    @indirect
    @route('/video/test/play.m3u8')
    def Play(url, **kwargs):
      Log(' --> Final stream url: %s' % (url))
      return IndirectResponse(VideoClipObject, key = url)

@sycolth
Infos about Blob URLs you can find here:
https://stackoverflow.com/questions/30864573/what-is-a-blob-url-and-why-it-is-used
Plex cannot solve this (server-)local represented objects.
I suggest to use Chrome Dev-Tools, and to trace the XHR-Calls, to find playable video-sources.
/R


######Plugins: ARDMediathek2016, Plex-Plugin-KIKA_und_tivi, Plex-Plugin-3Sat_Mediathek, Plex-Plugin-Flickr, Plex-Plugin-TagesschauXL, Plex-Plugin-Phoenix_Mediathek, TuneIn2017, Shoutcast2017, Plex-Plugin-ZDFmobile

1 Like