Edit with ChatGPT

Give ChatGPT this page and describe the order you want. The public API reads and updates the same channel numbers as the editor. Anyone with the link can edit.

Open plan form

Read the actual lineup

Start with the current TV export. It returns the export ID, filename, tuner keys, counts and revisions. If the guide URL includes id and tuner, use that export and tuner. A 404 before the first import means the owner still needs to open the Samsung ZIP in the editor.

Read the channels or search for TVR. Pass id and tuner to pin the result. q matches a name fragment, ignoring case and accents. Optional quality accepts HD, SD, UHD or unknown. Results are in channel-number order. Follow nextOffset using offset until it is null. The default limit is 100 and the maximum is 200.

Use IDs as quoted strings exactly as returned. A service ID is unique within its tuner. Inspect names, reported dimensions, service type and quality together. HD and SD variants of the same station have different IDs. TVR 1, TVR 2 and regional stations are distinct. An unlabelled service can be HD. Leave uncertain variants in place or ask the viewer.

Apply a spoken instruction

For “TVR starting at 10, HD versions first, put the SD duplicates at the end”, search the tuner for TVR. Pair the actual variants and pick the preferred IDs in viewing order. Send one group starting at 10, then a second group with only the confirmed lower-quality duplicates at the end. Omit empty groups. Preserve unrelated services.

Send JSON to POST https://tvreorder.cristi8.net/api/order with Content-Type: application/json. No authentication is required. Replace every placeholder below with live values.

{
  "id": "SHA-256 of the imported ZIP",
  "tuner": "dvbc",
  "revision": 1,
  "ops": [
    {"start": 10, "ids": ["preferred-service-id"]},
    {"start": "end", "ids": ["sd-duplicate-id"]}
  ],
  "preview": true
}

Preview returns the total number of changed positions and up to 30 examples. When the user has asked to apply the changes, send the same body with preview: false. Each group occupies consecutive numbers. Other channels retain their relative order and shift where necessary. All operations commit together. Read the affected channels again and report their final numbers and the saved revision. A no-op returns saved: false and changed: 0.

On HTTP 409, read the current tuner again and rebuild the plan. For an interrupted write, read the resulting order before retrying. To undo the most recent change on that tuner, send POST /api/undo with its current id, tuner and revision. No GET endpoint changes the order. OpenAPI schema

Preview and apply a plan

ChatGPT with browser control can use this form directly. If your chat can only read links, ask for the JSON plan and paste it here. If the chat cannot open the site, choose Download lineup for chat above and attach that text file to your conversation. It includes the actual service IDs, revision, and instructions. An assistant can also return a link to /guide#plan= followed by URL-encoded JSON. Opening the link fills the form.

    Back in the channel editor, choose Refresh shared order to see changes immediately. Export ZIP for TV checks the shared order again before building the file.