-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraktUtilities - Improved integration #11
Comments
First off, thx for considering implementing this in Aeon Nox first! |
Ok, I hack out the commands for what you suggested for watch-list indicator, and probably some rating functions, up to you where you choose to call them from. Is it possible to pass the id like XBMC.RunScript(script.TraktUtilities,movieId=$INFO[ListItem.LibraryID]) ? That is how I would expect to handle it. Anyway when I have the functions i'll report back. |
there is no infolabel that passes the movieid. I know the scripts logo downloader and tvtunes have a solo mode which graps the correct tv show without skin input. I don't know much about python though. |
We'll need to look into what info we can use to identify the item (for now movies). And to use the data: |
I get a script error. Debug is here: http://pastebin.com/yfg5YJm2 |
Fixed in repo |
Okay, it works now. I don't see the point in having trakt utilities running a script to show watched status? This is native in XBMC and trakt utilities syncs with trakt, so the two are always the same? (please correct me if I'm wrong) Having a watchlist indicator is something else of course and also the rating would be nice. Do you have access to the love/hate indicator that the trakt website uses to show on the posters? Would be nice to use a hig res version of that ribbon to show how you rated the movie/tv show/episode. |
Yeah, :P, I was just using it to prove that I can get the method to work. I'll fill in the ones for rating and watchlist etc soon. What I'm looking into at the moment is modifying the list from within python, but I'm having trouble, I can get window 10025, I can get the lists, ids in the 500's but they all appear empty and when I add an item to them all the original items disappear. If i can get this to work then one request at the window load would be able to fill all of the listitems with extra tags like 'ListItem.WatchlistStatus', with only a small delay. But I'm temporarily stumped on that one. |
Lol, just looked at the code I've been working on for hours, and noticed that you can already use 'TraktUtilities.Movie.Recent.WatchlistStatus' and 'TraktUtilities.Movie.Recent.CollectionStatus'. So I'll just add rating, it'll be a string either 'love', 'hate' or ''. |
ok, I've added TraktUtilities.Movie.Recent.Rating, but also the others now return "True" or "False" instead of "true" or "false", but I'm not sure whether the substr command is case sensitive. |
It's not case sensitive. Everything is working fine, now to get some high res images of the badges trakt.tv uses and I can get this nicely working. |
Badges, I'm not sure what you call the badges but I've done some trakt images as svgs in https://github.com/othrayte/script.TraktUtilities-media-originals |
Yeah of course. I can use those. I'll let you know when I'm done.
|
it seems titles with ":" don't work. |
Should have just fixed some cases with odd symbols |
I created a branch called TraktUtilities. First enable in genereal skin settings "Enable Trakt Utilities integration". Then in video info you should see the rating, watched and watchlist badges in trakt.tv style. |
How's this going? |
It's on hold until I get some to work on it, I'm busy at uni preparing for
|
No pressure, was just wondering since the branch was removed and hadn't been merged as far as I could tell. Good luck with the presentations. |
I don't think the branch has been removed, it should still be in my TU
|
My bad, I was looking in manromen's repo... |
closed. |
Hey,
I have decided to take up the challenge of adding some of the skin integration we have been talking about with TU for a while and thought of doing things with your skin first both because we love your skin and because we would like a skin that integrates with TU to best show how it can be done.
One thing I was trying to hack together was a 'watch-list' indicator in the video library. But I came upon a dead end in my understanding of your skin, so there goes my attempt at that. I was hoping you might be able to help with this a little. The way I think I'll try to do it (correct me if there is a better way) would be to allow you to call XBMC.RunScript(script.TraktUtilities,movieId=XXXXXX) and then to have a Window(Home).Property(TraktUtilities.Latest.WatchlistStatus) call to get a bool to turn the idicator on or off. That method would only work for one at a time, I'm not sure if this is even possible but I thought maybe the 'TraktUtilities.Latest.WatchlistStatus' could be replaced with 'TraktUtilities.XXXXXX.WatchlistStatus' to get the correct movie. Then you would call XBMC.RunScript(script.TraktUtilities,movieId=XXXXXX) for each movie that was visible (don't know if this is possible either) and each item would use the corresponding 'TraktUtilities.XXXXXX.WatchlistStatus'. I'm hoping there is a better way 'cos that all seems wrong to me.
One thing that might be easier would be to call a 'rate' or 'add to watchlist' function from the library, possibly from the context menu (not sure if you even have access to the context menu).
Any other ideas that you might have would be greatly appreciated, especially ones that are easier to implement on the skin side of things.
The text was updated successfully, but these errors were encountered: