This addon searches chosen IMDb and Trakt watchlists then writes tags locally for matching entries in your database. This requirement came about because my partner wanted to see only her movies in a dynamic list, and since we use IMDb, their lists were an obvious choice. It will take up to 5 URLs in various IMDb formats (watch lists, events, top250 etc), and up to 5 Trakt lists. The list limit can be extended without too much effort - see comments below.
For Trakt, you can add lists from your own account, from public accounts, or shared lists from anyone you are friends with (people you follow, who follow you back). Trakt requires you to get a token from Trakt.tv by entering a pin code into this application. The pin code grants you an oauth token, which you use to interact with their API. It's simpler than it sounds; follow the on-screen prompts for more info.
As an added bonus it also creates tags for Stand-up comedy. No such genre exists today, and I don't want comedy movies next to stand-up DVDs when browsing by genre. The comedians list comes from the wiki standup comic lists for UK, US, Canadian, Australian and international comedians. If you want someone to match that isn't there, just add them to one of these wiki lists and trigger a manual generation.
Oscar tagging lets you tag winners and/or nominees with each award for each movie in the following format 'Oscar Winner: Best Motion Picture', 'Oscar Nominee: Best Supporting Actor'. Credit for the idea and initial implementation goes to Jorge: https://github.com/bluesauce
The current release only works on Leia (use older versions for Krypton/Frodo/Gotham). Tested on linux and windows up to Kodi 18, the script runs as a service at a configurable time interval.
Available in the Kodi repo under Addons/Services.
Download 0.7 here, 0.6 here, 0.5 here, 0.4 here, 0.3 here, or 0.2 here. 0.1 still available for those who are not yet on Frodo. Get it here.
With the new Trakt functionality I received openssl errors when testing on linux. If this happens to you, ensure that your ssl module is up to date:
If that fails, ensure you've got the build tools:
Final note on Trakt: the docs suggest that these tokens expire after 3 months. If that happens just request a new code from the options page.
For those using the IMDb RSS URLs, it seems that rss.imdb.com now has an invalid certificate (which will cause an exception in my request; by design). Use http://rss.imdb.com, or https://www.imdb.com
########## v0.7 ############################
# Kodi 18 Support
# Bugfix for multiple Trakt users (https://github.com/ryanjerskine)
# Bugfixes and code cleanup
########## v0.6 ############################
# Added Oscar award/nominee tagging (inspired by Jorge: https://github.com/bluesauce)
# Updated regex to support IMDb lists of all types (Top250, Academy Awards, Sundance etc)
# Added notifications (can be disabled in Settings)
# Service interval now relies on local machine time
# Fixed bug that prevented service from exiting cleanly in some situations
# Trakt token in settings is now read-only
# Replaced urllib2 with requests
# Code cleanup (a lot of string IDs have changed)
########## v0.5 ############################
# added Trakt support for 2.0 API (depends on PyTrakt by Jon Nappi, included in this release). PyTrakt repo, Pytrakt docs.
# Trakt lists for multiple users. Lists of other users need to be public, or shared by your friends.
# code cleanup and text amendments
# wikipedia URLs updated
# Kodi 17 adjustments (addon.xml, folder structure, etc)
# Removed inline dependencies in 0.5.1
# Corrected oauth version number in 0.5.2
########## v0.4 ############################
# Kodi support (14 and 15)
# IMDB lists now in RSS format.
# removed trakt (other addons do this now)
# removed music
########## v0.3 ############################
# Added Trakt support for movie watchlist and custom watchlists
# Custom Trakt lists are tagged by their name
# Added debug mode
# Made a pretty icon
# code cleanup and speed tweaks
########## v0.2 ############################
# Uses JSON to write the tags so now it's much more portable.
# Should work for people using MySQL just fine.
# MUCH better progress updates, logging and error checking.
# Writes tags instead of playlists - much more flexible
# Preserves existing tags and only writes as needed
# New feature - much slower! That's just how JSON rolls I'm afraid.
# Background music (to comfort you while you wait)
# Uses the xbmc "label" to make a match (no more folder name dependence)
# Option to wipe all your tags if you want to start from scratch
##########################################################
TODO:
* Investigate RunScript deprecation
* Handle and retry IMDb awards timeouts for large libaries





For Trakt, you can add lists from your own account, from public accounts, or shared lists from anyone you are friends with (people you follow, who follow you back). Trakt requires you to get a token from Trakt.tv by entering a pin code into this application. The pin code grants you an oauth token, which you use to interact with their API. It's simpler than it sounds; follow the on-screen prompts for more info.
As an added bonus it also creates tags for Stand-up comedy. No such genre exists today, and I don't want comedy movies next to stand-up DVDs when browsing by genre. The comedians list comes from the wiki standup comic lists for UK, US, Canadian, Australian and international comedians. If you want someone to match that isn't there, just add them to one of these wiki lists and trigger a manual generation.
Oscar tagging lets you tag winners and/or nominees with each award for each movie in the following format 'Oscar Winner: Best Motion Picture', 'Oscar Nominee: Best Supporting Actor'. Credit for the idea and initial implementation goes to Jorge: https://github.com/bluesauce
The current release only works on Leia (use older versions for Krypton/Frodo/Gotham). Tested on linux and windows up to Kodi 18, the script runs as a service at a configurable time interval.
Available in the Kodi repo under Addons/Services.
Download 0.7 here, 0.6 here, 0.5 here, 0.4 here, 0.3 here, or 0.2 here. 0.1 still available for those who are not yet on Frodo. Get it here.
With the new Trakt functionality I received openssl errors when testing on linux. If this happens to you, ensure that your ssl module is up to date:
Code:
pip install --upgrade pyopenssl
Code:
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
Final note on Trakt: the docs suggest that these tokens expire after 3 months. If that happens just request a new code from the options page.
For those using the IMDb RSS URLs, it seems that rss.imdb.com now has an invalid certificate (which will cause an exception in my request; by design). Use http://rss.imdb.com, or https://www.imdb.com
########## v0.7 ############################
# Kodi 18 Support
# Bugfix for multiple Trakt users (https://github.com/ryanjerskine)
# Bugfixes and code cleanup
########## v0.6 ############################
# Added Oscar award/nominee tagging (inspired by Jorge: https://github.com/bluesauce)
# Updated regex to support IMDb lists of all types (Top250, Academy Awards, Sundance etc)
# Added notifications (can be disabled in Settings)
# Service interval now relies on local machine time
# Fixed bug that prevented service from exiting cleanly in some situations
# Trakt token in settings is now read-only
# Replaced urllib2 with requests
# Code cleanup (a lot of string IDs have changed)
########## v0.5 ############################
# added Trakt support for 2.0 API (depends on PyTrakt by Jon Nappi, included in this release). PyTrakt repo, Pytrakt docs.
# Trakt lists for multiple users. Lists of other users need to be public, or shared by your friends.
# code cleanup and text amendments
# wikipedia URLs updated
# Kodi 17 adjustments (addon.xml, folder structure, etc)
# Removed inline dependencies in 0.5.1
# Corrected oauth version number in 0.5.2
########## v0.4 ############################
# Kodi support (14 and 15)
# IMDB lists now in RSS format.
# removed trakt (other addons do this now)
# removed music
########## v0.3 ############################
# Added Trakt support for movie watchlist and custom watchlists
# Custom Trakt lists are tagged by their name
# Added debug mode
# Made a pretty icon
# code cleanup and speed tweaks
########## v0.2 ############################
# Uses JSON to write the tags so now it's much more portable.
# Should work for people using MySQL just fine.
# MUCH better progress updates, logging and error checking.
# Writes tags instead of playlists - much more flexible
# Preserves existing tags and only writes as needed
# New feature - much slower! That's just how JSON rolls I'm afraid.
# Background music (to comfort you while you wait)
# Uses the xbmc "label" to make a match (no more folder name dependence)
# Option to wipe all your tags if you want to start from scratch
##########################################################
TODO:
* Investigate RunScript deprecation
* Handle and retry IMDb awards timeouts for large libaries





