2013-04-02, 23:46
Hi,
I am working on an add-on (video and program plugin) to manage lists (custom lists and your watchlist) on trakt.tv. I did this mainly to have a possibility to add movies from other add-ons like Trailer add-ons.
Work is still in progress.
Current Features
- Login (including credentials-check-loop)
- Create/Delete/View Custom Lists
- View Watchlist
- Add/Delete Movies to/from Custom Lists
- Add/Delete Movies to/from your Watchlist
- Manage default list (custom or watchlist)
Integration for other add-ons
If you like, you can simply also add integration to your add-ons.
The integration is very simple, in most cases you just need to add two lines to your code:
The above URL should fit in most cases but here is a complete list:
In the above example I would suggest adding "TRAKT_ADD_URL" anywhere global in your code. Then you only need to call the "addContextMenuItems"-method on your "xbmcgui.ListItem"-instance (most name it "liz" or "li"). This method requires a list of two-items-tuples where the first item is the caption of the context menu and the second is the XBMC special-protocol url. You only need to add the movie-title of this list-item.
You also don't need to add this add-on to your addon.xml requirements: On Frodo the user will be asked to install this add-on when needed.
Changelog
Download
This add-on is available in the official xbmc.org Frodo add-on repository.
Source on Github
Feedback, bug-reports, ideas welcome.
regards,
sphere
I am working on an add-on (video and program plugin) to manage lists (custom lists and your watchlist) on trakt.tv. I did this mainly to have a possibility to add movies from other add-ons like Trailer add-ons.
Work is still in progress.
Current Features
- Login (including credentials-check-loop)
- Create/Delete/View Custom Lists
- View Watchlist
- Add/Delete Movies to/from Custom Lists
- Add/Delete Movies to/from your Watchlist
- Manage default list (custom or watchlist)
Integration for other add-ons
If you like, you can simply also add integration to your add-ons.
The integration is very simple, in most cases you just need to add two lines to your code:
PHP Code:
TRAKT_ADD_URL = 'XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/movies/add?title=%s)'
liz.addContextMenuItems([('Add Movie on Trakt.tv', TRAKT_ADD_URL % movie_title)])
Code:
# add movie to user's default list or ask for list if no default set (can be watchlist or customlist)
# if imdb_id and/or tmdb_id is provided, they will be passed without a check to trakt!
# elif title is provided it will perform a search, the user has to choose the movie
XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/movies/add?title=%s)
XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/movies/add?imdb_id=%s)
XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/movies/add?tmdb_id=%s)
# add movies to users watchlist, same rules as above
XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/watchlist/movies/add?title=%s)
XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/watchlist/movies/add?imdb_id=%s)
XBMC.RunPlugin(plugin://plugin.video.trakt_list_manager/watchlist/movies/add?tmdb_id=%s)
In the above example I would suggest adding "TRAKT_ADD_URL" anywhere global in your code. Then you only need to call the "addContextMenuItems"-method on your "xbmcgui.ListItem"-instance (most name it "liz" or "li"). This method requires a list of two-items-tuples where the first item is the caption of the context menu and the second is the XBMC special-protocol url. You only need to add the movie-title of this list-item.
You also don't need to add this add-on to your addon.xml requirements: On Frodo the user will be asked to install this add-on when needed.
Changelog
Code:
0.1.0 (07.03.2013)
- added full watchlist list (add/delete movies)
- added possibility to set the watchlist or any custom list as default list
- added possibility to add a movie to the watchlist by external add-ons
- changed interface for external add-ons
- added "Show Movie Info" to context menu
- added setting "Use HTTPS" (default enabled)
- fixed script errors
- code improvements
- string improvements
0.0.2 (02.03.2013)
- added possibility to set a default list
- added watchlist (read) support
- new icon
0.0.1 (30.03.2013)
- initial release
Download
This add-on is available in the official xbmc.org Frodo add-on repository.
Source on Github
Feedback, bug-reports, ideas welcome.
regards,
sphere