Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added crashfile (.dmp) uploading to windows

  • Loading branch information...
commit 518db89f267c822a2bc8f3968a853fa26dc2471d 1 parent deb76bf
@dersphere authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 addon.py
View
14 addon.py
@@ -118,20 +118,20 @@ def __get_logs(self):
log_path = os.path.join(os.path.expanduser('~'), 'Library/Logs')
crashlog_path = os.path.join(os.path.expanduser('~'),
'Library/Logs/CrashReporter')
- crashfile_prefix = 'XBMC'
+ crashfile_match = 'XBMC'
elif xbmc.getCondVisibility('system.platform.ios'):
log_path = '/var/mobile/Library/Preferences'
crashlog_path = os.path.join(os.path.expanduser('~'),
'Library/Logs/CrashReporter')
- crashfile_prefix = 'XBMC'
+ crashfile_match = 'XBMC'
elif xbmc.getCondVisibility('system.platform.windows'):
log_path = xbmc.translatePath('special://home')
- crashlog_path = ''
- crashfile_prefix = ''
+ crashlog_path = log_path
+ crashfile_match = '.dmp'
elif xbmc.getCondVisibility('system.platform.linux'):
log_path = xbmc.translatePath('special://home/temp')
crashlog_path = os.path.expanduser('~')
- crashfile_prefix = 'xbmc_crashlog'
+ crashfile_match = 'xbmc_crashlog'
else:
# we are on an unknown OS and need to fix that here
raise Exception('UNHANDLED OS')
@@ -140,10 +140,10 @@ def __get_logs(self):
log_old = os.path.join(log_path, 'xbmc.old.log')
# check for XBMC crashlogs
log_crash = None
- if crashlog_path and crashfile_prefix:
+ if crashlog_path and crashfile_match:
crashlog_files = [s for s in os.listdir(crashlog_path)
if os.path.isfile(os.path.join(crashlog_path, s))
- and s.startswith(crashfile_prefix)]
+ and crashfile_match in s]
if crashlog_files:
# we have crashlogs, get fullpath from the last one by time
crashlog_files = self.__sort_files_by_date(crashlog_path,

1 comment on commit 518db89

@dersphere
Owner

@CrystalP: Maybe you can have a try with your minidump-branch?

Please sign in to comment.
Something went wrong with that request. Please try again.