-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathaddon.py
31 lines (23 loc) · 845 Bytes
/
addon.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-
import sys
from resources.lib import main
from resources.lib.modules import control
import urlparse
import buggalo
if __name__ == '__main__':
try:
control.log('%s %s | Starting...' % (control.addonInfo('name'), control.addonInfo('version')))
buggalo.EMAIL_CONFIG = {
"recipient": '[email protected]',
"sender": "BRplay <[email protected]>",
"server": 'smtp.googlemail.com',
"method": 'ssl',
"user": '[email protected]',
"pass": "yourpasswordforbuggalo_account"
}
argv = dict(urlparse.parse_qsl(sys.argv[2].replace('?', '')))
main.run(argv)
except Exception:
buggalo.onExceptionRaised()
finally:
control.log("Finished Processing")