plex-tvst-scrobbler provides a set of scripts that allow you to scrobble played episodes items to TVShow Time from the Plex Media Server application. plex-tvst-scrobbler was built to run across platforms, while it has not yet been tested on Windows, it should work.
A few points
Linux, OSX
It is recommended (but not required) that you install this into a virtualenvironment.
virtualenv ~/.virtualenvs/plex-tvst-scrobber
source ~/.virtualenvs/plex-tvst-scrobber/bin/activate
Fetch and install the source from the github repo.
git clone https://github.com/jesseward/plex-tvst-scrobbler.git
cd plex-tvst-scrobbler
python setup.py install
Alternatively, you can fetch the latest zip from github
wget https://github.com/jesseward/plex-tvst-scrobbler/archive/master.zip
unzip master.zip
cd plex-tvst-scrobbler-master
python setup.py install
You're done.
Windows Note: any feedback regarding MS Windows functionality is appreciated.
cd c:\temp\plex-tvst-scrobbler\
python setup.py install
The above command installs the python scripts to various locations. Directories of interest are :
To run the application, do the following from a DOS prompt
cd c:\Python27\scripts
python plex-tvst-scrobbler.py
The plex-tvst-scrobbler configuration file (plex_tvst_scrobbler.conf) is installed to ~/.config/plex-tvst-scrobbler/ . 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.
# 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: a python data struture that stores failed scrobbles. plex-tvst-scrobbler
# will retry on a 60 minute interval, maximum of 10 attempts if tvshowtime.com is
# experiencing issues.
cache_location = tmp/plex_tvst_scrobbler.cache
# REQUIRED: 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.
mediaserver_log_location = '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'
# REQUIRED: Where do you wish to write the plex-tvst-scrobbler log file.
log_file = /tmp/plex_tvst_scrobbler.log
If you installed plex-tvst-scrobble to a virtual environment, enable the virtual env.
source ~/.virtualenvs/plex-tvst-scrobber/bin/activate
run the application
$ plex-tvst-scrobbler.py
On first run you will be prompted to authenticate and grant access to your TVShow Time account. Visit the URL generated by plex-tvst-scrobbler and follow the prompts to grant access to the application.
Example.
$ plex-tvst-scrobbler.py
== Requesting tvshowtime.com auth ==
Please do the following to authorize the scrobbler:
1/ Connect on https://www.tvshowtime.com/activate
2/ Enter the code: xxxx-xxxx
Have you authorized me [y/N] :
Once this is complete, please re-start the service, listen to audio via Plex and watch as your music is scrobbled. You may wish to leave the service running in the background. On a POSIX system, wrap the script in the no-hangup utility.
$ nohup plex-tvst-scrobbler.py &
Or browse the github issues list to review old bugs or log a new problem. See https://github.com/jesseward/plex-tvst-scrobbler/issues?q=
Any feedback on the performance on a MS Windows installation would be appreciated. I do not have ability to test plex-tvst-scrobbler on this platform. Please log an issue or a pull request with any fixes.
The project https://github.com/jesseward/plex-lastfm-scrobbler was used as the base of the code.