trakt / script.trakt

Trakt.tv movie and TV show scrobbler for Kodi
GNU General Public License v2.0
322 stars 149 forks source link

No scrobble on XBMC 14 #180

Closed iClosedz closed 10 years ago

iClosedz commented 10 years ago

I do the thing follow this on XBMC

Navigate to Settings > Add-ons > Enabled add-ons > Services > trakt
Select trakt and go to Configure
Enter your username, password, and change any other settings as needed
Select OK to save your settings
Watch something and see it show up on trakt.tv!

it not error show.

when I watched video on my hdd it not thing going to trakt It show You haven't watched anything :(

Mafarricos commented 10 years ago

Your movies are added to the library with a movie scrapper?

iClosedz commented 10 years ago

how to add it ? I can't lunch the trakt addon I just can config it

Thank for answer.

Mafarricos commented 10 years ago

It's on xbmc, not in trakt.

iClosedz commented 10 years ago

OK. I watched tvshow on Go addon and it scrape.

I have question about the name to trakt for scrape

how to create a name that trakt can scrape ?

on setInfo(...) - Video Values:
http://mirrors.xbmc.org/docs/python-docs/13.0-gotham/xbmcgui.html#ListItem-setInfo

and the pattern of the name ? ex. name ep 1 - 1 name episode 01x01

Thank you.

iClosedz commented 10 years ago

so I test on my xbmc with

- Video Values:
   'tvshowtitle': name

Falling Skies Season 1 EP 1 not scrape Falling Skies 1x01 scrape

on script.trakt / utilities.py

'Season ([0-9]+) - Episode ([0-9]+)[^\\/]*',              # Season 01 - Episode 02
'Season ([0-9]+) Episode ([0-9]+)[^\\/]*',                # Season 01 Episode 02

Can I pull request ? with

'Season ([0-9]+) - EP ([0-9]+)[^\\/]*'         # Season 01 - EP 02
'Season ([0-9]+) EP ([0-9]+)[^\\/]*'           # Season 01 EP 02

and last thing how can scrape the movie I try

- Video Values:
   'title': The Amazing Spider-Man 2
http://mirrors.xbmc.org/docs/python-docs/13.0-gotham/xbmcgui.html#ListItem-setInfo

it doesn't scrape

Thank you.

nate1280 commented 10 years ago

XBMC 14 is still in alpha, until it reaches a beta status, or even RC status, I really have no intentions of testing the current code base against it.

The regex in the addon is meant for non-library items. So if you're not using the built in scrapers for your local media, you really should be.

Aside from this, logs are the only way to really debug something.

iClosedz commented 10 years ago

OK. my add-on like VOD it isn't use scraper like imdb themoviedb auto scraper, so I change my code on my add-on to handle this

# Season 1 Ep 2
to 
# Season 1 Episode 2

for trakt to scrape it.

but I'm so confuse with the movie don't know how to scrape with trakt. anyway I will try to make it on the library

did you mean add movie to the library is use scraper like imdb, themoviedb script to scrap meta data ?

nate1280 commented 10 years ago

If this is data from another addon then it (you) should be providing data in the info labels, not relying on regex parsing of a single value.

VideoPlayer.TVShowTitle
VideoPlayer.Season
VideoPlayer.Episode
VideoPlayer.Year
VideoPlayer.Title

Movies requires title, year and all others listed above to be blank to recognize it as a movie. TV Shows require TVShowTitle, Season, and Episode at a minimum to pick it up, it will also use Title (which would be set to the Episode title), and Year if set. If only TVShowTitle is provided, then regex comes into play.

Since this is a video addon, ignore anything related to library then, as that's primarily for local media files.

iClosedz commented 10 years ago

OK! Thank you very much for the information.

I will try it.

EDIT: It work!