jone / plex-trakt-syncer Goto Github PK
View Code? Open in Web Editor NEWSync watched movies from plex to trakt.
Sync watched movies from plex to trakt.
It seems like there is an error when parsing Tv-Shows in plex.
All episodes are added twice once with season and once without. This causes all specials to be marked as seen on trakt, see:
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 1 (Days Gone Bye) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 2 (Guts) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 3 (Tell It to the Frogs) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 4 (Vatos) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 5 (Wildfire) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 6 (TS-19) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 1 (What Lies Ahead) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 2 (Bloodletting) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 3 (Save the Last One) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 4 (Cherokee Rose) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season , episode 5 (Chupacabra) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 1, episode 1 (Days Gone Bye) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 1, episode 2 (Guts) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 1, episode 3 (Tell It to the Frogs) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 1, episode 4 (Vatos) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 1, episode 5 (Wildfire) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 1, episode 6 (TS-19) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 2, episode 1 (What Lies Ahead) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 2, episode 2 (Bloodletting) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 2, episode 3 (Save the Last One) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 2, episode 4 (Cherokee Rose) as seen
2012-03-26T11:55:34 DEBUG [plex-trakt-syncer] Mark episode "The Walking Dead", season 2, episode 5 (Chupacabra) as seen
2012-03-26T11:55:34 INFO [plex-trakt-syncer] Mark "22" episodes of the show The Walking Dead as seen in trakt.tv
When running the crivt I get the following :
%d format: a number is required, not str
Traceback (most recent call last):
File "plex-trakt-sync.py", line 259, in
Syncer()()
File "plex-trakt-sync.py", line 55, in call
movie_nodes = tuple(self.plex_get_watched_movies())
File "plex-trakt-sync.py", line 139, in plex_get_watched_movies
for node in self._plex_request('library/sections/1/all'):
File "plex-trakt-sync.py", line 205, in _plex_request
path)
TypeError: %d format: a number is required, not str
This is using Python 2.7.2+ on Ubuntu 11.04.
When using the script with an empty plex database, it throws a traceback.
It would be awesome if there was another script that would mark things watched/unwatched in plex based on what is watched in trakt. I also use mediabrowser (which does two way syncing) so keeping them both in step with trakt would be ideal.
Would be nice if it could also send tv show information.
The sections is hardcoded here: https://github.com/jone/plex-trakt-syncer/blob/master/plex-trakt-sync.py#L171
It should probably be changed since if you have more than one section or if you added tv-shows before movies this won't include all items.
It can be solved similar to this:
https://github.com/midgetspy/Sick-Beard/blob/master/sickbeard/notifiers/plex.py#L81
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.