Sick-Beard icon indicating copy to clipboard operation
Sick-Beard copied to clipboard

Trakt watchlist support

Open EchelonFour opened this issue 12 years ago • 64 comments

Adds new shows to sickbeard when they are added to your trakt watchlist. Has the option to download the pilot of that show as well ( the whole show or none of it) also added removing shows from a watchlist when they are downloaded

EchelonFour avatar May 31 '12 14:05 EchelonFour

This looks awesome! Is there any way to also add Trakt recommendations as well? That way, the users that we associate with on Trakt can influence what we watch/download without extra hasstle.

smithjw avatar Jun 04 '12 12:06 smithjw

I built this off how I use the site, which is every so often I go through my recommendations and ones I like the look of to my watchlist. It seems dangerous to let sick-beard download new shows with no prompt from the user. Although it is possible.

EchelonFour avatar Jun 04 '12 12:06 EchelonFour

You could add conditions in like in CouchPotato for the Automation section for things like Votes and Ratings. That way it could filter the Recommendations section slightly.

smithjw avatar Jun 04 '12 23:06 smithjw

I would love to have this code merged into sickbeard. I'm using it from EchelonFour's repo, and it's awesome!

mithro avatar Jun 12 '12 08:06 mithro

This appears to be all on the Linux build side of SickBeard. Is there a somewhat easy way for me to put these changes into my windows Sickbeard? Or better yet, I would request that this great feature be pulled into the standard Sickbeard distro.

evannadeau avatar Jun 21 '12 20:06 evannadeau

Maybe a dumb question but I am new to Git and dont really know how it works. How do I pull this into my current install that is running from source?

I have Git installed and currently do this every morning prior to launching Sick-Beard when my server restarts.

git pull git://github.com/midgetspy/Sick-Beard.git git merge origin/development

Any help would be much appreciated as Trakt support is something that I have been waiting for for a long time.

Thanks

Harroguk

harroguk avatar Jul 02 '12 13:07 harroguk

This looks awesome, adding to my install now :D

aaronflorey avatar Jul 20 '12 08:07 aaronflorey

i must be missing something, i installed the full version echelonfour has on his repository but i cant find the settings or how to import trakt shows into sickbeard

thevader avatar Jul 22 '12 22:07 thevader

It's under the trakt settings in notifications. If it's not there you probably got the wrong branch, you want: https://github.com/EchelonFour/Sick-Beard/tree/trakt_watchlist

EchelonFour avatar Jul 23 '12 03:07 EchelonFour

Thanks for your help EchelonFour, however I get an error ERROR::TRAKTWATCHLIST :: No default root directory, any ideas?

thevader avatar Jul 26 '12 00:07 thevader

oh I fugured it out !

thevader avatar Jul 27 '12 14:07 thevader

Wonderfully! I could kiss you!

rasmuseeg avatar Aug 15 '12 10:08 rasmuseeg

--?For windows users, don't try this yet, unless you know what you are doing.--

Is there a way, to get this working?

rasmuseeg avatar Aug 21 '12 07:08 rasmuseeg

Mine runs on Windows. There is nothing os specific in this. Just merge this into the latest development branch and find a guide for running from source on windows.

EchelonFour avatar Aug 21 '12 07:08 EchelonFour

Okay, thanks. I'll try finding a way to do it. While Sickbeard crew is lazy accepting request. :)

rasmuseeg avatar Aug 21 '12 18:08 rasmuseeg

we are not lazy. just busy.

thezoggy avatar Aug 21 '12 19:08 thezoggy

@thezoggy Sorry m8, wasn't trying to offend you. Keep up the good work! :o)

rasmuseeg avatar Aug 23 '12 20:08 rasmuseeg

Does it remove from the watchlist when the item is added to couchpotato?

gobba avatar Oct 03 '12 08:10 gobba

wrong program, and yes

EchelonFour avatar Oct 03 '12 08:10 EchelonFour

oh hehe yeah ofc i meant sick beard ;) awesome! Can i merge this build with the main on my installation (linux). Im not very good with GIT.

gobba avatar Oct 03 '12 08:10 gobba

This must be added to the official sickbeard git repository

SolidRhino avatar Oct 16 '12 00:10 SolidRhino

Works like a charm and merges cleanly with the current master :)

:+1: for merging

wolph avatar Nov 11 '12 02:11 wolph

I get a 500 Internal Error File "cheetah__sickbeard_data_interfaces_default_config_notifications_tmpl_1353001615_56_35983.py", line 1424, in respond NotFound: cannot find 'TRAKT_REMOVE_WATCHLIST' while searching for 'sickbeard.TRAKT_REMOVE_WATCHLIST'

Any ideas how to fix this?

airix1 avatar Nov 15 '12 18:11 airix1

Im new to GitHub so can anyone please tell me how i can add - merge this commits to my Local installation ?

Im using Linux and have git installed.

Thanks in advance.

zzecool avatar Nov 17 '12 12:11 zzecool

I just did a rebase and squash, and this is still good to go

EchelonFour avatar Nov 18 '12 02:11 EchelonFour

Thanks for this. It's exactly what I was looking for. I'm hoping it gets accepted into master.

xer0x avatar Dec 04 '12 07:12 xer0x

I am trying to get this running on Windows 7, I have python 2.7.3 and cheetah 2.4.2.1 installed and the SickBeard.py script seems to run properly, I can see it start on the proper port, the only error in the command window is about NameMapper, which I have read can be disregarded.

My issue is the web interface gives the following 500 error: Traceback (most recent call last): File "C:\Program Files\Sick-Beard-trakt_watchlist\cherrypy_cprequest.py", line 660, in respond response.body = self.handler() File "C:\Program Files\Sick-Beard-trakt_watchlist\cherrypy\lib\encoding.py", line 193, in call self.body = self.oldhandler(_args, *_kwargs) File "C:\Program Files\Sick-Beard-trakt_watchlist\cherrypy_cpdispatch.py", line 25, in call return self.callable(_self.args, *_self.kwargs) File "C:\Program Files\Sick-Beard-trakt_watchlist\sickbeard\webserve.py", line 1943, in index return _munge(t) File "C:\Program Files\Sick-Beard-trakt_watchlist\sickbeard\webserve.py", line 120, in _munge return unicode(string).encode('utf-8', 'xmlcharrefreplace') File "C:\Python27\lib\site-packages\Cheetah\Template.py", line 1010, in unicode return getattr(self, mainMethName)() TypeError: unbound method respond() must be called with Program_Files_Sick_Beard_trakt_watchlist_data_interfaces_default_home_tmpl instance as first argument (got nothing instead)

I have pulled the zip from this page: https://github.com/EchelonFour/Sick-Beard and to the error above. I have downloaded git, pulled the repository and locally merged in the origin/development and the trakt watchlist branch (I cant remember the exact name) and got the above error.

Can someone point me in a direction to help resolve this issue? I'm honestly at a loss as to where to start.

Thanks M

msoze avatar Dec 31 '12 19:12 msoze

hi there would like to test this but rather unfamiliar with linux and github

i tried cloning with:

git clone git://github.com/EchelonFour/Sick-Beard.git my-sickbeard-install

but don't see a diference from master - i have trakt notification but not watchlist

thanks

Burke78 avatar Jan 26 '13 16:01 Burke78

You need to pull the required branch

git clone -b trakt_watchlist git://github.com/EchelonFour/Sick-Beard.git my-sickbeard-install

ppslim avatar Jan 26 '13 16:01 ppslim

Thank you ppslim

Working grate, hope this makes it into main branch.

Burke78 avatar Jan 26 '13 17:01 Burke78

EchelonFour Could I use this in my branch TPB Branch? Seem a good feature to me.

mr-orange avatar Feb 07 '13 12:02 mr-orange

Absolutely. I encourage it.

EchelonFour avatar Feb 07 '13 12:02 EchelonFour

Added at the moment in my development branch Pistachitos https://github.com/mr-orange/Sick-Beard/tree/Pistachitos. Could you check if it's working? I'm not a track user. Thank you.

Mr_Orange

mr-orange avatar Feb 07 '13 17:02 mr-orange

It doesn't. You didn't merge lib/trakt/init.py and you also forgot one of the changes to webserve.py

EchelonFour avatar Feb 08 '13 04:02 EchelonFour

Thanks. Now Fixed.

mr-orange avatar Feb 08 '13 12:02 mr-orange

Hi EchelonFour have made minor gui modify on Trakt config notification page. In short word some options related to trakt watchlist are hidden/visible when trakt watch list is not flagged/flagged. Thanks again for this nice feature.

PS: this is the url of the commit: https://github.com/mr-orange/Sick-Beard/commit/f8ebbf1587104eea1cab3e61d4f44c4677f6dd72

mr-orange avatar Feb 12 '13 11:02 mr-orange

So, I still have not got this to work. Currently I do the following in order to run Sick-Beard from source and this works with no problems

cd c:\installedprograms\sick-beard git pull git://github.com/midgetspy/Sick-Beard.git git merge origin/development C:\InstalledPrograms\Python27\pythonw.exe C:\installedprograms\sick-beard\sickbeard.py

What do I need to add and where do I need to add it to the above script in order to get the EchelonFour changes into this? I have tried (and failed) to "merge" it but it seems that my lack of knoweldge regarding GIT terminology is stopping me from getting this working.

Any help would be much apprecieated.

Thanks

Harroguk

harroguk avatar Feb 15 '13 16:02 harroguk

Request. If I add a show to watchlist and trakt.tv knows the last episode I have seen and not collected. I want a choose to automatically add to wanted the next "X" number of episodes on sickbeard. I can't/won't create this myself. If someone does add this feature and submit a pull request to https://github.com/mr-orange/Sick-Beard/tree/Pistachitos . That would be great.

http://trakt.tv/api-docs/user-progress-watched http://trakt.tv/api-docs/user-progress-collected

casper-big avatar Apr 04 '13 20:04 casper-big

how this works? I enabled the trakt API key and etc but I see no option to sync/add-shows to SB database (my SB database is empty). What should I do? Connection to trakt is ok (tested)

fernandog avatar Apr 14 '13 13:04 fernandog

On the trakt site you add the show to your "watch list", that should make Sickbeard add it to your list automatically.

image

wolph avatar Apr 14 '13 13:04 wolph

I see. So I won't pick shows from my library ? Too complex to implement this? Thanks for your fast reply. I thought this option would add "Add-shows from Trakt" at the "Add shows" page.

fernandog avatar Apr 14 '13 13:04 fernandog

The current implementation simply adds everything in your watch list, seems more sensible to me anyhow. I have about 50 shows in my watched list in Trakt and I wouldn't like it to automatically start downloading series I've seen years ago and which I have no need to see again.

If you want to have a show from Trakt within Sickbeard, simply add them to your watch list and you're done :) Having a button to import them all shouldn't be too hard to implement, but... noone has done that so far.

wolph avatar Apr 14 '13 13:04 wolph

But watchlist isn't the list that I want to watch but didn't watched yet ? As far as I know whenever I mark an episode of this show as watched, trakt removes it from watchlist, I will try add to watchlist but It will better an "add shows from trakt" option. It would show the list of all shows from Library with checkboxes and then you select which one you want to add (you would do this one time only). And the watchlist is for new shows. again, thanks for your suggestion and quick reply!

fernandog avatar Apr 14 '13 13:04 fernandog

Any series that you want to watch but didn't watch yet should be downloaded, no? How can you watch it otherwise ;) And once you've watched it, what's the point of adding it to sickbeard?

Either way, it sounds like a nice feature request. Not sure if @EchelonFour wants to (and has the time to) write it, otherwise I can take a look at it but that won't be within a month as I'm fairly busy at the moment.

wolph avatar Apr 14 '13 14:04 wolph

Imagine a new user of SB that used to download from other sources/programs. There's ended shows (don't want to download again), new shows (never watched but want to download - this commits does that), and continuing shows (already watched some episodes but want to SB to get the new episodes). This feature request would help to create the SB database of continuing shows.

Let's wait for @EchelonFour reply. Just want to give my 2cents to help others new users. I will manage to add all my shows so don't need to rush this. thanks again.

fernandog avatar Apr 14 '13 14:04 fernandog

I wouldn't use it, so I probably won't write it. Sorry. Sounds like a lot of UI work that I'm not very good at.

EchelonFour avatar Apr 14 '13 14:04 EchelonFour

I understand the issue of fernandovg. But I think the solution can be much easier.

...SB database is empty..

Perhaps you don't know this. There is on option to add existing shows on your harddrive.

... pick shows from my library ? ...

A media player can do this for you. I understand this is even recommend. If you aren't using one. Start using SB and/or trakt.tv with a media player. Which builds on trak.tv a history of every TV show and movie you watch. http://trakt.tv/downloads

But the only issue I have. It doesn't distinguish Continuing shows : already watched some episodes but want SB to get the new episode(s) I have not seen. New shows : never watched but want to download first episode(s).

That's why in my previous reply I posted a request which will distinguish these. https://github.com/midgetspy/Sick-Beard/pull/401#issuecomment-15923052 Continuing shows : shows added to trakt.tv watchlist and trakt.tv knows the last episode you have watched. New shows : shows added to watchlist and trakt.tv knows I never saw an episode of that show.

Of course to make this work. A user should use "add show to trakt.tv watchlist". Only for the shows that you want to view all episodes. Which in my opinion the "add show to watchlist" should be used for.

casper-big avatar Apr 14 '13 20:04 casper-big

I'm a heavy user of XBMC for Raspberry Pi (Raspbmc - linux) with the official Trakt addon that scrobbles/mark-seen all my tv-shows and movies (I can also manage my progress). I'm trying to add SB to this "process". Also SB can send command to update XBMC library. With a Trakt app for android I can manage everything using a tablet and watch in XBMC and get notifications from SB using Notify my Android. Full integration.

fernandog avatar Apr 14 '13 22:04 fernandog

@thezoggy: when do you expect to have some time to review this pull request and merge it in? The pull still has no merge conflicts right now, but that probably won't stay forever.

wolph avatar Apr 14 '13 22:04 wolph

@fernandovg I understand you know. Somehow I had misread it. "Add shows from your trakt.tv library." Which will work like . "Add existing shows on your harddrive." And I can imagine the need for this. Also it isn't in conflict with my request or the current Trakt watchlist support.Which I previously thought.

However I find this a very different discussion than Trakt watchlist support. I found a request on googlecode about your idea. "Add existing shows from your trakt.tv library or other library (media player/website)." https://code.google.com/p/sickbeard/issues/detail?id=657

casper-big avatar Apr 15 '13 15:04 casper-big

@EchelonFour I'm getting some errors related to TRAKTWATCHLIST. I did some tests and If I'm logged to Trakt they don't appear or appear very often. If I'm not connected, they appear frequently. Maybe a problem with cookies/storage or authentication? This feature is adding ok the tv-shows but I get this errors. If you need some more testing or anything count with me

http://img560.imageshack.us/img560/5738/logup.png

fernandog avatar May 07 '13 11:05 fernandog

If it works some of the time then there is nothing I can do and the issue is that the trakt server is unreliable. To combat this I recommend donating to trakt and becoming a VIP so they can afford better servers. If it never works then you probably got your username, password or api key wrong.

EchelonFour avatar May 07 '13 12:05 EchelonFour

Thanks for your fast reply. I'm already VIP. =) How often this feature does requests to trakt API? Does is it handle the error "is crunching data from the insane amount of tv shows and movies you guys watch, please wait a moment then try again" thanks!

fernandog avatar May 07 '13 12:05 fernandog

I think it runs every 30 minutes. The way it is handling server error is by stopping the check and printing that error in the log.

EchelonFour avatar May 07 '13 12:05 EchelonFour

Is it possible to print to the log the return message(error message) from trakt api, so users can distinguish from password/api errors from "chunching" errors? Or change the log error text to "is crunching data..." thansk

XBMC Trakt addon handles it. Don't know if you can port the code: https://github.com/rectifyer/script.trakt/blob/master/traktapi.py Line 64

fernandog avatar May 07 '13 12:05 fernandog

I tried to edit in init.py file to check the 503 error so traktWatchListChecker.py can distinguish the errors but I couldn't...

Why this don't work? Tried 503, "crunching", etc.. I got nothing at log with "Error 503". I imported logger again. resp = json.loads(resp) if ("503" in resp): raise Exception(resp["error"]) logger.log("Error 503")

help me? thanks

fernandog avatar May 07 '13 16:05 fernandog

Sounds great

nikotime avatar May 28 '13 22:05 nikotime

Would LOVE to see this... In both Master and Anime.

Trixter69 avatar Jun 28 '13 07:06 Trixter69

Hello there, I get this error, can anyone help me? ERROR::TRAKTWATCHLIST :: No default root directory

tallnato avatar Aug 10 '13 16:08 tallnato

Please pull this in to the main code!

marchelh avatar May 01 '14 12:05 marchelh

I am running from release version, not source. I would pull this branch and set that up, but I am not sure if this branch has been maintained over the years, and I am pretty sure this won't work anymore with the Trakt v2.0 API out.

Can anyone give an update on this?

cyrus-za avatar Apr 06 '15 10:04 cyrus-za

Have a look at Sick Rage - it has working trakt support. On Mon, 6 Apr 2015 at 11:52, cyrus-za [email protected] wrote:

I am running from release version, not source. I would pull this branch and set that up, but I am not sure if this branch has been maintained over the years, and I am pretty sure this won't work anymore with the Trakt v2.0 API out.

Can anyone give an update on this?

— Reply to this email directly or view it on GitHub https://github.com/midgetspy/Sick-Beard/pull/401#issuecomment-90015447.

nikotime avatar Apr 06 '15 11:04 nikotime

Agreed with @nikotime, Sickrage has all of the features that never got merged into Sickbeard, Sickbeard is not a bad system but if you want more features and/or want earlier access to them, try Sickrage instead.

Long story short: Reliable and steady: sickbeard Lots of features with some bugs at times: sickrage

wolph avatar Apr 06 '15 16:04 wolph

Or Sonarr for something a little different!

On Mon, Apr 6, 2015 at 5:43 PM Rick van Hattem [email protected] wrote:

Agreed with @nikotime https://github.com/nikotime, Sickrage has all of the features that never got merged into Sickbeard, Sickbeard is not a bad system but if you want more features and/or want earlier access to them, try Sickrage instead.

Long story short: Reliable and steady: sickbeard Lots of features with some bugs at times: sickrage

— Reply to this email directly or view it on GitHub https://github.com/midgetspy/Sick-Beard/pull/401#issuecomment-90143873.

nikotime avatar Apr 06 '15 20:04 nikotime

Forgive me, but has this been implemented?

djrarky avatar Apr 12 '15 02:04 djrarky