Showing posts with label ugreen. Show all posts
Showing posts with label ugreen. Show all posts

How to Install and Configure iSponsorBlockTV on UGREEN NAS (DXP4800 Plus) via Docker

iSponsorBlockTV is a lightweight Docker utility that automatically skips sponsored segments, self-promotions, and skippable YouTube ads on your smart TV or streaming device.

Because the official iSponsorBlockTV Docker image uses a minimal container environment without /bin/bash or /bin/sh, attempting to open a web terminal directly inside the UGOS Docker UI throws an Invalid terminal command! error. Additionally, the v2 image will exit every 10 seconds until a valid config.json file is generated and properly mounted to /app/data.

This guide walks through creating the data directory, generating your configuration via SSH, and deploying the container cleanly on a UGREEN NAS running UGOS.


Prerequisites

  • A UGREEN NAS (e.g., DXP4800 Plus) with the Docker app installed from the UGOS App Center.
  • A smart TV or streaming stick with the YouTube app installed on the same local network.
  • SSH access enabled temporarily on your NAS to run the interactive setup wizard.

Step 1: Create the Persistent Data Folder on Your NAS

Before running the setup wizard, create a dedicated folder on your NAS so your configuration persists across container updates and restarts.

  1. Open the Files app in your UGOS web interface.
  2. Navigate to your shared Docker directory (typically /volume1/docker).
  3. Create a new folder named isponsorblocktv.
  4. Right-click the isponsorblocktv folder, open Properties, and note the exact full path (for example: /volume1/docker/isponsorblocktv).

Step 2: Enable SSH and Run the Interactive Setup Wizard

Because the iSponsorBlockTV v2 image lacks an interactive shell for the UGOS web terminal, running a temporary one-time container over SSH is the cleanest way to generate config.json and link your TV.

  1. In UGOS, go to Control Panel > Terminal, check Enable SSH service (default port 22), and click Apply.
  2. Open Terminal (macOS/Linux) or PowerShell / Command Prompt (Windows) on your computer and connect to your NAS:
    ssh @
  3. Run the temporary setup container, making sure to mount the exact folder path from Step 1 to /app/data:
    sudo docker run --rm -it --network=host -v /volume1/docker/isponsorblocktv:/app/data ghcr.io/dmunozv04/isponsorblocktv --setup-cli
  4. Get your pairing code on your TV: open the YouTube app, navigate to Settings > Link with TV code, and copy the 12-digit code shown on screen.
  5. Complete the CLI wizard prompts in your terminal:
    No config file found, using defaults. Config will be saved to data/config.json
    Blank config file created
    Welcome to the iSponsorBlockTV cli setup wizard
    Do you want to use system-wide proxy? (y/N) n
    Paired with 0 Device(s). Add more? (y/N) y
    Enter pairing code (found in Settings - Link with TV code): <12_DIGIT_TV_CODE>
    Pairing...
    Paired device: YouTube on TV
    Paired with 1 Device(s). Add more? (y/N) n
    API key only needed for the channel whitelist function. Add it? (y/N) n
    Enter skip categories (space or comma sepparated) Options: [sponsor, selfpromo, exclusive_access, interaction, intro, outro, preview, filler, music_offtopic, hook]: 
    Do you want to whitelist any channels from being ad-blocked? (y/N) n
    Do you want to specify a minimum length of segment to skip? (y/N) n
    Do you want to report skipped segments to sponsorblock. Only the segment UUID will be sent? (Y/n) n
    Do you want to mute native YouTube ads automatically? (y/N) n
    Do you want to skip native YouTube ads automatically? (y/N) y
    Do you want to enable autoplay? (Y/n) 
    Enter SponsorBlock API URL (default: https://sponsor.ajay.app/api/): 
    Config finished
  6. Confirm that config.json was saved inside /volume1/docker/isponsorblocktv. (Optional: Disable SSH again in Control Panel > Terminal once setup is complete.)

Step 3: Deploy the Container via UGOS Docker Compose

Now that config.json is saved in your NAS folder, deploy the permanent container using a Docker Compose project.

  1. Open the Docker app in UGOS and select Project > Create.
  2. Set the project name to isponsorblocktv.
  3. Paste the following YAML configuration into the editor, ensuring the host volume path matches Step 1 and Step 2:
    services:
      iSponsorBlockTV:
        image: ghcr.io/dmunozv04/isponsorblocktv:latest
        container_name: iSponsorBlockTV
        restart: unless-stopped
        network_mode: host
        volumes:
          - /volume1/docker/isponsorblocktv:/app/data
    Important: Make sure the host directory path before :/app/data is identical to the folder where config.json was generated. If the volume mount does not match, the container will log Running in docker without mounting the data dir and exit every 10 seconds.
  4. Click Deploy to pull the image and start the container.

Step 4: Verify Everything Is Working

  1. In the UGOS Docker app, open the Container tab and verify that iSponsorBlockTV shows a green Running status without restarting.
  2. Click the container and open its Log tab—you should see confirmation that it loaded your configuration and connected to YouTube on TV.
  3. Play a YouTube video with a known sponsor segment or skippable ad on your TV; playback will automatically jump past the sponsored segment without requiring any remote input.