├── .gitignore ├── icon.png ├── resources ├── settings.xml └── language │ ├── English │ └── strings.xml │ └── German │ └── strings.xml ├── changelog.txt ├── ui.py ├── gamepro.py ├── gamestar.py ├── addon.xml ├── default.py ├── simplexbmc.py ├── source.py └── LICENSE.txt /.gitignore: -------------------------------------------------------------------------------- 1 | config 2 | *.py[co] 3 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raptor2101/Gamestar/master/icon.png -------------------------------------------------------------------------------- /resources/settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /changelog.txt: -------------------------------------------------------------------------------- 1 | 0.1.8 - Adopt Gamestar backend changes 2 | 0.1.7 - Correct sorting and parsing 3 | 0.1.6 - Adopt newly changes from gamestar.de/gamepro.de 4 | 0.1.5 - Adopt newly changes from gamestar.de 5 | 0.1.4 - Adopt newly changes from gamestar.de 6 | 0.1.3 - Adopt change from gamestar.de 7 | 0.1.2 - Rewrite the Gamepro part 8 | 0.1.1 - change to eden-pre interface 9 | 0.0.9 - chang from background-config to xbmc-supported config 10 | 0.0.8 - Add support for Gamepro.de 11 | 0.0.7 - Background script supports bandwidth-limitiation. Enabeling Reloadoding. Aborted Downloads no longer be played 12 | 0.0.6 - Minor bugfixing 13 | 0.0.5 - Added functionality to force a download before playing (prefetching) 14 | 0.0.4 - initial release 15 | -------------------------------------------------------------------------------- /resources/language/English/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Youtube 4 | Newest videos 5 | Reviews 6 | Previews 7 | Specials 8 | Quickplay 9 | Multiplayer duels 10 | Server down show 11 | Public viewing 12 | Technique checks 13 | Boxenstops 14 | Trailer 15 | Gamestar 16 | Gamepro 17 | Youtube 18 | show Sourcename 19 | Was is ...? 20 | Removed from FSK 21 | News 22 | 23 | 24 | -------------------------------------------------------------------------------- /resources/language/German/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Youtube 4 | Neuste videos 5 | Test-videos 6 | Preview-videos 7 | Video-specials 8 | Quickplay 9 | Multiplayer-duelle 10 | Server down show 11 | Public viewing 12 | Technik-checks 13 | Boxenstopp 14 | Trailer 15 | Gamestar 16 | Gamepro 17 | Youtube 18 | Quellname anzeigen 19 | Was ist ...? 20 | Frisch gestrichen 21 | News 22 | 23 | 24 | -------------------------------------------------------------------------------- /ui.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #-------------LicenseHeader-------------- 3 | # plugin.video.gamestar - Downloads/view videos from gamestar.de 4 | # Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de] 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | class VideoObject(object): 19 | def __init__(self, title, url, picture, sourceName): 20 | self.title = title 21 | self.url = url 22 | self.picture = picture 23 | self.sourceName = sourceName 24 | 25 | class GalleryObject(object): 26 | def __init__(self,url,pictureLink): 27 | self.url = url 28 | self.pictureLink = pictureLink 29 | -------------------------------------------------------------------------------- /gamepro.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #-------------LicenseHeader-------------- 3 | # plugin.video.gamestar - Downloads/view videos from gamestar.de 4 | # Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de] 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | from source import Source 19 | from ui import *; 20 | 21 | class GameproWeb(Source): 22 | def __init__(self, gui): 23 | super(GameproWeb, self).__init__(gui); 24 | 25 | self.rootLink = "http://www.gamepro.de/"; 26 | self.shortName = "GP"; 27 | 28 | linkRoot = self.rootLink+"videos/"; 29 | imageRoot = "http://images.gamepro.de/images/idgwpgsgp/bdb/"; 30 | ##setup categories 31 | self.categories = { 32 | 30001:GalleryObject(linkRoot+"alle-videos,9200,newest/", imageRoot+"/2018270/b144x81.jpg"), 33 | 30002:GalleryObject(linkRoot+"tests,17/",imageRoot+"2018272/b144x81.jpg"), 34 | 30003:GalleryObject(linkRoot+"previews,18/",imageRoot+"bdb/2018269/b144x81.jpg"), 35 | 30004:GalleryObject(linkRoot+"specials,20/",imageRoot+"2018270/b144x81.jpg"), 36 | 30011:GalleryObject(linkRoot+"trailer,3","http://images.cgames.de/images/idgwpgsgp/bdb/2017073/b144x81.jpg"), 37 | 30009:GalleryObject(linkRoot+"candyland,102/","http://images.cgames.de/images/idgwpgsgp/bdb/2557236/b144x81.jpg"), 38 | 30104:GalleryObject(linkRoot+"was-ist-,96/","http://2images.cgames.de/images/idgwpgsgp/bdb/2764163/446x251.jpg"), 39 | 30010:GalleryObject(linkRoot+"boxenstop,2",imageRoot+"2018274/b144x81.jpg"), 40 | 30105:GalleryObject(linkRoot+"frisch-gestrichen,104/","http://1images.cgames.de/images/idgwpgsgp/bdb/2740413/446x251.jpg"), 41 | 30106:GalleryObject(linkRoot+"news,100/","http://4images.cgames.de/images/idgwpgsgp/bdb/2764165/446x251.jpg"), 42 | } 43 | ##endregion 44 | -------------------------------------------------------------------------------- /gamestar.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #-------------LicenseHeader-------------- 3 | # plugin.video.gamestar - Downloads/view videos from gamestar.de 4 | # Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de] 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | from source import Source 19 | from ui import *; 20 | 21 | class GamestarWeb(Source): 22 | def __init__(self, gui): 23 | super(GamestarWeb, self).__init__(gui); 24 | 25 | self.rootLink = "http://www.gamestar.de/"; 26 | self.shortName = "GS"; 27 | 28 | linkRoot = self.rootLink+"videos/"; 29 | imageRoot = "http://images.gamestar.de/images/idgwpgsgp/bdb/"; 30 | ##setup categories 31 | self.categories = { 32 | 30001:GalleryObject(linkRoot+"alle-videos,9100,newest/", imageRoot+"/2018270/b144x81.jpg"), 33 | 30002:GalleryObject(linkRoot+"tests,17/",imageRoot+"2018272/b144x81.jpg"), 34 | 30003:GalleryObject(linkRoot+"previews,18/",imageRoot+"bdb/2018269/b144x81.jpg"), 35 | 30004:GalleryObject(linkRoot+"specials,20/",imageRoot+"2018270/b144x81.jpg"), 36 | 30011:GalleryObject(linkRoot+"trailer,3","http://images.cgames.de/images/idgwpgsgp/bdb/2017073/b144x81.jpg"), 37 | 30009:GalleryObject(linkRoot+"candyland,102/","http://images.cgames.de/images/idgwpgsgp/bdb/2557236/b144x81.jpg"), 38 | 30104:GalleryObject(linkRoot+"was-ist-,96/","http://2images.cgames.de/images/idgwpgsgp/bdb/2764163/446x251.jpg"), 39 | 30010:GalleryObject(linkRoot+"boxenstop,2",imageRoot+"2018274/b144x81.jpg"), 40 | 30105:GalleryObject(linkRoot+"frisch-gestrichen,104/","http://1images.cgames.de/images/idgwpgsgp/bdb/2740413/446x251.jpg"), 41 | 30106:GalleryObject(linkRoot+"news,100/","http://4images.cgames.de/images/idgwpgsgp/bdb/2764165/446x251.jpg"), 42 | } 43 | ##endregion 44 | -------------------------------------------------------------------------------- /addon.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 13 | video 14 | 15 | 16 | Downloads/view videos from gamestar.de and gamepro.de 17 | Alle Videos von Gamestar.de und Gamepro.de and Gamepro.de durchsuchen und anschauen. 18 | This plugin gives access to the Videos from gamestar.de and gamepro.de. 19 | If there are problems while playing the videos (stoping - caching - playing) this plugin offer some caching options: 20 | Don't Chache - don't cache at all. 21 | Cache if Needed - if you start a video who isn't cached, it will be cached and then be played. 22 | Cache - all files of the given category will be cached. 23 | Forced caching - all files of the given category will be cached plus, if some file isn't cached it will be downloaded before playing. 24 | 25 | The last two modes need a background-skript setuped by Taskmanager or (ana)cron. The script is locatet in the addon-dir: fetchOfflineData.py linktotheconfig.xml BandwithLimit(in kbs) 26 | 27 | Mit diesem Plugin kann man alle Videos auf Gamestar.de und Gamepro.de anschauen. 28 | SOllte es beim abspielen der Videos zu problemen kommen (precaching mittein im Video) bietet das Plugin die möglichkeit zum lokalen cachen der Videos: 29 | Kein Cache - nichts wird gecached. 30 | Cachen bei Bedarf - das Video wird vor dem Abspielen lokal gecached 31 | Cachen - alle Videos eine Kategorie werden lokal gespeichert. 32 | Cachen erzwingen - alle Videos einer Kategorie werden lokal gespiechert. Sollte eine Video noch nicht gecached sein, wird es vor dem abspielen gecached. 33 | 34 | Die beiden letzten Optionen brauchen ein Background-Script das vom Taskplanner oder (ana)cron angestoßen wird. Es ist im Addon-Verzeichniss zu finden: fetchOfflineData.py Pfad-Zur-Config.xml BandbreitenBegrenzung(in kbs) 35 | 36 | all 37 | de 38 | GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007 39 | https://github.com/raptor2101/Gamestar/issues 40 | https://github.com/raptor2101/Gamestar 41 | https://github.com/raptor2101/Gamestar 42 | raptor2101@gmx.de 43 | 44 | 45 | -------------------------------------------------------------------------------- /default.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #-------------LicenseHeader-------------- 3 | # plugin.video.gamestar - Downloads/view videos from gamestar.de 4 | # Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de] 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | import xbmcaddon; 19 | from gamestar import GamestarWeb 20 | from gamepro import GameproWeb 21 | from simplexbmc import SimpleXbmcGui; 22 | 23 | 24 | def get_params(): 25 | """ extract params from argv[2] to make a dict (key=value) """ 26 | paramDict = {} 27 | try: 28 | print "get_params() argv=", sys.argv 29 | if sys.argv[2]: 30 | paramPairs=sys.argv[2][1:].split( "&" ) 31 | for paramsPair in paramPairs: 32 | paramSplits = paramsPair.split('=') 33 | if (len(paramSplits))==2: 34 | paramDict[paramSplits[0]] = paramSplits[1] 35 | except (ValueError,IndexError): 36 | errorOK() 37 | return paramDict 38 | 39 | __settings__ = xbmcaddon.Addon(id='plugin.video.gamestar') 40 | rootPath = __settings__.getAddonInfo('path'); 41 | 42 | gui = SimpleXbmcGui(" "); 43 | 44 | displayGamestar = __settings__.getSetting('gamestar') == "true"; 45 | displayGamepro = __settings__.getSetting('gamepro') == "true"; 46 | displayYoutube = __settings__.getSetting('youtube') == "true"; 47 | displayYoutube = __settings__.getSetting('show_shortname') == "true"; 48 | 49 | 50 | gui.openMenuContext(); 51 | params=get_params() 52 | action=params.get("action", "") 53 | cat=int(params.get("cat", 0)) 54 | gui.log("action: "+action); 55 | gui.log("cat: %s"%cat); 56 | 57 | if(action == "list"): 58 | videoObjects = []; 59 | if(displayGamestar): 60 | website = GamestarWeb(gui); 61 | videoObjects.extend(website.getVideoLinkObjects(cat)) 62 | if(displayGamepro): 63 | website = GameproWeb(gui); 64 | videoObjects.extend(website.getVideoLinkObjects(cat)) 65 | gui.buildVideoLink(videoObjects); 66 | else: 67 | categories = {}; 68 | if(displayGamestar): 69 | website = GamestarWeb(gui); 70 | for (index,pictureLink) in website.getCategories().iteritems(): 71 | categories[index]=pictureLink; 72 | if(displayGamepro): 73 | website = GameproWeb(gui); 74 | for (index,pictureLink) in website.getCategories().iteritems(): 75 | if index not in categories: 76 | categories[index]=pictureLink; 77 | gui.showCategories(categories); 78 | 79 | gui.closeMenuContext(); 80 | -------------------------------------------------------------------------------- /simplexbmc.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #-------------LicenseHeader-------------- 3 | # plugin.video.gamestar - Downloads/view videos from gamestar.de 4 | # Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de] 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | import xbmc, xbmcgui, xbmcplugin,xbmcaddon, sys 19 | __plugin__ = "Gamestar" 20 | 21 | class SimpleXbmcGui(object): 22 | def __init__(self, showSourcename): 23 | self.showSourcename = showSourcename; 24 | 25 | @classmethod 26 | def log(self, msg): 27 | if not isinstance(msg, str) and not isinstance(msg, unicode): 28 | xbmc.log("[%s]: %s" % (__plugin__, type(msg))) 29 | else: 30 | xbmc.log("[%s]: %s" % (__plugin__, msg.encode('utf8'))) 31 | 32 | def buildVideoLink(self, videoItems): 33 | for videoItem in videoItems: 34 | if(self.showSourcename): 35 | title = "[%s] %s"%(videoItem.sourceName, videoItem.title) 36 | else: 37 | title = "%s"%(videoItem.title) 38 | listItem=xbmcgui.ListItem(title, iconImage="DefaultFolder.png", thumbnailImage=videoItem.picture) 39 | 40 | url = videoItem.url; 41 | xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=listItem,isFolder=False) 42 | 43 | @classmethod 44 | def showCategories(self,categorieItems): 45 | for (index,pictureLink) in categorieItems.iteritems(): 46 | addon = xbmcaddon.Addon("plugin.video.gamestar") 47 | 48 | title = addon.getLocalizedString(index) 49 | listItem=xbmcgui.ListItem(title, iconImage="DefaultFolder.png", thumbnailImage=pictureLink) 50 | u = "%s?&action=list&cat=%s" % (sys.argv[0], index) 51 | 52 | xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=listItem,isFolder=True) 53 | 54 | def openMenuContext(self): 55 | self.dialogProgress = xbmcgui.DialogProgress(); 56 | 57 | @classmethod 58 | def closeMenuContext(self): 59 | xbmcplugin.endOfDirectory(int(sys.argv[1])) 60 | 61 | @classmethod 62 | def refresh(self): 63 | xbmc.executebuiltin("Container.Refresh"); 64 | 65 | @classmethod 66 | def play(self, path): 67 | player = xbmc.Player(); 68 | player.play(path); 69 | 70 | def errorOK(self,title="", msg=""): 71 | e = str( sys.exc_info()[ 1 ] ) 72 | self.log(e) 73 | if not title: 74 | title = __plugin__ 75 | if not msg: 76 | msg = "ERROR!" 77 | if(e == None): 78 | xbmcgui.Dialog().ok( title, msg, e ) 79 | else: 80 | xbmcgui.Dialog().ok( title, msg) 81 | -------------------------------------------------------------------------------- /source.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #-------------LicenseHeader-------------- 3 | # plugin.video.gamestar - Downloads/view videos from gamestar.de 4 | # Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de] 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | import urllib2, re; 19 | from ui import *; 20 | 21 | 22 | class Source(object): 23 | def __init__(self, gui): 24 | self.gui = gui; 25 | 26 | ##setup regular expressions 27 | self.regexVideoObject = re.compile("\\s* 6 | 7 | Everyone is permitted to copy and distribute verbatim copies of this license 8 | document, but changing it is not allowed. 9 | Preamble 10 | 11 | The GNU General Public License is a free, copyleft license for software and 12 | other kinds of works. 13 | 14 | The licenses for most software and other practical works are designed to take 15 | away your freedom to share and change the works. By contrast, the GNU General 16 | Public License is intended to guarantee your freedom to share and change all 17 | versions of a program--to make sure it remains free software for all its users. 18 | We, the Free Software Foundation, use the GNU General Public License for most of 19 | our software; it applies also to any other work released this way by its 20 | authors. You can apply it to your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not price. Our 23 | General Public Licenses are designed to make sure that you have the freedom to 24 | distribute copies of free software (and charge for them if you wish), that you 25 | receive source code or can get it if you want it, that you can change the 26 | software or use pieces of it in new free programs, and that you know you can do 27 | these things. 28 | 29 | To protect your rights, we need to prevent others from denying you these rights 30 | or asking you to surrender the rights. Therefore, you have certain 31 | responsibilities if you distribute copies of the software, or if you modify it: 32 | responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether gratis or for a 35 | fee, you must pass on to the recipients the same freedoms that you received. You 36 | must make sure that they, too, receive or can get the source code. And you must 37 | show them these terms so they know their rights. 38 | 39 | Developers that use the GNU GPL protect your rights with two steps: (1) assert 40 | copyright on the software, and (2) offer you this License giving you legal 41 | permission to copy, distribute and/or modify it. 42 | 43 | For the developers' and authors' protection, the GPL clearly explains that there 44 | is no warranty for this free software. For both users' and authors' sake, the 45 | GPL requires that modified versions be marked as changed, so that their problems 46 | will not be attributed erroneously to authors of previous versions. 47 | 48 | Some devices are designed to deny users access to install or run modified 49 | versions of the software inside them, although the manufacturer can do so. This 50 | is fundamentally incompatible with the aim of protecting users' freedom to 51 | change the software. The systematic pattern of such abuse occurs in the area of 52 | products for individuals to use, which is precisely where it is most 53 | unacceptable. Therefore, we have designed this version of the GPL to prohibit 54 | the practice for those products. If such problems arise substantially in other 55 | domains, we stand ready to extend this provision to those domains in future 56 | versions of the GPL, as needed to protect the freedom of users. 57 | 58 | Finally, every program is threatened constantly by software patents. States 59 | should not allow patents to restrict development and use of software on 60 | general-purpose computers, but in those that do, we wish to avoid the special 61 | danger that patents applied to a free program could make it effectively 62 | proprietary. To prevent this, the GPL assures that patents cannot be used to 63 | render the program non-free. 64 | 65 | The precise terms and conditions for copying, distribution and modification 66 | follow. 67 | TERMS AND CONDITIONS 68 | 0. Definitions. 69 | 70 | “This License” refers to version 3 of the GNU General Public License. 71 | 72 | “Copyright” also means copyright-like laws that apply to other kinds of works, 73 | such as semiconductor masks. 74 | 75 | “The Program” refers to any copyrightable work licensed under this License. Each 76 | licensee is addressed as “you”. “Licensees” and “recipients” may be individuals 77 | or organizations. 78 | 79 | To “modify” a work means to copy from or adapt all or part of the work in a 80 | fashion requiring copyright permission, other than the making of an exact copy. 81 | The resulting work is called a “modified version” of the earlier work or a work 82 | “based on” the earlier work. 83 | 84 | A “covered work” means either the unmodified Program or a work based on the 85 | Program. 86 | 87 | To “propagate” a work means to do anything with it that, without permission, 88 | would make you directly or secondarily liable for infringement under applicable 89 | copyright law, except executing it on a computer or modifying a private copy. 90 | Propagation includes copying, distribution (with or without modification), 91 | making available to the public, and in some countries other activities as well. 92 | 93 | To “convey” a work means any kind of propagation that enables other parties to 94 | make or receive copies. Mere interaction with a user through a computer network, 95 | with no transfer of a copy, is not conveying. 96 | 97 | An interactive user interface displays “Appropriate Legal Notices” to the extent 98 | that it includes a convenient and prominently visible feature that (1) displays 99 | an appropriate copyright notice, and (2) tells the user that there is no 100 | warranty for the work (except to the extent that warranties are provided), that 101 | licensees may convey the work under this License, and how to view a copy of this 102 | License. If the interface presents a list of user commands or options, such as a 103 | menu, a prominent item in the list meets this criterion. 104 | 1. Source Code. 105 | 106 | The “source code” for a work means the preferred form of the work for making 107 | modifications to it. “Object code” means any non-source form of a work. 108 | 109 | A “Standard Interface” means an interface that either is an official standard 110 | defined by a recognized standards body, or, in the case of interfaces specified 111 | for a particular programming language, one that is widely used among developers 112 | working in that language. 113 | 114 | The “System Libraries” of an executable work include anything, other than the 115 | work as a whole, that (a) is included in the normal form of packaging a Major 116 | Component, but which is not part of that Major Component, and (b) serves only to 117 | enable use of the work with that Major Component, or to implement a Standard 118 | Interface for which an implementation is available to the public in source code 119 | form. A “Major Component”, in this context, means a major essential component 120 | (kernel, window system, and so on) of the specific operating system (if any) on 121 | which the executable work runs, or a compiler used to produce the work, or an 122 | object code interpreter used to run it. 123 | 124 | The “Corresponding Source” for a work in object code form means all the source 125 | code needed to generate, install, and (for an executable work) run the object 126 | code and to modify the work, including scripts to control those activities. 127 | However, it does not include the work's System Libraries, or general-purpose 128 | tools or generally available free programs which are used unmodified in 129 | performing those activities but which are not part of the work. For example, 130 | Corresponding Source includes interface definition files associated with source 131 | files for the work, and the source code for shared libraries and dynamically 132 | linked subprograms that the work is specifically designed to require, such as by 133 | intimate data communication or control flow between those subprograms and other 134 | parts of the work. 135 | 136 | The Corresponding Source need not include anything that users can regenerate 137 | automatically from other parts of the Corresponding Source. 138 | 139 | The Corresponding Source for a work in source code form is that same work. 140 | 2. Basic Permissions. 141 | 142 | All rights granted under this License are granted for the term of copyright on 143 | the Program, and are irrevocable provided the stated conditions are met. This 144 | License explicitly affirms your unlimited permission to run the unmodified 145 | Program. The output from running a covered work is covered by this License only 146 | if the output, given its content, constitutes a covered work. This License 147 | acknowledges your rights of fair use or other equivalent, as provided by 148 | copyright law. 149 | 150 | You may make, run and propagate covered works that you do not convey, without 151 | conditions so long as your license otherwise remains in force. You may convey 152 | covered works to others for the sole purpose of having them make modifications 153 | exclusively for you, or provide you with facilities for running those works, 154 | provided that you comply with the terms of this License in conveying all 155 | material for which you do not control copyright. Those thus making or running 156 | the covered works for you must do so exclusively on your behalf, under your 157 | direction and control, on terms that prohibit them from making any copies of 158 | your copyrighted material outside their relationship with you. 159 | 160 | Conveying under any other circumstances is permitted solely under the conditions 161 | stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 162 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 163 | 164 | No covered work shall be deemed part of an effective technological measure under 165 | any applicable law fulfilling obligations under article 11 of the WIPO copyright 166 | treaty adopted on 20 December 1996, or similar laws prohibiting or restricting 167 | circumvention of such measures. 168 | 169 | When you convey a covered work, you waive any legal power to forbid 170 | circumvention of technological measures to the extent such circumvention is 171 | effected by exercising rights under this License with respect to the covered 172 | work, and you disclaim any intention to limit operation or modification of the 173 | work as a means of enforcing, against the work's users, your or third parties' 174 | legal rights to forbid circumvention of technological measures. 175 | 4. Conveying Verbatim Copies. 176 | 177 | You may convey verbatim copies of the Program's source code as you receive it, 178 | in any medium, provided that you conspicuously and appropriately publish on each 179 | copy an appropriate copyright notice; keep intact all notices stating that this 180 | License and any non-permissive terms added in accord with section 7 apply to the 181 | code; keep intact all notices of the absence of any warranty; and give all 182 | recipients a copy of this License along with the Program. 183 | 184 | You may charge any price or no price for each copy that you convey, and you may 185 | offer support or warranty protection for a fee. 186 | 5. Conveying Modified Source Versions. 187 | 188 | You may convey a work based on the Program, or the modifications to produce it 189 | from the Program, in the form of source code under the terms of section 4, 190 | provided that you also meet all of these conditions: 191 | a) The work must carry prominent notices stating that you modified it, and 192 | giving a relevant date. 193 | b) The work must carry prominent notices stating that it is released under this 194 | License and any conditions added under section 7. This requirement modifies the 195 | requirement in section 4 to “keep intact all notices”. 196 | c) You must license the entire work, as a whole, under this License to anyone 197 | who comes into possession of a copy. This License will therefore apply, along 198 | with any applicable section 7 additional terms, to the whole of the work, and 199 | all its parts, regardless of how they are packaged. This License gives no 200 | permission to license the work in any other way, but it does not invalidate such 201 | permission if you have separately received it. 202 | d) If the work has interactive user interfaces, each must display Appropriate 203 | Legal Notices; however, if the Program has interactive interfaces that do not 204 | display Appropriate Legal Notices, your work need not make them do so. 205 | 206 | A compilation of a covered work with other separate and independent works, which 207 | are not by their nature extensions of the covered work, and which are not 208 | combined with it such as to form a larger program, in or on a volume of a 209 | storage or distribution medium, is called an “aggregate” if the compilation and 210 | its resulting copyright are not used to limit the access or legal rights of the 211 | compilation's users beyond what the individual works permit. Inclusion of a 212 | covered work in an aggregate does not cause this License to apply to the other 213 | parts of the aggregate. 214 | 6. Conveying Non-Source Forms. 215 | 216 | You may convey a covered work in object code form under the terms of sections 4 217 | and 5, provided that you also convey the machine-readable Corresponding Source 218 | under the terms of this License, in one of these ways: 219 | a) Convey the object code in, or embodied in, a physical product (including a 220 | physical distribution medium), accompanied by the Corresponding Source fixed on 221 | a durable physical medium customarily used for software interchange. 222 | b) Convey the object code in, or embodied in, a physical product (including a 223 | physical distribution medium), accompanied by a written offer, valid for at 224 | least three years and valid for as long as you offer spare parts or customer 225 | support for that product model, to give anyone who possesses the object code 226 | either (1) a copy of the Corresponding Source for all the software in the 227 | product that is covered by this License, on a durable physical medium 228 | customarily used for software interchange, for a price no more than your 229 | reasonable cost of physically performing this conveying of source, or (2) access 230 | to copy the Corresponding Source from a network server at no charge. 231 | c) Convey individual copies of the object code with a copy of the written offer 232 | to provide the Corresponding Source. This alternative is allowed only 233 | occasionally and noncommercially, and only if you received the object code with 234 | such an offer, in accord with subsection 6b. 235 | d) Convey the object code by offering access from a designated place (gratis or 236 | for a charge), and offer equivalent access to the Corresponding Source in the 237 | same way through the same place at no further charge. You need not require 238 | recipients to copy the Corresponding Source along with the object code. If the 239 | place to copy the object code is a network server, the Corresponding Source may 240 | be on a different server (operated by you or a third party) that supports 241 | equivalent copying facilities, provided you maintain clear directions next to 242 | the object code saying where to find the Corresponding Source. Regardless of 243 | what server hosts the Corresponding Source, you remain obligated to ensure that 244 | it is available for as long as needed to satisfy these requirements. 245 | e) Convey the object code using peer-to-peer transmission, provided you inform 246 | other peers where the object code and Corresponding Source of the work are being 247 | offered to the general public at no charge under subsection 6d. 248 | 249 | A separable portion of the object code, whose source code is excluded from the 250 | Corresponding Source as a System Library, need not be included in conveying the 251 | object code work. 252 | 253 | A “User Product” is either (1) a “consumer product”, which means any tangible 254 | personal property which is normally used for personal, family, or household 255 | purposes, or (2) anything designed or sold for incorporation into a dwelling. In 256 | determining whether a product is a consumer product, doubtful cases shall be 257 | resolved in favor of coverage. For a particular product received by a particular 258 | user, “normally used” refers to a typical or common use of that class of 259 | product, regardless of the status of the particular user or of the way in which 260 | the particular user actually uses, or expects or is expected to use, the 261 | product. A product is a consumer product regardless of whether the product has 262 | substantial commercial, industrial or non-consumer uses, unless such uses 263 | represent the only significant mode of use of the product. 264 | 265 | “Installation Information” for a User Product means any methods, procedures, 266 | authorization keys, or other information required to install and execute 267 | modified versions of a covered work in that User Product from a modified version 268 | of its Corresponding Source. The information must suffice to ensure that the 269 | continued functioning of the modified object code is in no case prevented or 270 | interfered with solely because modification has been made. 271 | 272 | If you convey an object code work under this section in, or with, or 273 | specifically for use in, a User Product, and the conveying occurs as part of a 274 | transaction in which the right of possession and use of the User Product is 275 | transferred to the recipient in perpetuity or for a fixed term (regardless of 276 | how the transaction is characterized), the Corresponding Source conveyed under 277 | this section must be accompanied by the Installation Information. But this 278 | requirement does not apply if neither you nor any third party retains the 279 | ability to install modified object code on the User Product (for example, the 280 | work has been installed in ROM). 281 | 282 | The requirement to provide Installation Information does not include a 283 | requirement to continue to provide support service, warranty, or updates for a 284 | work that has been modified or installed by the recipient, or for the User 285 | Product in which it has been modified or installed. Access to a network may be 286 | denied when the modification itself materially and adversely affects the 287 | operation of the network or violates the rules and protocols for communication 288 | across the network. 289 | 290 | Corresponding Source conveyed, and Installation Information provided, in accord 291 | with this section must be in a format that is publicly documented (and with an 292 | implementation available to the public in source code form), and must require no 293 | special password or key for unpacking, reading or copying. 294 | 7. Additional Terms. 295 | 296 | “Additional permissions” are terms that supplement the terms of this License by 297 | making exceptions from one or more of its conditions. Additional permissions 298 | that are applicable to the entire Program shall be treated as though they were 299 | included in this License, to the extent that they are valid under applicable 300 | law. If additional permissions apply only to part of the Program, that part may 301 | be used separately under those permissions, but the entire Program remains 302 | governed by this License without regard to the additional permissions. 303 | 304 | When you convey a copy of a covered work, you may at your option remove any 305 | additional permissions from that copy, or from any part of it. (Additional 306 | permissions may be written to require their own removal in certain cases when 307 | you modify the work.) You may place additional permissions on material, added by 308 | you to a covered work, for which you have or can give appropriate copyright 309 | permission. 310 | 311 | Notwithstanding any other provision of this License, for material you add to a 312 | covered work, you may (if authorized by the copyright holders of that material) 313 | supplement the terms of this License with terms: 314 | a) Disclaiming warranty or limiting liability differently from the terms of 315 | sections 15 and 16 of this License; or 316 | b) Requiring preservation of specified reasonable legal notices or author 317 | attributions in that material or in the Appropriate Legal Notices displayed by 318 | works containing it; or 319 | c) Prohibiting misrepresentation of the origin of that material, or requiring 320 | that modified versions of such material be marked in reasonable ways as 321 | different from the original version; or 322 | d) Limiting the use for publicity purposes of names of licensors or authors of 323 | the material; or 324 | e) Declining to grant rights under trademark law for use of some trade names, 325 | trademarks, or service marks; or 326 | f) Requiring indemnification of licensors and authors of that material by anyone 327 | who conveys the material (or modified versions of it) with contractual 328 | assumptions of liability to the recipient, for any liability that these 329 | contractual assumptions directly impose on those licensors and authors. 330 | 331 | All other non-permissive additional terms are considered “further restrictions” 332 | within the meaning of section 10. If the Program as you received it, or any part 333 | of it, contains a notice stating that it is governed by this License along with 334 | a term that is a further restriction, you may remove that term. If a license 335 | document contains a further restriction but permits relicensing or conveying 336 | under this License, you may add to a covered work material governed by the terms 337 | of that license document, provided that the further restriction does not survive 338 | such relicensing or conveying. 339 | 340 | If you add terms to a covered work in accord with this section, you must place, 341 | in the relevant source files, a statement of the additional terms that apply to 342 | those files, or a notice indicating where to find the applicable terms. 343 | 344 | Additional terms, permissive or non-permissive, may be stated in the form of a 345 | separately written license, or stated as exceptions; the above requirements 346 | apply either way. 347 | 8. Termination. 348 | 349 | You may not propagate or modify a covered work except as expressly provided 350 | under this License. Any attempt otherwise to propagate or modify it is void, and 351 | will automatically terminate your rights under this License (including any 352 | patent licenses granted under the third paragraph of section 11). 353 | 354 | However, if you cease all violation of this License, then your license from a 355 | particular copyright holder is reinstated (a) provisionally, unless and until 356 | the copyright holder explicitly and finally terminates your license, and (b) 357 | permanently, if the copyright holder fails to notify you of the violation by 358 | some reasonable means prior to 60 days after the cessation. 359 | 360 | Moreover, your license from a particular copyright holder is reinstated 361 | permanently if the copyright holder notifies you of the violation by some 362 | reasonable means, this is the first time you have received notice of violation 363 | of this License (for any work) from that copyright holder, and you cure the 364 | violation prior to 30 days after your receipt of the notice. 365 | 366 | Termination of your rights under this section does not terminate the licenses of 367 | parties who have received copies or rights from you under this License. If your 368 | rights have been terminated and not permanently reinstated, you do not qualify 369 | to receive new licenses for the same material under section 10. 370 | 9. Acceptance Not Required for Having Copies. 371 | 372 | You are not required to accept this License in order to receive or run a copy of 373 | the Program. Ancillary propagation of a covered work occurring solely as a 374 | consequence of using peer-to-peer transmission to receive a copy likewise does 375 | not require acceptance. However, nothing other than this License grants you 376 | permission to propagate or modify any covered work. These actions infringe 377 | copyright if you do not accept this License. Therefore, by modifying or 378 | propagating a covered work, you indicate your acceptance of this License to do 379 | so. 380 | 10. Automatic Licensing of Downstream Recipients. 381 | 382 | Each time you convey a covered work, the recipient automatically receives a 383 | license from the original licensors, to run, modify and propagate that work, 384 | subject to this License. You are not responsible for enforcing compliance by 385 | third parties with this License. 386 | 387 | An “entity transaction” is a transaction transferring control of an 388 | organization, or substantially all assets of one, or subdividing an 389 | organization, or merging organizations. If propagation of a covered work results 390 | from an entity transaction, each party to that transaction who receives a copy 391 | of the work also receives whatever licenses to the work the party's predecessor 392 | in interest had or could give under the previous paragraph, plus a right to 393 | possession of the Corresponding Source of the work from the predecessor in 394 | interest, if the predecessor has it or can get it with reasonable efforts. 395 | 396 | You may not impose any further restrictions on the exercise of the rights 397 | granted or affirmed under this License. For example, you may not impose a 398 | license fee, royalty, or other charge for exercise of rights granted under this 399 | License, and you may not initiate litigation (including a cross-claim or 400 | counterclaim in a lawsuit) alleging that any patent claim is infringed by 401 | making, using, selling, offering for sale, or importing the Program or any 402 | portion of it. 403 | 11. Patents. 404 | 405 | A “contributor” is a copyright holder who authorizes use under this License of 406 | the Program or a work on which the Program is based. The work thus licensed is 407 | called the contributor's “contributor version”. 408 | 409 | A contributor's “essential patent claims” are all patent claims owned or 410 | controlled by the contributor, whether already acquired or hereafter acquired, 411 | that would be infringed by some manner, permitted by this License, of making, 412 | using, or selling its contributor version, but do not include claims that would 413 | be infringed only as a consequence of further modification of the contributor 414 | version. For purposes of this definition, “control” includes the right to grant 415 | patent sublicenses in a manner consistent with the requirements of this License. 416 | 417 | Each contributor grants you a non-exclusive, worldwide, royalty-free patent 418 | license under the contributor's essential patent claims, to make, use, sell, 419 | offer for sale, import and otherwise run, modify and propagate the contents of 420 | its contributor version. 421 | 422 | In the following three paragraphs, a “patent license” is any express agreement 423 | or commitment, however denominated, not to enforce a patent (such as an express 424 | permission to practice a patent or covenant not to sue for patent infringement). 425 | To “grant” such a patent license to a party means to make such an agreement or 426 | commitment not to enforce a patent against the party. 427 | 428 | If you convey a covered work, knowingly relying on a patent license, and the 429 | Corresponding Source of the work is not available for anyone to copy, free of 430 | charge and under the terms of this License, through a publicly available network 431 | server or other readily accessible means, then you must either (1) cause the 432 | Corresponding Source to be so available, or (2) arrange to deprive yourself of 433 | the benefit of the patent license for this particular work, or (3) arrange, in a 434 | manner consistent with the requirements of this License, to extend the patent 435 | license to downstream recipients. “Knowingly relying” means you have actual 436 | knowledge that, but for the patent license, your conveying the covered work in a 437 | country, or your recipient's use of the covered work in a country, would 438 | infringe one or more identifiable patents in that country that you have reason 439 | to believe are valid. 440 | 441 | If, pursuant to or in connection with a single transaction or arrangement, you 442 | convey, or propagate by procuring conveyance of, a covered work, and grant a 443 | patent license to some of the parties receiving the covered work authorizing 444 | them to use, propagate, modify or convey a specific copy of the covered work, 445 | then the patent license you grant is automatically extended to all recipients of 446 | the covered work and works based on it. 447 | 448 | A patent license is “discriminatory” if it does not include within the scope of 449 | its coverage, prohibits the exercise of, or is conditioned on the non-exercise 450 | of one or more of the rights that are specifically granted under this License. 451 | You may not convey a covered work if you are a party to an arrangement with a 452 | third party that is in the business of distributing software, under which you 453 | make payment to the third party based on the extent of your activity of 454 | conveying the work, and under which the third party grants, to any of the 455 | parties who would receive the covered work from you, a discriminatory patent 456 | license (a) in connection with copies of the covered work conveyed by you (or 457 | copies made from those copies), or (b) primarily for and in connection with 458 | specific products or compilations that contain the covered work, unless you 459 | entered into that arrangement, or that patent license was granted, prior to 28 460 | March 2007. 461 | 462 | Nothing in this License shall be construed as excluding or limiting any implied 463 | license or other defenses to infringement that may otherwise be available to you 464 | under applicable patent law. 465 | 12. No Surrender of Others' Freedom. 466 | 467 | If conditions are imposed on you (whether by court order, agreement or 468 | otherwise) that contradict the conditions of this License, they do not excuse 469 | you from the conditions of this License. If you cannot convey a covered work so 470 | as to satisfy simultaneously your obligations under this License and any other 471 | pertinent obligations, then as a consequence you may not convey it at all. For 472 | example, if you agree to terms that obligate you to collect a royalty for 473 | further conveying from those to whom you convey the Program, the only way you 474 | could satisfy both those terms and this License would be to refrain entirely 475 | from conveying the Program. 476 | 13. Use with the GNU Affero General Public License. 477 | 478 | Notwithstanding any other provision of this License, you have permission to link 479 | or combine any covered work with a work licensed under version 3 of the GNU 480 | Affero General Public License into a single combined work, and to convey the 481 | resulting work. The terms of this License will continue to apply to the part 482 | which is the covered work, but the special requirements of the GNU Affero 483 | General Public License, section 13, concerning interaction through a network 484 | will apply to the combination as such. 485 | 14. Revised Versions of this License. 486 | 487 | The Free Software Foundation may publish revised and/or new versions of the GNU 488 | General Public License from time to time. Such new versions will be similar in 489 | spirit to the present version, but may differ in detail to address new problems 490 | or concerns. 491 | 492 | Each version is given a distinguishing version number. If the Program specifies 493 | that a certain numbered version of the GNU General Public License “or any later 494 | version” applies to it, you have the option of following the terms and 495 | conditions either of that numbered version or of any later version published by 496 | the Free Software Foundation. If the Program does not specify a version number 497 | of the GNU General Public License, you may choose any version ever published by 498 | the Free Software Foundation. 499 | 500 | If the Program specifies that a proxy can decide which future versions of the 501 | GNU General Public License can be used, that proxy's public statement of 502 | acceptance of a version permanently authorizes you to choose that version for 503 | the Program. 504 | 505 | Later license versions may give you additional or different permissions. 506 | However, no additional obligations are imposed on any author or copyright holder 507 | as a result of your choosing to follow a later version. 508 | 15. Disclaimer of Warranty. 509 | 510 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 511 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER 512 | PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER 513 | EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 514 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE 515 | QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE 516 | DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 517 | 16. Limitation of Liability. 518 | 519 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY 520 | COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS 521 | PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, 522 | INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE 523 | THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED 524 | INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE 525 | PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY 526 | HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 527 | 17. Interpretation of Sections 15 and 16. 528 | 529 | If the disclaimer of warranty and limitation of liability provided above cannot 530 | be given local legal effect according to their terms, reviewing courts shall 531 | apply local law that most closely approximates an absolute waiver of all civil 532 | liability in connection with the Program, unless a warranty or assumption of 533 | liability accompanies a copy of the Program in return for a fee. --------------------------------------------------------------------------------