Git Product home page Git Product logo

script.trakt's People

Contributors

aktur avatar dpons039 avatar ineffablebob avatar jacaru avatar kodiweblate avatar linust avatar lunatixz avatar mafarricos avatar martijnkaijser avatar mesoptier avatar n3mis15 avatar nate1280 avatar oliv3r avatar razzeee avatar rectifyer avatar ronie avatar rudf0rd avatar s7eele avatar seadog avatar sload89 avatar snagytx avatar sschocke avatar struart avatar tamland avatar tknorris avatar veronit avatar vonh avatar vpnservercc avatar weblate avatar zelkami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

script.trakt's Issues

Script failed! : syn_exec.py

Getting this with the latest git pull from this repo and @N3MIS15 on every run and nothings getting sync'd. It's not scrobbling either.

Th only setting I do not have active is the one that will remove stuff from trakt.tv - I don't want to do that.

Here is the failure from my XBMC Log
http://pastebin.com/MQF35AwN

Unhashed password being sent to server

I am a bit confused about a change in the utilities.py source regarding the requests to the Trakt API

base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
req.add_header("Authorization", "Basic %s" % base64string)

This piece of code seems to send my password, in cleartext, to the API. I know that it's base64 encoded, so not really cleartext, and that the request is done via SSL, so technically encrypted and not readable by 3rd parties...
But, the server on the other side is still receiving my password in cleartext. Shouldn't it be expecting an SHA1 hash as per http://trakt.tv/api-docs/authentication

[XBMC] Wrong show scrobbled

Cross-posted on request.

Every time I watch a certain show (tvdbid 102261), instead some Norwegian sex show (tvdbid 206341) shows up on my profile. http://trakt.tv/user/brtkrbzhnv

In XBMC, the correct information from thetvdb is shown.

I'm guessing what happens is something like {title:u"化物語", ...} gets submitted, somewhere the non-ASCII gets removed, and then Trakt thinks it's the same as that Norwegian sex show because that one for some reason doesn't have a title on Trakt.

Here's from my xbmc.log:
9:45:20 T:5680 NOTICE: DVDPlayer: Opening: G:\tv\ja\化物語\Bakemonogatari[Coalgirls]Bakemonogatari_05(1280x720_Blu-Ray_FLAC)_[03DE5070].mkv
19:45:20 T:5680 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
[...]
19:45:24 T:4724 NOTICE: [trakt] [Notification Service] message: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"id":2891,"type":"episode"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
19:45:24 T:4724 NOTICE: [trakt] [Scrobbler] Watching: episode
19:45:25 T:4724 NOTICE: [trakt] json url: /show/watching/b6135e0f7510a44021fac8c03c36c81a17be35d9
19:45:25 T:4724 NOTICE: [trakt] [Scrobbler] Watch response: {u'status': u'success', u'episode': {u'number': 5, u'title': u'Sexleket\xf8y'}, u'show': {u'tvdb_id': u'206341', u'year': u'2010', u'imdb_id': u'', u'title': u''}, u'season': 1, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching 1x05'}

Library scan "issue"

Hello,

There seems that when running a library Scan, the plugin goes crazy.

The addon I have was downloaded 12h ago (I think the lastest)

When I run a library scan or I update the library my XBMC log goes crazy....

http://pastebin.com/xd30aLMw

I'm using RaspBMC

Sync Issues

Hello,

I'm experiencing a couple of issues,

1st. It doesn't matter how many times I run the sync, it will always mark there there's 1 movie left to sync.

2nd. Script fails when fetching the series at trakt.tv

Log: http://pastebin.com/qpB2K5Zj

RaspberryPI with OpenELEC latest update

KR,
David

res element in addon.xml

I was looking in my log file and noticed:
09:58:28 T:140589714634496 DEBUG: ADDON: cpluff: 'Suspicious plug-in descriptor content in /home/andy/.xbmc/addons/script.traktutilities/addon.xml, line 14, column 5 (ignoring unexpected element res and its contents).'

I assume your plugin has the same issue (since you're using the res tag too) though I don't know what the fix is, since the element's being ignored anyway maybe it's fine to just remove it and let xbmc find the resources automatically?

No scrobbling for queued items

When you queue, e.g., a whole season for viewing, only the last seen episode is scrobbled.

This is due to the fact that the is no (more?) OnStop notif between episodes. You get:
OnPlay
OnPlay
OnPlay
OnStop

Scrobbling is only done on "OnStop", so only the last ep is sent.

Modifications and improvements.

Hello guys,

I had some time to check out the latest updates and so on. This is a small list of things that should be improved/fixed and that also will help the end-user.

  1. String 1416 is not clear, it's supposed to mark as watched automatically when marked on XBMC (Sync automatically marked as watched in XBMC to trak.tv - Automatically add XBMC marked as watched to trakt.tv)
    I have also tried this, and it's not working for me. // I'm using the repo version
  2. On Debug between strings 1701 and 1702 should be one sub-menu called: For testing Purposes
    This will avoid having to put that on each one of the next items.
  3. Run timing test should be on another sub-menu as executable test or something similar
    My first impression was that I couldn't mark it as yes-no.
  4. Is there any way to sort of a loading mark from the moment that you click on the app for manual update?
    Sometimes it takes up to 20 secs to open and usually after the automatic update it would not open until a system reboot is executed.
  5. When doing the manual sync. for the movies is only 1 line, for series is 2 lines.
    Both should have 2 lines, as it provides better compatibility with other skins. With my current skin I can see the details for the Series sync, not for the movie sync.
  6. Cancel button. It will ever work, or it's XBMC default behaviour

Let me know if you need more information or screenshots.

KR,
David

error: [Errno 111] Connection refused

Stopped working a few months ago...

07:55:38 T:3028282224 ERROR: /home/xbmc/.xbmc/addons/script.trakt/utilities.py:19: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha # Python 2.5 and earlier
07:55:38 T:3019889520 NOTICE: -->Python Interpreter Initialized<--
07:55:38 T:3028282224 NOTICE: [trakt] loading script.trakt version 1.0.1
07:55:38 T:3028282224 NOTICE: [trakt] json url: /account/test/Commit:b6135e0
07:55:38 T:2994711408 ERROR: Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in bootstrap_inner
self.run()
File "/home/xbmc/.xbmc/addons/script.trakt/notification_service.py", line 66, in run
telnet = telnetlib.Telnet(self.TELNET_ADDRESS, self.TELNET_PORT)
File "/usr/lib/python2.6/telnetlib.py", line 209, in __init

self.open(host, port, timeout)
File "/usr/lib/python2.6/telnetlib.py", line 225, in open
self.sock = socket.create_connection((host, port), timeout)
File "/usr/lib/python2.6/socket.py", line 514, in create_connection
raise error, msg
error: [Errno 111] Connection refused
07:55:43 T:2986318704 NOTICE: [trakt] Scrobbler stopping

I can confirm 9090 isn't being used by something else and xbmc is listening fine (netstat -ln | grep 9090), and "Allow programs on this system to control XBMC" is also checked. I have tried telnetting to port 9090 and I can connect successfully.

Can anyone help troubleshoot this?

Not detecting LiveTV / PVR use

Unsure if this has been looked into as cannot find documentation to support it.
The trakt script appears to detect that livetv is starting to be watched (In my case using TVHeadend and pvr.hts client in XBMC), but then almost immediately stops.

Code in debugging appears to show that the script.trakt isn't picking up on the data correctly, which may need some add-on tweaking to integrate with pvr plug-ins.
Happy to assist in coding if this is something that would make sense?

14:57:06 T:3016709888 DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/All TV channels/1.pvr)
14:57:06 T:3016709888 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
14:57:06 T:3016709888 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
14:57:06 T:3016709888 DEBUG: Building didl for object 'pvr://channels/tv/All TV channels/1.pvr'
14:57:06 T:2978999104 NOTICE: [trakt] [Notification Service] message: {u'params': {u'data': {u'item': {u'channeltype': u'tv', u'type': u'channel', u'id': 4, u'title': u'BBC Two England'}, u'player': {u'playerid': 1, u'speed': 1}}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Player.OnPlay'}
14:57:06 T:2978999104 NOTICE: [trakt] [Scrobbler] Watching: channel
14:57:06 T:2978999104 DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0xb8dc5a0
14:57:06 T:2978999104 NOTICE: [trakt] [Scrobbler] Suddenly stopped watching item

So it appears the trakt notification is only picking up the basic info for the channel and not the extended info that would contain the program name being watched for accurate trakt logging.

Pls get in touch if I can assist

How do streaming plugins add support for Trakt?

Hi. I do some development on the iPlayer plugin for xbmc, and we've had a feature request for trakt support. I was wondering how trakt reads metadata for remote streams not in the (local) xbmc video library? If it's possible to provide this metadata in a way which does not involve the VideoLibrary, I'd be interested in adding that functionality.

English language strings and translation.

Hey guys, it's me or there's a lot of duplicates in the English strings?

for the:

Now there is almost 2x lines, most of them are duplicated or the only difference is how it's written.

The new lines are from: 1460 till 1498.

Could any verify what lines are beeing used and by what, so that also that can be separated in:
Service notifications
Program notifications
Other notification

I have hte spanish version up-to-date without the lines 1460-1498.
Justin, when will u submit the update to the repo?

second xbmc install is not synchronized

Version 2, in xbmc repo.

Even if the option "sync after library updates" is enabled episodes are not synchronized in a second xbmc 12 installation.
I still need to run manually the trakt program, this is the only way to make synchronization process start.

I expected an automatic sync at startup, after libraries are scanned.

here's the log of xbmc startup (trakt log is at the bottom of the file): http://pastebin.com/K4Wp2wPU

and this is the log after running trakt manually (in the same xbmc session): http://pastebin.com/qeqtcDfB

Script failed to start

Running a Tronsmart T428 (Android mini PC) over Wifi with the latest build of XBMC. I've got good video playback and network connectivity, but the Trakt addon doesnt seem to work.

Ive done the following:

  • Installed the trakt app through the xbmc repo.
  • Set the username/password
  • Added 2 samba maps to my library and both have metadata.

Is this is a bug on Android or what? I've searched for xbmc logs but i couldnt find any on my filesystem. Searched in /data/data and on external storage.

Exclude settings doesn't work.

Last night i updated my system to OpenELEC 3.0.1 and noticed that the exclude setting didn't work anymore. Did various checks on pvr, http and path options but none of them seems to work. When i downgrade to version =<3.0 it's working again.

I also tested it on a Windows machine with various installations that are equal to OpenELEC and or are latest Gotham releases and again exclude not working.

I think it has something to do with the fullpath.find command.

This is a snippet from debug logging, you see it checking for exclusion but then nothing happens it jumps straight to the rest of the process as it would do if it wasn't excluded.

11:47:56 T:3528 NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'item': {u'filetype': u'file', u'type': u'movie', u'id': 4, u'label': u'Argo'}}
11:47:56 T:3528 NOTICE: [trakt] checkScrobblingExclusion(): Checking exclusion settings for 'D:\videos\http\Argo.2012.720p.BluRay.x264-SPARKS\argo.http.avi'.
11:47:56 T:3528 NOTICE: [trakt] Queuing for dispatch: {'action': 'started', 'type': u'movie', 'id': 4}
11:47:56 T:3528 NOTICE: [trakt] Queued dispatch: {'action': 'started', 'type': u'movie', 'id': 4}
11:47:56 T:3528 NOTICE: [trakt] Dispatch: {'action': 'started', 'type': u'movie', 'id': 4}
11:47:56 T:3528 NOTICE: [trakt] [Scrobbler] playbackStarted(data: {'type': u'movie', 'id': 4})
11:47:56 T:3528 NOTICE: [trakt] [Scrobbler] Watching: movie

The file used is a dummy test file to check both path and http/pvr exclude functions.

support for absolute numbering/naming

hi I have a question about the plugin. will it work for anime that is named in absolute order rather than season order? TU requires that they are in season naming which has forced me to rename my anime (which I would love to be able to return to absolute ordering).
cheers

No sync via unique id

I just started to use the new uniqueid feature in order to use my own order of episodes. When scrobbling, the plugin maps to the right episode on trakt.tv. When I sync my collection or watched status, the log says everything is up to date.

Some information about one of those episodes:

filename: Columbo - S13E05 - Die letzte Party.{avi, nfo}
nfo-content (reduced)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<episodedetails>
    <title>Die letzte Party</title>
    <showtitle>Columbo</showtitle>
    <season>13</season>
    <episode>5</episode>
    <uniqueid>2334461</uniqueid>
</episodedetails>

These details are imported correctly. I have checked this directly in the database. The episode should map to S00E08 (Specials) on trakt.tv (http://trakt.tv/show/columbo/specials/episode/8).

While watching the episode, the scrobbling produces following log:

04:10:53 T:78260  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'item': {u'type': u'episode', u'id': 2560, u'label': u'05. Die letzte Party'}}
04:10:53 T:78260  NOTICE: [trakt] checkScrobblingExclusion(): Checking exclusion settings for 'I:\Columbo\Season 13\Columbo - S13E05 - Die letzte Party.avi'
04:10:53 T:78260  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - Doing multi-part episode check.
04:10:53 T:78260  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'episodedetails': {u'season': 13, u'tvshowid': 164, u'episode': 5, u'episodeid': 2560, u'label': u'Die letzte Party'}}
04:10:53 T:78260  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'episodes': [{u'episode': 1, u'episodeid': 2556, u'file': u'I:\\Columbo\\Season 13\\Columbo - S13E01 - Seltsame Bettgenossen.avi', u'label': u'13x01. Strange Bedfellows'}, {u'episode': 2, u'episodeid': 2557, u'file': u'I:\\Columbo\\Season 13\\Columbo - S13E02 - Keine Spur ist sicher.avi', u'label': u'13x02. Keine Spur ist sicher'}, {u'episode': 3, u'episodeid': 2558, u'file': u'I:\\Columbo\\Season 13\\Columbo - S13E03 - Das Aschenpuzzle.avi', u'label': u'13x03. Das Aschenpuzzle'}, {u'episode': 4, u'episodeid': 2559, u'file': u'I:\\Columbo\\Season 13\\Columbo - S13E04 - Mord nach Takten.avi', u'label': u'13x04. Mord nach Takten'}, {u'episode': 5, u'episodeid': 2560, u'file': u'I:\\Columbo\\Season 13\\Columbo - S13E05 - Die letzte Party.avi', u'label': u'13x05. Die letzte Party'}], u'limits': {u'start': 0, u'total': 5, u'end': 5}}
04:10:53 T:78260  NOTICE: [trakt] [Notification] Dispatch: {'action': 'started', 'type': u'episode', 'id': 2560}
04:10:54 T:78260  NOTICE: [trakt] [Scrobbler] playbackStarted(data: {'item': {'type': u'episode', 'id': 2560}})
04:10:54 T:78260  NOTICE: [trakt] [Scrobbler] Watching: episode
04:10:55 T:78260  NOTICE: [trakt] [Scrobbler] watching()
04:10:55 T:78260  NOTICE: [trakt] [VideoLibrary.GetEpisodeDetails] {"id":1,"jsonrpc":"2.0","result":{"episodedetails":{"episode":5,"episodeid":2560,"label":"Die letzte Party","season":13,"showtitle":"Columbo","tvshowid":164,"uniqueid":{"unknown":"2334461"}}}}
04:10:55 T:78260  NOTICE: [trakt] [VideoLibrary.GetTVShowDetails] {"id":1,"jsonrpc":"2.0","result":{"tvshowdetails":{"imdbnumber":"70369","label":"Columbo","tvshowid":164,"year":0}}}
04:10:55 T:78260  NOTICE: [trakt] [traktAPI] watching(url: https://api.trakt.tv/show/watching/b6135e0f7510a44021fac8c03c36c81a17be35d9, data: {'episode': 5, 'episode_tvdb_id': u'2334461', 'progress': 19.0, 'title': u'Columbo', 'duration': 85.0, 'season': 13, 'tvdb_id': u'70369', 'year': 0})
04:10:55 T:78260  NOTICE: [trakt] [traktAPI] traktRequest(): Request data: '{"episode": 5, "episode_tvdb_id": "2334461", "progress": 19.0, "title": "Columbo", "duration": 85.0, "season": 13, "tvdb_id": "70369", "year": 0}'
04:10:55 T:78260  NOTICE: [trakt] [traktAPI] traktRequest(): Starting retry loop, maximum 5 retries.
04:10:55 T:78260  NOTICE: [trakt] [traktAPI] traktRequest(): (0) Request URL 'https://api.trakt.tv/show/watching/b6135e0f7510a44021fac8c03c36c81a17be35d9'
04:10:55 T:78260  NOTICE: [trakt] [traktAPI] __getData(): urllib2.Request(https://api.trakt.tv/show/watching/b6135e0f7510a44021fac8c03c36c81a17be35d9)
04:10:55 T:78260  NOTICE: [trakt] [traktAPI] __getData(): urllib2.urlopen()
04:11:02 T:78260  NOTICE: [trakt] [traktAPI] __getData(): response.read()
04:11:02 T:78260  NOTICE: [trakt] [traktAPI] __getData(): Response Code: 200
04:11:02 T:78260  NOTICE: [trakt] [traktAPI] __getData(): Response Time: 7239.00 ms
04:11:02 T:78260  NOTICE: [trakt] [traktAPI] __getData(): Response Headers: {'content-length': '259', 'x-powered-by': 'PHP/5.3.18-1~dotdeb.0', 'vary': 'Accept-Encoding', 'server': 'nginx/1.2.7', 'connection': 'Close', 'date': 'Fri, 29 Mar 2013 03:10:41 GMT', 'content-type': 'application/json'}
04:11:02 T:78260  NOTICE: [trakt] [traktAPI] traktRequest(): (0) JSON response: '{u'status': u'success', u'episode': {u'number': u'8', u'title': u'Columbo Likes the Nightlife'}, u'show': {u'tvdb_id': u'70369', u'year': u'1968', u'imdb_id': u'tt1466074', u'title': u'Columbo'}, u'season': u'0', u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching Columbo 0x08'}'
04:11:02 T:78260  NOTICE: [trakt] [traktAPI] traktRequest(): JSON request was successful.
04:11:02 T:78260  NOTICE: [trakt] [Scrobbler] Watch response: {u'status': u'success', u'episode': {u'number': u'8', u'title': u'Columbo Likes the Nightlife'}, u'show': {u'tvdb_id': u'70369', u'year': u'1968', u'imdb_id': u'tt1466074', u'title': u'Columbo'}, u'season': u'0', u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching Columbo 0x08'}
04:11:38 T:50220  NOTICE: Thread CFileCache start, auto delete: false

Since scrobbling works, it can be assumed, the library entry and uniqueid are correct. When syncing, the mapping via id is broken. I do not know python very well (I'm into C/C++/Java), but I could narrow it down to the function compare_show(xbmc_show, trakt_show). I have enhanced the function with further debuginformation:

def compare_show(xbmc_show, trakt_show):
    missing = []
    trakt_seasons = [x['season'] for x in trakt_show['seasons']]

    for xbmc_episode in xbmc_show['episodes']:
        Debug("[Episodes Sync] xbmc_episode: '%s'" % str(xbmc_episode))
        if xbmc_episode['season'] not in trakt_seasons:
            Debug("[Episodes Sync]   missing")
            missing.append(xbmc_episode)
        else:
            Debug("[Episodes Sync]   not missing")
            for trakt_season in trakt_show['seasons']:
                Debug("[Episodes Sync]     trakt_season: '%s'" % str(trakt_season))
                if xbmc_episode['season'] == trakt_season['season']:
                    Debug("[Episodes Sync]       first if")
                    if xbmc_episode['episode'] not in trakt_season['episodes']:
                        Debug("[Episodes Sync]       second if --> append")
                        missing.append(xbmc_episode)

    return missing

and the result is

04:31:36 T:78260  NOTICE: [trakt] [Episodes Sync] xbmc_episode: '{u'episode': 5, u'season': 13, u'episodeid': 2560, u'label': u'13x05. Die letzte Party', u'uniqueid': {u'unknown': u'2334461'}, u'playcount': 1}'
04:31:36 T:78260  NOTICE: [trakt] [Episodes Sync]   not missing
04:31:36 T:78260  NOTICE: [trakt] [Episodes Sync] xbmc_episode: '{u'episode': 1, u'season': 1, u'episodeid': 1048, u'label': u'1x01. Die Kugel der Macht (Pilot)', u'uniqueid': {u'unknown': u''}, u'playcount': 1}'

So it takes the else branch, but doesn't enter the for loop and the episode is not registered in missing. I think this method should first compare by unique id if available and by season/episode if not.

If you need a better debug log, provide a snippet with logging instruction, I will run it then.

use TVDB ID when scrobbling

Movie correctly send the IMDB, but it looks like TV shows send None for the tvdb_id field. Adding the ID should improve accuracy a lot.

Series removed from watchlist after viewing one episode

Seems that after watching an episode, the series is removed from the watchlist. Not sure if this is an issue with trakt or this plugin, however, the action is undesirable since (a) unwatched episodes may still exist, and (b) future episodes can be released.

Please close out if this is an issue with trakt website, and I'll open a feature request/issue there instead.

error tv sync.

hi,

i got this error the last few days, don,'t know why but tv sync isn't working anymore.

17:04:06 T:2929720128 ERROR: Exception in thread trakt-sync:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/home/xbmc/.xbmc/addons/script.trakt-master/service.py", line 138, in run
sync.sync()
File "/home/xbmc/.xbmc/addons/script.trakt-master/sync.py", line 641, in sync
self.syncEpisodes()
File "/home/xbmc/.xbmc/addons/script.trakt-master/sync.py", line 358, in syncEpisodes
xbmcShows = self.xbmcLoadShows()
File "/home/xbmc/.xbmc/addons/script.trakt-master/sync.py", line 127, in xbmcLoadShows
episodes = data['episodes']
KeyError: 'episodes'

Upnp/Remote Sources doens't scrobble on Frodo

using the github version, when i try to open an show/movie on a upnp xbmc share (added as source/aready with all metadata), it doesn't scrobble or show the rate dialog after watchng. and the log shows some error in: "trakt-master/service.py", line 327, in onPlayBackStarted"

the log: http://cl.ly/OgT3/xbmc.log

crash on movie end/stop

1:28:47 T:3037346496 NOTICE: Storing total System Uptime 21:28:47 T:3037346496 NOTICE: Saving settings 21:28:47 T:2940205888 NOTICE: [trakt] [Notification Service] message: {u'params': {u'data': 64, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'System.OnQuit'} 21:28:47 T:2940205888 NOTICE: [trakt] Notification service stopping 21:28:47 T:3037346496 NOTICE: stop all 21:28:47 T:3037346496 NOTICE: ES: Stopping event server 21:28:47 T:3037346496 NOTICE: stopping zeroconf publishing 21:28:47 T:3037346496 NOTICE: Webserver: Stopping... 21:28:47 T:3037346496 NOTICE: WebServer: Stopped the webserver 21:28:47 T:3037346496 NOTICE: Webserver: Stopped... 21:28:48 T:2842663744 NOTICE: ES: UDP Event server stopped 21:28:48 T:3037346496 NOTICE: stop dvd detect media 21:28:48 T:3037346496 NOTICE: stop sap announcement listener 21:28:48 T:3037346496 NOTICE: clean cached files! 21:28:48 T:3037346496 NOTICE: unload skin 21:28:49 T:2966809408 WARNING: The python script "/home/xbmc/.xbmc/addons/service.skin.widgets/default.py" has left several classes in memory that we couldn't clean up. The classes include: Window,Player,Monitor 21:28:50 T:2950024000 NOTICE: [trakt] Scrobbler stopping 21:28:50 T:2893019968 NOTICE: StorageServer-2.5.0 Closed down 21:28:50 T:3037346496 NOTICE: stop python

I know it doesn't seem like a trakt problem, but it only happens when the plugin is enabled.

Scrobble-spam in Realtime feed at Trakt.tv

When I'm watching movies or shows, everyone that follows me get a notification on their realtime feed (Dashboard @ trakt.tv), that "Arias is watching ..". Thats great, the only problem is that when I'm watching stuff using XBMC with this addon, it seems to spam with these notifications..

Couple of weeks ago I though that the people I'm following where doing something wrong, because they where filling my dashboard with the same info over and over again.
But then I added myself to the Dashboard ("All friends + me") and started to realize that I was spamming the same way.

traktspam

Optional setting to hide notifications while playback

I have the watchdog addon installed and so every time while I download episodes the sync notifications of trakt pop up. Generally this is wanted but not while I am watching movies. Is it possible to add a setting: Disable Notifications while playback?

[Suggestion] Ability to rate in the menu

I think it would be great if when I'm looking at my movies/shows and the ones I already watched. I could hit the information button and rate the episode or movie from right there, instead of having to watch the media before submitting a rating.

Thanks,
Angel

Missing movies between XBMC and Trakt

Hello,

Some feedbacks.

After some syncronizations...

Trakt Movies: 392
XBMC Movies: 432

Trakt is missing some movies, but I can't know wich ones, there's no information at the log file from xbmc.


Trakt Shows: 70
XBMC Shows: 79

Some series appear to be missing, the script can't find series in trakt. Check log.


Log from XBMC:

http://pastebin.com/8mCaUsgs

And it keep for a couple hours on the last step.....

PS: I'm not sure what Clean library should do... My common sense says that should make trakt and xbmc library to look the same. I'm wrong?

Trakt: dpons039

Multipart files handling

Hi guys,

XBMC has stacking of multi-part files.

Current version of trakt plugin handles it almost as it should.
The only problem is - rate dialogue pops up each time the part ends starting from part 2 or 3, depending on your rate percentage option. I'm not sure but I think the same happens with scrobble - it's scrobbled each time file ends if stacked length is more then percent value in options. Gonna test that now.

More info on stacking: http://wiki.xbmc.org/index.php?title=File_stacking

Failure if no movies in library

I have no movies in my library, only TV shows.
With default options the update process fails (when invoked directly from PROGRAMS menu) because the movie collection is empty.
Actually if the movie collection is empty the movie update process should not start, but only the TV shows update process (and vice-versa)

version: downloaded directly from github.

Over complex scrobbler?

I've been looking at refactoring the scrobbler on traktr and I'm wondering if it's worth scrapping the whole "keep track using system time" method and just check the video position when playback ends/is stopped or you need to send a ping to trakt.tv.

http://wiki.xbmc.org/index.php?title=InfoLabels has methods to do this (and I think using those might solve a potential external player issue too if the infolabel's intelligent enough to do that, since people have told me that when using an external player in traktr it doesn't scrobble).

The only real problem case for doing it this way is if someone starts a video, seeks past their "% watched to scrobble" then ends it, but I have no idea why someone would do that.

ExcludePath not working with full sync

When configuring exclude path, thoses paths are properly checked and skipped when scrobbling videos.

But if I do a full sync, then all videos that should be excluded are sent to trakt. So It looks like exclusion path are not checked at all when doing a full sync. Any idea how to properly excluse some path from scrobbling AND full sync?

Couldn't log in

Trakt utilities for XBMC shows me message, that my username or password incorrect (but it isn't). I tried reinput username and password, changing pass on site, restarting XBMC. It doesn't help. XBMC version 11.0

Empty trakt collection breaks sync

When a user has nothing in his library at trakt, the response from trakt is '[]' when doing an api call. This results synchronization to break with TypeError's.

  • Movies sync:
    TypeError: 'NoneType' object is not iterable
  • Shows sync:
    TypeError: object of type 'NoneType' has no len()

[feature request] Excluded locations

Original version of this script included setting to set few excluded locations (like live tv, online video addon or local country content not on tvdb/tmdb, local trailers etc...) which were not submitted/processed further to trakt if you played a video from them.
Is it please possible to bring this feature back. It's essential feature if you don't want every video activity being monitored and sent to trakt. Thanks Ez.

Crashes when not using sqlite for the video database

When using mysql as a central database, this error occurs:

23:28:46 T:4544794624   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: unable to open database file
                                            Traceback (most recent call last):
                                              File "/Users/jandjmarshall/Library/Application Support/XBMC/addons/script.trakt/default.py", line 6, in <module>
                                                from service import traktService
                                              File "/Users/jandjmarshall/Library/Application Support/XBMC/addons/script.trakt/service.py", line 20, in <module>
                                                class traktService:
                                              File "/Users/jandjmarshall/Library/Application Support/XBMC/addons/script.trakt/service.py", line 27, in traktService
                                                dispatchQueue = queue.SqliteQueue()
                                              File "/Users/jandjmarshall/Library/Application Support/XBMC/addons/script.trakt/queue.py", line 56, in __init__
                                                with self._get_conn() as conn:
                                              File "/Users/jandjmarshall/Library/Application Support/XBMC/addons/script.trakt/queue.py", line 72, in _get_conn
                                                self._connection_cache[id] = sqlite3.Connection(self.path, timeout=60)
                                            OperationalError: unable to open database file
                                            -->End of Python script error report<--

Trigger sync by hand

Since there seems to be no notification in xbmc for marking a video as watched it would be great to be able to sync the collection to trakt by hand.

Scenario:

  • Scan your library -> gets synced
  • Mark videos as watched to keep track in xbmc -> doesn't get synced
  • Rescan library, nothing new -> doesn't get synced

Thanks!

Blank Video While Audio Continues

About 30% of the time, when i start playing a video, the screen goes blank while audio continues in the background. The video cannot be stopped. The only way to solve the problem is to restart XBMC. I had a similar issue with trakt utilities until I discovered it was an incomparability between it and the TV Show Next Aired addon. However, I have tried disabling Next Aired and it still happens, so disabling the trakt addon is the only way to prevent this from happening.

Translation

Hello boys!!

Could any of you correct the English version with the used phrases so I could translate it into Spanish.

I found several duplicated, so I'm not sure what is used or not.

Regards,
Dave

Remove HTTP support

In traktr I removed the ability to use the plugin over HTTP because of the fact that someone can grab the password's sha hash when HTTPS isn't used, it seems that it'd be worth removing HTTP support in your plugin too?

Trakt plugin seems to be removing shows from trakt watchlist?

I've not caught this yet to be able to post a log or anything substantive, so apologies if this is noise. I wanted to give a heads-up in case you can find it in code before I can get any debug here. I'll try and get something as soon as I can but this is pretty difficult to trakt down.

Shows have been disappearing randomly from my trakt watchlist. Certain shows (the ones I watch most) seem to do it very regularly now. At the end of last week I had 30 shows on my watchlist, now I'm down to 24. I'm pretty sure it might be the trakt plugin doing it during sync. I also have flexget synced to my trakt watchlist so the only other option is flexget, but that is read only on the watchlist.

Has anyone else seen this?

Advanced Ratings

Please, give to selected rate more focus, it's a little dificult to realize which rate is selected when the dialog panel opens, mabe change a little the images "_b"

Trakt XBMC-addon refuse to... "trakt"?

Hello everyone!

About three weeks ago - after using XBMC for a couple of years, I decided to do a full "tabula rasa" install a fresh copy of XBMC 12.0 (not the RC) instead of just updating it.

So, I wiped every trace of XBMC, including library stuff (OSX) and emptied recycle bin!

Re-installed with focus on just using genuine XBMC addon repository - especially since I heard that the latest 2.0.0 Trakt-addon was awesome.

Alas - ever since, I cannot get my trakt to do anything!

  • I´ve double- and triple-checked my login-details on Trakt.tv - no change!
  • I´ve uninstalled/re-installed the repository Trakt 2.0.0 addon - no change!
  • I´ve used all combos of debug/https - no change!
  • I´ve uninstalled and deleted all trakt-related files that I could find in the XBMC library THEN re-installed - no change!
  • I´ve changed the settings about what playcounts to update(with the exception of updating collection, since I do not want that), sync after library updates (and done that), show/no show notifications etc. - no change!
  • I´ve installed with/without pressing "launch" efter it´s done - no change!

...in the end - I never get a notification that announce anything in XBMC OR get an updet on my Trakt-profile.

However:
a) Even though I uninstall, wipe files etc. the fresh install still knows my login by default. What files am I missing?
b) My friend that did a simular thing a week before me says that the config for scobbling should be much more than three lines???

Please help, you´re my only hope!

Update broke it.

Since today's update, this addon has stopped working in its entirety. Nothing works, scrobbling, synce, nothing.
The addon doesn't even get a mention in the log file.
What's happened? This addon is one of the sole reasons I use XBMC at all!!

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.