User Tools

Site Tools


api:iptv:app:recording_update

API : IPTV : App : Recording update

Introduction

This request is used by the iOS/Android apps and web clients to update their own recording.

Only used by IPTV Private clients.

Request

URL https://api.telecomx.dk/iptv/app/recording/EPG_ID/profile/PROFILE_ID
Method POST
Params EPG_ID Id EPG Id of the program to update
PROFILE_ID Id ID of the profile, that currently has the recording. If the profile is not given, then it will try to move a common recording to a profile.
Query token String Session token.
Body profile String Profile ID

Query examples

https://api.telecomx.dk/iptv/app/recording/7_46rtg37tg3tyfg?token=123456780123456780ABCD&token=1234567890ABCD1234567890
https://api.telecomx.dk/iptv/app/recording/7_46rtg37tg3tyfg/profile/1234567890ABCD1234567890?token=123456780123456780ABCD&token=1234567890ABCD1234567890
JSON Body
profile ObjectId Profile ID, to move the recording to. If none is given, it will make the recording into a common recording

Body examples

{
  "profile": "1234567890ABCD1234567890"
}

Response

JSON object
_id String Unique ID of the program.
programId ObjectId Unique program ID (if known)
channelId Number Id of the TV channel carrying this show.
start Date Date and time the program starts.
end Date Date and time the program ends.
duration Number Length of the program in minutes.
title String Title of the program.
subTitle String Teaser/sub title - short description or episode title for a series episode.
description String Long description for the program.
genres Array List of genres.
series Object Episode data - only available for series.
series.episode Number Episode number in the season, if available.
series.episodesInSeason Number Number of episodes in the season, if available.
series.season Number Season number, if available.
series.id String Unique id of the series, if available.
date Date Date program/movie/series was released/first shown, if available.
country string Country of origin (ISO3166-2 country code). If multiple countries, comma separated string, if available.
credits Array List of credited persons for this program.
credits[].type String What the person is credited for: ACTOR, DIRECTOR, PRODUCER etc.
credits[].role String Name of the role played, if type is ACTOR.
credits[].name String Name of person.
images Array List of poster images available for the program.
images[].type String Image version data, usually WIDTHxHEIGHT.
images[].url String URL to retrieve the image.
favorite Boolean True if recording is marked as favorite and will not be auto deleted when it expires.
expire Date If not favorite marked, this is the date that the recording will be auto-deleted. Otherwise null.
position Number Last recorded playback position for this profile, in seconds.
watchList Boolean If true, then this profile has this program in their watchlist. Only relevant for IPTV private, using profiles
streams Array Properties used, if the program is available on streaming services
streams[].streamingService String (enum) Which streaming service this stream is from.
streams[].logo String URL to logo of the streaming service
streams[].logoId ObjectId ID of logo
streams[].name String Display name of streaming service
streams[].url String URL/deeplink to content

Example

{
  _id: '7_1482855900',
  channelId: 7,
  programId: '1234567890ABCD1234567890'
  start: '2016-12-27T16:25:00Z',
  end: '2016-12-27T16:55:00Z',
  duration: 30,
  title: 'Grand Danois',
  description: 'Satire. Se eller gense Niels Hausgaard og Anders Grau, når de sammen med en række danske komikere og skuespillere behandler otte emner i dette satiriske sketchshow. Det er alt lige fra danskhed til lov og orden, der kommer under kærlig behandling.',
  favorite: false,
  expire: '2019-01-01T00:00:00.000Z',
  genres: [
    'Komedie'
  ],
  position: 1026,
  series: {
    episode: 6,
    season: 2,
    id: '232174273'
  },
  images: [
    {
      type: "365x205",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/365/205/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    },
    {
      type: "411x231",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/411/231/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    },
    {
      type: "220x120",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/220/120/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    },
    {
      type: "1080x607",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/1080/607/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    },
    {
      type: "484x272",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/484/272/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    },
    {
      type: "552x310",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/552/310/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    },
    {
      type: "245x138",
      url: "http://cd-static.telenorcdn.net/cdepg/img/epg/245/138/237366453.Programme_L_CD_1700x1100.24dd376e28a4416121564ac941918c678826f454.jpg"
    }
  ],
  streams: [
    {
      streamingService: 'NETFLIX',
      name: 'Netflix',
      url: 'https://example.com/video/12937129739/,
      logo: 'https://image.powernet.tv/1234567890ABCD1234567890.png',
      logoId: '1234567890ABCD1234567890'
    }
  ]
}

Errors

Error code Message Description
404 id Recording not found
404 profile Profile not found
404 profile New profile not found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/app/recording_update.txt · Last modified: 2023/01/06 14:13 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki