comparison src/plugins/plugin_misc_radiocol.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 2daf7b4c6756
children 8b37a62336c3
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _, D_ 20 from sat.core.i18n import _, D_
21 from sat.core.constants import Const as C
21 from sat.core.log import getLogger 22 from sat.core.log import getLogger
22 log = getLogger(__name__) 23 log = getLogger(__name__)
23 from twisted.words.xish import domish 24 from twisted.words.xish import domish
24 from twisted.internet import reactor 25 from twisted.internet import reactor
25 from twisted.words.protocols.jabber import jid 26 from twisted.words.protocols.jabber import jid
40 41
41 NC_RADIOCOL = 'http://www.goffi.org/protocol/radiocol' 42 NC_RADIOCOL = 'http://www.goffi.org/protocol/radiocol'
42 RADIOC_TAG = 'radiocol' 43 RADIOC_TAG = 'radiocol'
43 44
44 PLUGIN_INFO = { 45 PLUGIN_INFO = {
45 "name": "Radio collective plugin", 46 C.PI_NAME: "Radio collective plugin",
46 "import_name": "Radiocol", 47 C.PI_IMPORT_NAME: "Radiocol",
47 "type": "Exp", 48 C.PI_TYPE: "Exp",
48 "protocols": [], 49 C.PI_PROTOCOLS: [],
49 "dependencies": ["XEP-0045", "XEP-0249", "ROOM-GAME"], 50 C.PI_DEPENDENCIES: ["XEP-0045", "XEP-0249", "ROOM-GAME"],
50 "main": "Radiocol", 51 C.PI_MAIN: "Radiocol",
51 "handler": "yes", 52 C.PI_HANDLER: "yes",
52 "description": _("""Implementation of radio collective""") 53 C.PI_DESCRIPTION: _("""Implementation of radio collective""")
53 } 54 }
54 55
55 56
56 # Number of songs needed in the queue before we start playing 57 # Number of songs needed in the queue before we start playing
57 QUEUE_TO_START = 2 58 QUEUE_TO_START = 2