Skip to content

C5H12O5/syno-videoinfo-plugin

Repository files navigation

Synology Video Info Plugin

GitHub Release GitHub Stars GitHub Downloads Python Support GitHub License

📖 English / 📖 简体中文

This project is a video information plugin for Synology Video Station. It provides a way to fetch metadata from websites other than the default ones.

  • Implemented in Python without any third-party dependencies.
  • Supports multiple sources, and can be easily extended to support more.
  • Has a simple configuration page where you can customize your plugin.

preview

Usage

Install the plugin:

  1. Download the latest release from here.
  2. Open your Video Station, go to Settings > Video Info Plugin.
  3. Click [Add], select the downloaded file, and click [OK].

Configure the plugin:

  1. Open your browser, go to http://[NAS_IP]:5125 (replace [NAS_IP] with your NAS IP address) page.
  2. Change the configuration as you want, and click [ 💾 ] button in the upper right corner.
  3. Go back to your Video Station, the configuration should be applied automatically.

Note

If you upgrade the plugin but the configuration page is not updated, you can restart the configuration service by following steps:

  1. Open the configuration page, click [Exit] button in the upper right corner to close the service.
  2. Go back to Video Station, go to Settings > Video Info Plugin, and click [Test Connection] button to restart the service.

Requirements

  • Python 3.6+
  • Video Station 2.5.0+ for DSM 6.0
  • Video Station 3.0.0+ for DSM 7.0

References

Tips for naming video files:

Movie:

  • Naming format: Movie_Name (Release_Year).ext
  • Example: Avatar (2009).avi

TV Show:

  • Naming format: TV_Show_Name.SXX.EYY.ext (S as a shorthand for Season and E for Episode)
  • Example: Gossip Girl.S03.E04.avi

Development

You can develop your own plugin based on this project easily. Here are the steps:

  1. Clone this repository to your local machine:
git clone https://github.com/C5H12O5/syno-videoinfo-plugin
  1. Modify the code as you want, and test it like this:
python main.py --type movie --input "{\"title\":\"{movie_title}\"}" --limit 1 --loglevel debug
  1. Package the plugin using the following command:
python setup.py sdist --formats=zip

License

Apache-2.0 license