Skip to content

Commit

Permalink
remove obsolete advanced settings upload code
Browse files Browse the repository at this point in the history
it's will be included in xbmc.log anyway
  • Loading branch information
dersphere committed Mar 21, 2013
1 parent 8669f53 commit 31ead5e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 31ead5e

Please sign in to comment.