Skip to content

Node client that listen to VLC and update or adds series to series-tracker website through wp rest api.

Notifications You must be signed in to change notification settings

excap3r/automatic-series-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Series Tracker

Deprecated, please use TypeScript version instead.

This allows you to watch your favorite series on VLC and automatically synchronize series with Series-Tracker.

How does that work? 🤔

  • App listens to VLC port and triggers an event on status change, then checks if it has season and episode.
  • If its recognized as a series(have season and episode in meta or in title/filename) will be processed and then App will fetch all your series from site through WP-Rest API.
  • Then it checks if the name of series that's got from VLC exists on Website and if there's a difference between season and/or episodes, then app will send an update request to WP-Rest API, if the series doesn't already exist in Rest, then app will try to create a new series post.

Installation 🚀

  1. Download last release
  2. Unzip folder and grab it where do you want
  3. Double click on install.bat and wait for all modules to install or open the project's main directory in terminal and type "npm install" and wait for all modules to install

How to start 🤖

  • Be sure you've passed VLC Configuration & Tracker Configuration below.

  • Windows: double-click on "start.bat"

  • Terminal: type "node main"

  • If your VLC is working correctly and is running then it will automatically connect and will respond with "Succesfully connected"

  • Now just play your favorite series on VLC and Tracker will automatically sync your series to website

VLC Configuration ▶️

  • You need to have enabled Web(http) interface module and your password set.
  1. Open VLC.
  2. Click at Tools and Preferences.
  3. At left bottom click to "All" under "Show settings".
  4. Scroll down to "Interface" and click on "Main interfaces", be sure you have checked "Web" option.
  5. Click to "Main interfaces" dropdown arrow.
  6. Click on "Lua" and at your right-side under "Lua HTTP" and enter Password you want to use.

Tracker Configuration 🛠️

  • Open /config folder and rename config-example.json to config.json
  • You have to use any text editor or IDE to edit config.json
  • Use scheme shown under this text to edit your config
{
	"series-tracker": {
		"username": "name",     // Login name to series-tracker website
		"password": "password"  // Login password to series-tracker website
	},
	"vlc": {
		"password": "password123",  // Your VLC HTTP password
		"host": "localhost",        // If u running VLC on same PC as Tracker then keep that on 'localhost' 
		"port": "8080",             // Your VLC port, default is 8080
		"refreshMs": 20000          // Time between updates in VLC web client in miliseconds
	}
}

Todo

  • add pm2 support

    • new error handling
  • optional login to series-tracker without setting password in config

    • type password in cmd & replace chars with *

About

Node client that listen to VLC and update or adds series to series-tracker website through wp rest api.

Resources

Stars

Watchers

Forks

Packages

No packages published