1 Steps needed to get a working addon
1.1 change addon.xml
change the addon id and name and anything else you need to suit your addon
1.2 change settings.xml
If you changed the addon ID and Folder name open resources folder/settings.xml
on lines 26, 30, 34, & 59 change just the plugin.video.jen to match your addon ID
1.3 change the jen folder name
change it to reflect the addon id you assigned in step 1. not really needed while developing, but important before doing the first release so you don't overwrite any other addons using Jen
1.4 fill out variables
fill out these lines in default.py
root_xml_url = "http://" # url of the root xml file __builtin__.tvdb_api_key = "" # tvdb api key __builtin__.tmdb_api_key = "" # tmdb api key __builtin__.trakt_client_id = "" # trakt client id __builtin__.trakt_client_secret = "" # trakt client secret __builtin__.search_db_location = "" # location of search db
1.5 OPTIONAL Add a plugin
have a look at plugin.py to see where you can overwrite default behaviour, if there are any other usefull ones, open an issue
2 Steps needed to upgrade to a new version of jen
- slide over your icon, fanart, strings.po, settings.xml, addon.xml to the new version
- copy over the configuration variables in your default.py
- up your addon.xml version number if need be
- push out new version
3 How to Make a Search DB for Jen
Open the jensearchdb.py
Change line 269 to the url for your main.xml Change line 271 'jen' to whatever name you want the search.xml to be called. In this case it will be jen.xml Change line 272 to the url for your section.xml this is handy if you don't want to compile your entire url. Can use subsections. If however you want the entire folder added to search type in the main.xml url here again. Change line 273 'Jen' to whatever you want it to output for name in the search on your addon. If for example you choose The Avengers (provided you have that movie) the search will display: Jen - The Avengers. Change line 277 to be folder where you want the xml and db file to output too Change line 278 to be folder where you want the xml and db file to output too Change line 290 to be folder where you want the xml and db file to output too but only up to the output
Save the file.
Next make a folder and save this py file. Add a folder called "output" (without the "") Open a text editor and make an empty file called search.db and slide it in the output folder.
Open the jensearch.py in idle or another program that runs py files. Run it.
The results are then sent to the output folder you made that you directed the py to.
Slide the db file onto your server.
Open the default.py for your addon and add the search.db url to "builtin.searchdblocation"
4 XML Formats for Jen
4.1 Main Directories
<dir> <name></name> <link></link> <animated_thumbnail></animated_thumbnail> <thumbnail></thumbnail> <animated_fanart></animated_fanart> <fanart></fanart> </dir>
4.2 Movies
<item> <title></title> <meta> <content>movie</content> <imdb></imdb> <title></title> <year></year> </meta> <link> <sublink>search</sublink> <sublink>searchsd</sublink> </link> <animated_thumbnail></animated_thumbnail> <thumbnail></thumbnail> <animated_fanart></animated_fanart> <fanart></fanart> </item>
4.3 TV Directories
<dir> <title></title> <meta> <content>tvshow</content> <imdb></imdb> <tvdb></tvdb> <tvshowtitle></tvshowtitle> <year></year> </meta> <link></link> <animated_thumbnail></animated_thumbnail> <thumbnail></thumbnail> <animated_fanart></animated_fanart> <fanart></fanart> </dir>
4.4 TV Seasons
<dir> <name></name> <meta> <content>season</content> <imdb></imdb> <tvdb></tvdb> <tvshowtitle></tvshowtitle> <year></year> <season></season> </meta> <link></link> <animated_thumbnail></animated_thumbnail> <thumbnail></thumbnail> <animated_fanart></animated_fanart> <fanart></fanart> </dir>
4.5 TV Episodes
<item> <title></title> <meta> <content>episode</content> <imdb></imdb> <tvdb></tvdb> <tvshowtitle></tvshowtitle> <year></year> <title></title> <premiered></premiered> <season></season> <episode></episode> </meta> <link> <sublink>search</sublink> <sublink>searchsd</sublink> </link> <animated_thumbnail></animated_thumbnail> <thumbnail></thumbnail> <animated_fanart></animated_fanart> <fanart></fanart> </item>
4.6 Youtube Channels
<plugin> <title></title> <link>plugin://plugin.video.youtube/channel/***CHANNEL NUMBER HERE***/playlists/</link> <animated_thumbnail></animated_thumbnail> <thumbnail></thumbnail> <animated_fanart></animated_fanart> <fanart></fanart> </plugin>
4.7 Settings
<plugin> <name>30701</name> <link>plugin://plugin.video.jen/?action=openSettings</link> <thumbnail></thumbnail> <summary>Settings for Jen Addons</summary> </plugin>
4.8 Search
<plugin> <name>30702</name> <link>plugin://plugin.video.jen/?action=search</link> <thumbnail></thumbnail> <summary>Search for Jen Addon</summary> </plugin>