Permalink
Browse files

remove obsolete advanced settings upload code

it's will be included in xbmc.log anyway
  • Loading branch information...
1 parent 8669f53 commit 31ead5e0abbbc991873a207145ceca8eae808afb @dersphere committed Mar 21, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 addon.py
View
@@ -59,11 +59,9 @@ def upload_file(self, filepath):
self.__log('starting upload "%s"...' % filepath)
post_dict = {'paste_data': file_content,
'api_submit': True,
- 'mode': 'xml'}
- if filepath.endswith('.log'):
- post_dict['paste_lang'] = 'xbmc'
- elif filepath.endswith('.xml'):
- post_dict['paste_lang'] = 'advancedsettings'
+ 'mode': 'xml',
+ 'paste_lang': 'xbmc'
+ }
post_data = urllib.urlencode(post_dict)
req = urllib2.Request(UPLOAD_URL, post_data)
response = urllib2.urlopen(req).read()

0 comments on commit 31ead5e

Please sign in to comment.