NasCoreNasCore
Home
Docs
Download
Community
GitHub
  • English
  • zh-CN
Home
Docs
Download
Community
GitHub
  • English
  • zh-CN
  • Guide

    • Getting Started
    • install nascore
    • Configuration file
    • GitHub proxy configuration
    • webdav File Sharing
    • Static file and cdn
    • rclone Cloud Storage
    • alist/openlist
    • Caddy2 WebSite
    • ddns-go Dynamic DNS
    • lego automatic certificate management
    • nascore_tv Usage Instructions
    • Schedule&OpenSource

nascore_tv Usage Instructions

Introduction

nascore_tv is an extension of NasCore that provides video on demand (VOD) or TV functions. It optimizes the video playback experience by proxying the Douban API and the API for subscribing to video resource libraries, and caching a small amount of hot data.

Installation

  1. Download the nascore_tv binary file:
  • Download the binary file according to your operating system and unzip it ( TODO: Add actual download links or compilation instructions )
  1. Storage location: Place the unzipped nascore_tv or nascore_tv.exe file in one of the following directories:
  • In the same directory as the executable file of the NasCore main program (such as nascore).
  • In the extended subdirectory in the same directory as the executable file of the NasCore main program. This method is recommended.
  • The directory specified by the environment variable NASCOTE_EXTENDED_PATH.

It is recommended to put nascore_tv in the extended subdirectory to better organize the file structure.

Configuration

nascore_tv is configured via the nascore_vod.toml file. This file needs to be placed in the same directory as the nascore_tv executable file. If this configuration file is not present, the default values ​​will be used.

Configuration file example

[cache]
douban_max = 50
douban_expire=150
vodlist_max = 120
vodlist_expire = 150
voddetail_max = 120
voddetail_expire = 120
other_max = 120
other_expire = 15

[subscription]
urls=["https://nascore.eu.org/nascore_tv/subscription_example1.toml","https://nascore.eu.org/nascore_tv/subscription_example2.toml"]
interval_hour = 24
default_selected_api_site = ["tyyszy", "bfzy", "dyttzy", "ruyi"]

[auth]
jwt_secret = "your_jwt_secret_key"
disable = false
users = [
{ username = "nascore", password = "nascore" },
{ username = "nascore1", password = "nascore1" }
]

Configuration item description

Configuration itemDescription
[cache]Cache configuration
douban_maxThe maximum number of cached records of Douban popular movies and TV shows. If the device memory is low, it can be appropriately reduced. One data is about 10-80k.
douban_expireThe cache expiration time of Douban popular movies, in minutes.
vodlist_maxThe maximum number of cached records of resource station video lists/search results. If the device memory is low, it can be appropriately reduced. One data is about 1-10k.
vodlist_expireThe cache expiration time of resource station video lists/search results, in minutes.
voddetail_maxMaximum number of cached records for video details. If the device memory is low, it can be appropriately reduced. One piece of data is about 1-30k.
voddetail_expireVideo details cache expiration time, in minutes.
other_maxMaximum number of cached records for other caches. If the device memory is low, it can be appropriately reduced.
other_expireOther cache expiration time, in minutes.
[subscription]Subscription configuration
urlsSubscription address connection. If the url contains the characters github.com raw.githubusercontent.com and is started by nascore, the GitHubDownloadMirror acceleration address configured by the nascore system will be used automatically for download.
interval_hourSubscription automatic update period, in hours.
default_selected_api_siteThe resource site identifier that is started by default.
[auth]Authentication configuration
jwt_secretJWT secret key, please replace it with a strong one.
disableSet to true to disable authentication.
usersUsername and password list, passwords are stored in plain text. If empty, a single authentication user named "nascore" and password "nascore" is enabled by default.

Run

After placing nascore_tv in the correct directory and configuring the nascore_vod.toml file, NasCore will automatically start it. You can see the startup information of nascore_tv in the NasCore log.

Notes

  • If nascore_vod fails to start properly, check the NasCore log to see if there is any error information.
  • If you modify the nascore_vod.toml configuration file, you need to wait a few seconds for it to take effect.

Uninstall

To uninstall nascore_vod, simply delete it from the corresponding directory. Also delete the nascore_vod.toml file.

Last Updated:: 7/23/25, 9:45 PM
Contributors: joyanhui
Prev
lego automatic certificate management
Next
Schedule&OpenSource