Commit Graph

224 Commits

Author SHA1 Message Date
JonnyWong16
0d1685afed
Run futurize --unicode-literals 2020-07-04 13:31:02 -07:00
JonnyWong16
dc6507ffed
Run futurize --stage2 2020-07-04 13:23:47 -07:00
JonnyWong16
30dbccda77
Run futurize --stage1 2020-07-04 13:08:59 -07:00
blacktwin
36aa2dd3a3 address issue found when running with python3 2020-06-04 21:20:54 -04:00
blacktwin
8a80b7b3ac
Merge pull request #199 from JonnyWong16/master
Remove default subject and body for rich notification
2019-11-25 08:31:28 -05:00
JonnyWong16
55740a099a Remove default subject and body for rich notification 2019-11-24 22:38:04 -08:00
Landon Abney
66ac37b34e
Print raw response when JSON fails to parse
If the response to the Tautulli API fails to parse correctly include the 
raw output in the message to make it easier to diagnose when the 
response isn't actually raw JSON from a Tautulli server (e.g. a proxy 
server).
2019-10-27 20:04:36 -07:00
blacktwin
f7f0e19394 update examples
include use of `--days` argument for rolling history
2019-10-23 15:07:07 -04:00
blacktwin
bac3e88ad8 loop correction 2019-10-23 14:56:31 -04:00
blacktwin
b5fd014c17 #172 update limit section for new history collector 2019-10-14 17:25:58 -04:00
blacktwin
82c7704fab starting work on #172
collect history from N days ago
2019-10-12 16:05:17 -04:00
Blacktwin
8cbdf2de55 #179 If duration is used convert to seconds from minutes 2019-07-22 16:03:50 -04:00
Landon Abney
2be0e376f8
Massive style cleanup
Adds a basic `setup.cfg` file with configurations for flake8 and pylama, 
fixes some basic issues with essentially every file including:
* Many, many, whitespace line cleanups
* Several unused variables and imports
* Missing coding and shabang lines
* Minor style fixes to more closely align with PEP8
* Turn `print` into function calls for Python 2/3 compat
* A few minor bugs
  * Things like using an undefined `i` in `stream_limiter_ban_email.py`
2019-06-20 23:55:11 -07:00
Blacktwin
a7a6a9381d Credit goes to @jonnywong16 2019-05-29 15:06:20 -04:00
Blacktwin
4739ae9615 remove unused function. 2019-04-30 10:12:41 -04:00
Blacktwin
7db5c68061 #155, adding kill when duration exceeds limit. Kill at limit. 2019-04-30 10:12:39 -04:00
Blacktwin
f626a9daa1 #155 add duration example 2019-04-25 16:11:57 -04:00
Blacktwin
7128597beb change single to double quotes 2019-04-25 16:11:34 -04:00
Blacktwin
3811bfa5fc #155 adding duration into total time check 2019-04-25 15:54:37 -04:00
Blacktwin
58e7fd1335 #138 message fix 2019-01-11 18:20:39 -05:00
Blacktwin
bc9d1bc550 Unique IP example update to User Concurrent Streams 2019-01-03 11:41:59 -05:00
dirtycajunrice
d9e383f871 removed multipstreams and changed readme to show example of working multi ip stream change 2018-12-23 21:07:46 -06:00
dirtycajunrice
a27056a11f fixed condition in which if user streams is set to more than one, it
would try to kill and notify x times more
2018-12-19 23:49:20 -06:00
dirtycajunrice
79088cf6ce added readme and snuck my name in >.< 2018-12-19 23:47:08 -06:00
dirtycajunrice
93ddee995e fixed rich message pointer from Arc 2018-12-19 23:26:35 -06:00
dirtycajunrice
d1443d2670 final addition to initialize ip_address for linting 2018-12-19 21:18:34 -06:00
dirtycajunrice
758af21ade spacing 2018-12-19 21:17:44 -06:00
dirtycajunrice
457486924e added functionality for dropping multi IP users 2018-12-19 21:15:45 -06:00
dirtycajunrice
f9ce8eae63 removed all instances of shadow of outer scope, made explicit from
implicit inheritance, defined a few docstring params, initialized 2 vars
2018-12-19 19:57:30 -06:00
dirtycajunrice
463586ff29 fixed typos and sams rename 2018-12-19 19:08:27 -06:00
dirtycajunrice
aa6017374e moved to bullet points for uniformity with conditions 2018-12-19 18:02:31 -06:00
dirtycajunrice
72fbf36377 fixed disappearing whitespace 2018-12-19 17:59:21 -06:00
dirtycajunrice
64f2312248 Updated readme to include Transcode Decision Change and explain
transcoding decision vs. video decision
2018-12-19 17:53:29 -06:00
Blacktwin
f7a7125783 24 is not valid. 0 instead. 2018-12-06 10:16:03 -05:00
Blacktwin
591c299af6 fix for title and transcode sessions 2018-11-19 23:41:58 -05:00
Blacktwin
17baec0e5d edit example to include --today 2018-10-24 00:44:11 -04:00
Blacktwin
dbb03e595f docstring --today 2018-10-24 00:43:39 -04:00
Blacktwin
f9f8cf401a added --today to only search for history of today 2018-10-16 15:03:48 -04:00
Blacktwin
19e85e6dbb Merge remote-tracking branch 'origin/master' 2018-10-07 09:20:44 -04:00
Landon Abney
c96596f422
Cleanup Rich Notifications instructions
Essentially just some stylistic changes, `slack` -> `Slack`, fixing bullet lists, and making the required arguments section clearer.
2018-10-03 11:27:09 -07:00
Blacktwin
78d196c4df remove unshare function 2018-09-26 16:08:29 -04:00
Blacktwin
85ada26e3d example for limit of specific library 2018-09-26 15:44:10 -04:00
Blacktwin
c34736f124 print reason for limit kill 2018-09-26 15:22:11 -04:00
Blacktwin
0c2d97cad4 docstring correction 2018-09-26 09:09:46 -04:00
Blacktwin
6fff1c61df update rich notification section 2018-09-26 09:09:16 -04:00
samwiseg00
8fffc30c77 Update README to reflect new kill_stream features 2018-09-08 23:58:08 -04:00
samwiseg00
713f6fbe56 Rewrite Kill_stream.py to add rich message functionality 2018-09-08 20:31:06 -04:00
blacktwin
038c17c41d
Merge pull request #88 from JonnyWong16/kill-pause-username
Add username argument for kill paused
2018-08-14 13:53:16 -04:00
JonnyWong16
ec07cebef9 Add username argument for kill paused 2018-08-13 21:15:31 -07:00
Blacktwin
8c3781728a sessionId check bypass if jbop == allstreams.
sessionId arg not needed for killing all user streams.
2018-08-13 07:03:37 -04:00