Coder Social home page Coder Social logo

fkb56 / tvtime-plex-scrobbler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quekky/tvtime-plex-scrobbler

0.0 0.0 0.0 21 KB

This scrobbler sends episodes you watch on your Plex Media Center to TVTime

License: MIT License

Python 100.00%

tvtime-plex-scrobbler's Introduction

tvtime-plex-scrobbler

The original source tvshowtime-plex-scrobbler hasn't gotten any updates, is requires you to run on the same machine as Plex server and requires to set Plex logging to DEBUG level, which causes a lot of data.

tvtime-plex-scrobbler provides a set of scripts that allow you to scrobble played episodes items to TVShow Time from the Plex Media Server application. tvtime-plex-scrobbler was built to run across platforms, while it has not yet been tested on Windows, it should work.

A few points

  • tvtime-plex-scrobbler is an out of process tool. Meaning it is not a Plex Media Server plug-in. This tool runs separately of your Plex Media Server.
  • Uses python standard library. Python 2.7 is the only requirement to run this application
  • Uses Plex API to retrieve the recently watched episodes
  • Does not differentiate between clients. Meaning all media played, will be scrobbled.

Installation

Configuration

The tvtime-plex-scrobbler configuration file (plex_tvst_scrobbler.conf) is in the conf directory. The following configuration values are available.

If you're running Plex Media Server on a Linux based operating system, things should work out of the box.

[plex-tvst-scrobbler]
# REQUIRED: mediaserver_url is the location of the http service exposed by Plex Media Server
# the default values should be 'ok', assuming you're running the plex scrobble
# script from the same server as your plex media server
mediaserver_url = http://localhost:32400

# REQUIRED: Where do you wish to write the plex-tvst-scrobbler log file.
log_file = /tmp/plex_tvst_scrobbler.log

# OPTIONAL: Where do you wish to write the token used for authorizing access to
# you TVShow Time account
session = /tmp/plex_tvst_scrobbler_session_key

# OPTIONAL: Where do you wish to write the access token used for authenticating
# to the plex API
plex_access_token_location = /tmp/plex_tvst_scrobbler_plex_access_token

# OPTIONAL: mediaserver_log_location references the log file location of the plex media server
# the default under /var/lib/... is the default install of plex media server on
# a Linux system. You may wish to change this value to reference your OS install.
# https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files
#mediaserver_log_location = /path/to/plex/media/server/log


Running

On first run you will be prompted to authenticate and grant access to your Plex and TV Time account. Visit the URL generated by tvtime-plex-scrobbler and follow the prompts to grant access to the application.

Example.

$ python tvtime-plex-scrobbler.py

== Requesting Requesting access token from plex.tv ==
Enter plex.tv username:
Enter plex.tv password:
== Requesting tvshowtime.com auth ==

Please do the following to authorize the scrobbler:

1/ Connect on https://www.tvtime.com/activate
2/ Enter the code: xxxx-xxxx

Have you authorized me [y/N] :

Once this is complete, please run the program again to sync. The program will exit once it have sync finish.

$ python tvtime-plex-scrobbler.py

You can use scheduler or cronjob to schedule the program to run every hour.

Troubleshooting & Known Issues

  • If you're experiencing authentication issues (appearing in plex_tvst_scrobbler.log), remove the session files and run the program to setup the authentication.

Thanks

The project was forked from https://github.com/sportsreport2/tvshowtime-plex-scrobbler and edited.

tvtime-plex-scrobbler's People

Contributors

fkb56 avatar quekky avatar sportsreport2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.