OdyseeTeam / odysee-api

API server for Odysee
https://odysee.com
MIT License
229 stars 49 forks source link

sign livestream urls #440

Closed tzarebczan closed 2 years ago

tzarebczan commented 2 years ago

New get param: base_streaming_url

Example call:

params
: 
{uri: "lbry://@gifprofile#7/members-only#7", save_file: false, base_streaming_url: https://cloud.odysee.live/content/0f8078f7710ce929ac176e3df0e08cf0b6ab2125/master.m3u8}
save_file : false
uri : "lbry://@gifprofile#7/members-only#7"
base_streaming_url: "https://cloud.odysee.live/content/0f8078f7710ce929ac176e3df0e08cf0b6ab2125/master.m3u8"

Expected return:

{
  "jsonrpc": "2.0",
  "result": {
    "streaming_url": "https://cloud.odysee.live/content/0f8078f7710ce929ac176e3df0e08cf0b6ab2125/master.m3u8?hash-hls=0180d580700f151b46ab7e90279a1358\u0026ip=24.184.105.67\u0026hash=7df7b16df0845fbfa5d852f90d101bba"
  },
  "id": 1663084409050
}

iapi call: err = cu.IAPIClient.Call("membership_perk/check", map[string]string{"claim_id": claim.ClaimID, "type": "Exclusive livestreams"}, resp)