Skip to content

Deleted YouTube channels don't get deleted in channels.json. #537

@BigFlubba

Description

@BigFlubba

Describe the bug
Deleted channels don't get deleted in channels.json and persist after container reboots. As described in #158

To Reproduce
Steps to reproduce the behavior:

  1. Delete channel
  2. Restart the container

Expected behavior
Channel deletes, and it persists across container reboots.

Logs:

  • Portainer Container Logs
2025-05-03T20:53:59.750Z | channel.delete <info> Deleting channel @shortcircuit

2025-05-03T20:53:59.751Z | dvr.saveChannelsConfig <info> Saving channel config

2025-05-03T20:53:59.753Z | route.channels.delete <info> Channel @shortcircuit deleted

<REDACTED> - - [03/May/2025:20:53:59 +0000] "DELETE /api/v0/channels/a1d0d4a9-02b6-4e95-949b-478d1bc4d9e7?deletevods=1 HTTP/1.1" 200 59 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0"

  • LiveStreamDVR-2025-05-03.log
2025-05-03T20:53:59.750Z | channel.delete <info> Deleting channel @shortcircuit
2025-05-03T20:53:59.751Z | dvr.saveChannelsConfig <info> Saving channel config
2025-05-03T20:53:59.753Z | route.channels.delete <info> Channel @shortcircuit deleted


  • channels.json (after "deleting")
    {
        "uuid": "a1d0d4a9-02b6-4e95-949b-478d1bc4d9e7",
        "provider": "youtube",
        "internalId": "UCdBK94H6oZT2Q7l0-b0xmMg",
        "internalName": "",
        "quality": [
            "best",
            "1080p60",
            "1080p",
            "720p60",
            "720p",
            "best"
        ],
        "match": [
            ""
        ],
        "download_chat": false,
        "burn_chat": false,
        "no_capture": false,
        "live_chat": false,
        "no_cleanup": false,
        "max_storage": 0,
        "max_vods": 0,
        "download_vod_at_end": false,
        "download_vod_at_end_quality": "best"
    }

Server:

  • Docker version 28.1.1, build 4eba377

Additional context
:(

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions