-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8aefd81
commit 20e6c8f
Showing
7 changed files
with
85 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<addon id="script.cabertoss" name="Caber Toss" version="1.0.0" provider-name="bossanova808"> | ||
<addon id="script.cabertoss" name="Caber Toss" version="1.0.1" provider-name="bossanova808"> | ||
<requires> | ||
<import addon="xbmc.python" version="3.0.0"/> | ||
<import addon="script.module.bossanova808" version="1.0.0"/> | ||
|
@@ -14,16 +14,21 @@ A script to quickly toss your Kodi logs from your Kodi client machine to somewhe | |
|
||
When something unexpected or bad happens, just run this add-on to copy the latest Kodi logs to your chosen destination. | ||
|
||
Even better, bind this to a remote button (use `Runscript(script.cabertoss)`) - so you can carry on with your relaxing and deal with the issue later (without having to wade through all the stuff you did after the issue happened!). | ||
Even better, bind this to a remote button (use `Runscript(script.cabertoss)`) - so you can carry on with your relaxing at the time, and deal with the issue later (without having to wade through all the stuff you did after the issue happened!). | ||
</description> | ||
<platform>all</platform> | ||
<license>GPL-3.0-only</license> | ||
<website>https://github.com/bossanova808/script.cabertoss</website> | ||
<source>https://github.com/bossanova808/script.cabertoss</source> | ||
<forum /> | ||
<email /> | ||
<news> | ||
v1.0.0 Initial release | ||
<forum>https://forum.kodi.tv/showthread.php?tid=379304</forum> | ||
<email>[email protected]</email> | ||
<news>v1.0.1 | ||
- Improve compatibility with network shares | ||
- Improve compatibility with Windows and *ELEC | ||
- Add hostname to logs folder, helps if using with multiple systems | ||
- Don't copy crashlogs older than three days | ||
- Language improvements | ||
- Add 'Working...' notification to make more responsive (copying larger log files can take a moment) | ||
</news> | ||
<assets> | ||
<icon>resources/icon.png</icon> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
v1.0.1 | ||
- Improve compatibility with network shares | ||
- Improve compatibility with Windows and *ELEC | ||
- Add hostname to logs folder, helps if using with multiple systems | ||
- Don't copy crashlogs older than three days | ||
- Language improvements | ||
- Add 'Working...' notification to make more responsive (copying larger log files can take a moment) | ||
|
||
v1.0.0 | ||
Initial release | ||
- Initial release | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import re | ||
|
||
|
||
def clean_log(content): | ||
""" | ||
Remove username/password details from log file content | ||
@param content: | ||
@return: | ||
""" | ||
replaces = (('//.+?:.+?@', '//USER:PASSWORD@'), ('<user>.+?</user>', '<user>USER</user>'), ('<pass>.+?</pass>', '<pass>PASSWORD</pass>'),) | ||
|
||
for pattern, repl in replaces: | ||
sanitised = re.sub(pattern, repl, content) | ||
return sanitised |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters