Skip to main content

TV Series Downloader [电视节目下载程序]

GitHub version PyPI version PyPi Version

PyPi Python Versions PyPi Downloads

Status: parked, still working (as of 2026-11). This is a personal tool that is revived occasionally rather than actively developed. See Current status for what works today and how to check it yourself in under a minute.

A small program to download TV and movies from websites, and saves files in a Plex-readable format.

This program does not provide any of the media content, instead, it grabs content through sites from the internet. Keep in mind that the copyright of all videos downloaded by this program belongs to the original creator.

谨记本程序下载的所有视频版权归原创者所有,本程序只提供下载服务,并不提供资源存储,也不参与录制、上传。 若本程序无意侵犯了贵司版权,请新增 Issue 提出 。

Installation and Usage

Setup and installation

pip install tvsd
tvsd --help # Show available commands

Update

pip install tvsd -U

Usage

tvsd search <your-search-query> # Search query for media from sources and downloads if available
tvsd clean-temp # Removes everything in temp downloading directory, useful after app crashed or aborted

Defaults are built in. Override them with a settings.yaml in the current directory, with ~/.config/tvsd/settings.yaml, with TVSD_* environment variables, or per run with flags. The default media root is /mnt/viewable, and it has to exist before a command will validate the config:

mkdir -p ~/Movies/TVSD
tvsd --media-root ~/Movies/TVSD search <your-search-query>

Current status

TVSD scrapes sites that are not built to be scraped, so it decays when a site changes. Rather than pretend otherwise, the repo ships a smoke test that says exactly which layer rotted:

make install-deps  # poetry install + yt-dlp/ffmpeg prerequisites
make test          # unit tests, no network
make smoke         # live check: search -> details -> m3u8 -> Plex naming

make smoke prints one PASS/FAIL line per layer and exits non-zero on failure, so "is this still working?" is a 60-second question instead of an afternoon of debugging.

Date Layer State
2026-11 xiao_bao (ibaotv.com, formerly xiaoheimi.net) working
2026-11 olevod dead — the site is now a Vue SPA with a WASM/encrypted player
2026-11 ssstv dead — 403 / timeouts

Sources are marked __status__ = "active"|"dead" and only active ones are queried, so dead sources cost nothing. Reviving one means rewriting its ~90-line scraper in tvsd/sources/, then running make smoke against it.

Prerequisites

  • Python 3.10+
  • ffmpeg on PATH (remuxing the downloaded segments)
  • yt-dlp on PATH or installed in the same environment (the download engine)
brew install ffmpeg yt-dlp          # macOS
sudo apt install ffmpeg yt-dlp      # Debian/Ubuntu
pip install tvsd "yt-dlp>=2025.1.1" # or let pip provide yt-dlp

tvsd checks both tools before it starts a download and tells you what is missing.

Contribution

Contributions are welcomed, contribution methods and accurate details will be included very soon.

git clone https://github.com/jyyyeung/TVSD.git
cd tvsd
make setup-dev-env # install pre-commit hooks
make install-deps   # poetry install + ffmpeg/yt-dlp check
cp .env.example .env # update .env according to your environment
make test           # unit tests
make smoke          # live check against the sources

Versioning

This project uses Commitizen to help release and versioning management.

  • Fetch GitHub Version Tags: make fetch-tags
  • Commit: cz commit
  • Update Release Version: make bump
  • Push GitHub Version Tag: make push-tag

Publish

poetry config pypi-token.pypi <my-pypi-token>
poetry build
poetry publish
  • Search & Download Shows
  • Plex naming (season/episode detection, Season 00 for specials)
  • Resume, retries and progress via yt-dlp
  • Track new episodes
  • TMDB/IMDB metadata lookup (issue #1)
  • Per-source maintenance (see Current status)

Inspired By and Credits to

免责声明(Disclaimer)

This program is only a tool for personal and mainly educational purposes, and also for those who would like to watch TV shows in environments without quality internet access, e.g. on the plane.

Responsibilities

By using this program to download any form of media ("content"), you are entirely responsible for the content of, and any harm resulting from, that Content. That is the case regardless of whether the Content in question constitutes text, graphics, an audio file, or computer software. By using this program, you represent and warrant that:

  • the downloading, copying and use of the Content will not infringe the proprietary rights, including but not limited to the copyright, patent, trademark or trade secret rights, of any third party;
  • you have fully complied with any third-party licenses relating to the Content, and have done all things necessary to successfully pass through to end users any required terms;
  • the Content does not contain or install any viruses, worms, malware, Trojan horses or other harmful or destructive content;
  • the Content does not contain unethical or unwanted commercial content designed to drive traffic to third party sites or boost the search engine rankings of third party sites, or to further unlawful acts (such as phishing) or mislead recipients as to the source of the material (such as spoofing);
  • the Content is not pornographic, does not contain threats or incite violence, and does not violate the privacy or publicity rights of any third party;
  • your content is not getting advertised via unwanted electronic messages such as spam links on newsgroups, email lists, blogs and websites, and similar unsolicited promotional methods;

Disclaimer of Warranties

The program is provided “as is”. The program and its suppliers and licensors hereby disclaim all warranties of any kind, express or implied, including, without limitation, the warranties of merchantability, fitness for a particular purpose and non-infringement. Neither this program nor its suppliers and licensors, makes any warranty that the program will be error free or that cess thereto will be continuous or uninterrupted. If you’re actually reading this, here’s a treat. You understand that you download from, or otherwise obtain content or services through, this program at your own discretion and risk.

This document is CC-BY-SA. It was last updated March 15, 2023.

Originally adapted from the Sonarr Terms of Service.

Metadata

Release files for tvsd 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tvsd 1.5.0
File Size Uploaded Provenance Actions
tvsd-1.5.0.tar.gz 34.4 kB Without provenance Details for tvsd-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tvsd 1.5.0
File Interpreter ABI Platform Actions
tvsd-1.5.0-py3-none-any.whl Python 3 none any Details for tvsd-1.5.0-py3-none-any.whl

Total release size: 74.8 kB

Release files / tvsd-1.5.0.tar.gz

Download URL tvsd-1.5.0.tar.gz
Size 34.4 kB
Tags Source
SHA-256 checksum
How to use checksums
22113a04e423a24ffcdf012a2f52514365fb7a37effc72cab0f264d34a3ca288
BLAKE2b-256 checksum
How to use checksums
8efb4d4f50027101d537f35ceab82215a2dbf5c3bca8087c8b052dcfcfb12d8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / tvsd-1.5.0-py3-none-any.whl

Download URL tvsd-1.5.0-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10a99e68124f5c65baf4749c4fb5fdc0f2f8449be651300f92b6575e1d8dedda
BLAKE2b-256 checksum
How to use checksums
90fb48f98b6ccabf012c7e47096555e6710d9a5aaea402fe1c037eb2ef49f313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for tvsd 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page