C5H12O5 / syno-videoinfo-plugin

A simple web scraping plugin for Synology Video Station
Apache License 2.0
257 stars 23 forks source link
python scraper synology videostation

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.

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 [ :floppy_disk: ] 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

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