VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 6 of 6
  1. hi,

    i want to integrate free live stream to tivimate but i am having no luck.
    https://www.aloula.sa/en/live/saudiatv

    can anyone help?
    thnx
    Quote Quote  
  2. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    You can use stream detector to get the m3u8 link. The livestream doesn't use DRM. The m3u8 is gonna expire though.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  3. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    You can use stream detector to get the m3u8 link. The livestream doesn't use DRM. The m3u8 is gonna expire though.
    I think he wants a self-hosted server to fetch the live stream link and send it to tivimate when requested.
    Quote Quote  
  4. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by itti_KB9 View Post
    I think he wants a self-hosted server to fetch the live stream link and send it to tivimate when requested.
    Ok. In that case one way to get a fresh m3u8 is this

    Code:
    import json
    import re
    
    import requests
    
    SOURCE_URL = "https://www.aloula.sa/en/live/saudiatv"
    live_name = re.search(r'/live/([^/?]+)', SOURCE_URL).group(1)
    
    response = requests.get('https://aloula.faulio.com/api/v1/channels')
    response = response.content.decode()
    response = json.loads(response)
    
    stream = None
    live_id = None
    for live_stream in response:
        if live_stream.get("url", "") == live_name:
            live_id = live_stream["id"]
            stream = live_stream.get("streams", {}).get("hls", None)
            break
    
    if stream is None:
        response = requests.get(f'https://aloula.faulio.com/api/v1.1/channels/{live_id}/player')
        response = response.content.decode()
        response = json.loads(response)
        stream = response["streams"]["hls"]
    
    cmd = f'streamlink --http-header "Origin=https://www.aloula.sa" "{stream}" best'
    print(cmd)
    Output:
    Code:
    streamlink --http-header "Origin=https://www.aloula.sa" "https://live.kwikmotion.com/ksa1live/ksa1.smil/playlist_dvr.m3u8?hdnts=exp=1737740373~acl=/ksa1live/ksa1.smil/*~hmac=99b4a89f0f4db5f9180c1c7fb20488606bcc804b870468c9436e8d035e9ae9c9" best
    A working streamlink command is generated with the necessary headers. I'm sure it can be adapted for tivimate.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  5. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Originally Posted by itti_KB9 View Post
    I think he wants a self-hosted server to fetch the live stream link and send it to tivimate when requested.
    Ok. In that case one way to get a fresh m3u8 is this

    Code:
    import json
    import re
    
    import requests
    
    SOURCE_URL = "https://www.aloula.sa/en/live/saudiatv"
    live_name = re.search(r'/live/([^/?]+)', SOURCE_URL).group(1)
    
    response = requests.get('https://aloula.faulio.com/api/v1/channels')
    response = response.content.decode()
    response = json.loads(response)
    
    stream = None
    live_id = None
    for live_stream in response:
        if live_stream.get("url", "") == live_name:
            live_id = live_stream["id"]
            stream = live_stream.get("streams", {}).get("hls", None)
            break
    
    if stream is None:
        response = requests.get(f'https://aloula.faulio.com/api/v1.1/channels/{live_id}/player')
        response = response.content.decode()
        response = json.loads(response)
        stream = response["streams"]["hls"]
    
    cmd = f'streamlink --http-header "Origin=https://www.aloula.sa" "{stream}" best'
    print(cmd)
    Output:
    Code:
    streamlink --http-header "Origin=https://www.aloula.sa" "https://live.kwikmotion.com/ksa1live/ksa1.smil/playlist_dvr.m3u8?hdnts=exp=1737740373~acl=/ksa1live/ksa1.smil/*~hmac=99b4a89f0f4db5f9180c1c7fb20488606bcc804b870468c9436e8d035e9ae9c9" best
    A working streamlink command is generated with the necessary headers. I'm sure it can be adapted for tivimate.

    this works and i wrote nodejs script to achieve this as well. now im struggling in playing the file with tivimate. i passed the headers still its not working but it works in js fetch.

    i am currently trying different proxy script for handling this.

    is there any other way?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!