Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional time parameter to playlist duplication #381

Merged
merged 6 commits into from
Jan 20, 2023

Conversation

RocketMan
Copy link
Owner

@RocketMan RocketMan commented Jan 19, 2023

This PR adds an optional fromtime parameter to the playlist duplication/rebroadcast API. The value may be a range (hhmm-hhmm) or a time (hhmm). If you specify a time, the API copies from the specified time to the end of the playlist.

Example:

Playlist 12345 runs from 0000-0300. To duplicate only one hour of this playlist 0100-0200 for rebroadcast on 2022-01-01 at 1800-1900:

POST /api/v1/playlist HTTP/1.1
X-APIKEY: eb5e0e0b42a84531af5f257ed61505050494788d
Content-Type: application/vnd.api+json

{
  "data": {
    "type": "show",
    "attributes": {
      "rebroadcast": true,
      "date": "2022-01-01",
      "time": "1800-1900"
    },
    "meta": {
      "fromtime": "0100-0200"
    },
    "relationships": {
      "origin": {
        "data": {
          "type": "show",
          "id": "12345"
        }
      }
    }
  }
}

More details are available in docs/Playlists.md

@RocketMan RocketMan added this to the v2.11.7 hotfix milestone Jan 20, 2023
@RocketMan RocketMan merged commit 32fc511 into master Jan 20, 2023
@RocketMan RocketMan deleted the duplicate-from-time branch January 21, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant