Commit Graph

919 Commits

Author SHA1 Message Date
0ba8e2bda0 Add a docstring for terminate_session 2018-06-16 23:53:17 -07:00
4ebfaf17bd Always send a notification if an agent is specified
Whenever a stream is killed, send a notification for that stream if a 
notification agent has been specified. If no username is specified, 
simply list the session ID.
2018-06-16 23:53:15 -07:00
2116082fd7 List --killMessage at the end
Although argparse should be smart enough to handle this in any order, 
it's generally easier for us poor humans to read the arguments if the 
unstructured one is the last argument. Re-order the listing to make this 
clearer.
2018-06-16 23:53:12 -07:00
342284173b Use the same session for all requests
Use the Session created at the start of the script for all requests, 
instead of creating a new one for some of them (which doesn't inherit 
the settings set on it at the start).
2018-06-16 23:51:53 -07:00
7b0cc2d2a9 Disable InsecureRequestWarning if SSL verify is False
If checking of HTTPS validity is disable, turn off the warning that it 
has been disabled since we have done so explicitly.
2018-06-16 23:51:51 -07:00
00f4bf26a9 Rename get_user_activity
This function was actually getting _just_ the session IDs, not the whole 
session data.
2018-06-16 23:51:48 -07:00
e56d23b12d Refactor get_activity into two functions
Create a new function get_user_activity that returns the same data 
get_activity originally did and use that in main. get_activity now 
actually follows the name and gets all activity on the server.
2018-06-16 23:51:46 -07:00
f7c555caa7 Add docbloc for send_notification 2018-06-16 23:51:43 -07:00
36c2ddaaf6 Fix PEP8 issues
Some minor refactoring to follow PEP8 guidlines.
2018-06-16 23:51:32 -07:00
578784a6f4 create config.ini 2018-06-16 11:26:24 -04:00
302820a075 headers for arg and cond examples. 2018-06-15 08:40:02 -04:00
e70787827d updated arguments comments.
moved examples.txt to readme.md
removed examples.txt
2018-06-15 08:32:28 -04:00
64f008d1eb Corrected killMessage processing.
updated argument instruction.
2018-06-14 08:56:20 -04:00
776fe7334b show --jbop choices. 2018-06-14 00:47:21 -04:00
aae31c9718 Merge pull request #74 from toomuchio/patch-1
Format syntax error [ instead of {
2018-06-14 00:02:50 -04:00
33c29f4bcc Format syntax error [ instead of { 2018-06-14 09:04:33 +10:00
c93972f46c overide/fallback clean up. 2018-06-12 15:51:08 -04:00
0d40df2755 requirements file. 2018-06-12 14:02:08 -04:00
58f9011850 adding examples page for kill_streams.py 2018-06-12 10:08:35 -04:00
1867061a93 Merge remote-tracking branch 'origin/master' 2018-06-12 10:07:01 -04:00
e1d904727c delete files, obsolete. 2018-06-12 10:06:45 -04:00
714b87b6b3 Merge remote-tracking branch 'origin/master' 2018-06-12 10:04:01 -04:00
89837c2e0a Delete vcs.xml 2018-06-12 10:02:27 -04:00
ed8213774b cleaning special characters from region, city, and friendly names.
removed unused get_platform function
2018-06-12 09:56:13 -04:00
454aa9e2d0 Fixes for matplotlib==2.2.2:
fillcontinents > drawlsmask
remove Latitude and Longitude grid for World map

Other:
Added choice for including/excluding a legend
Changed arg -l location to -m map
2018-06-12 09:56:12 -04:00
f92f3f08c8 Delete Project_Default.xml 2018-06-12 09:55:19 -04:00
d88fe8688d push to master 2018-06-12 09:55:19 -04:00
4686e2c712 Delete test.txt 2018-06-12 09:55:19 -04:00
dd0f99b170 testing pycharm push 2018-06-12 09:55:19 -04:00
555409d963 removing archive 2018-06-12 09:55:19 -04:00
99476b46f0 added backup of db 2018-06-12 09:55:19 -04:00
c0888d81ba cleaning special characters from region, city, and friendly names.
removed unused get_platform function
2018-06-12 09:55:19 -04:00
0849324df2 added discord button
discord button links to Tautulli's discord server. Buttons calls out Scripts section.
2018-06-12 09:55:18 -04:00
b6bb0520e7 get_history's grandparent_rating_key to int() 2018-06-12 09:55:18 -04:00
a8cee9b115 more messaging, moved episode check to conditions, correction for 0 watched history for the day. 2018-06-12 09:55:13 -04:00
bb9b42cae1 grk to int, stopped_time bracket correction. 2018-06-12 09:55:08 -04:00
fd3b3675d6 != instead of 'is not' 2018-06-12 09:55:08 -04:00
32e256f111 marking series watched instead of episode. child not item. 2018-06-12 09:55:07 -04:00
1ed70fb66e shows were being marked as watched if an episode was watched.
check each episode.
2018-06-12 09:55:07 -04:00
e3a70ec010 killstream clarity 2018-06-12 09:55:07 -04:00
406161120e clarity 2018-06-12 09:55:07 -04:00
dec77495c1 added support for admin account 2018-06-12 09:55:07 -04:00
8c910be961 env and override correction 2018-06-12 09:55:07 -04:00
fd893af4e9 token correction 2018-06-12 09:55:07 -04:00
d1a16f2bcd update getting url and token variables 2018-06-12 09:55:07 -04:00
44c2fa8858 Delete requirements.txt 2018-06-12 09:55:06 -04:00
bf97c0129a Create sync_watch_status.py 2018-06-12 09:55:06 -04:00
fffb73d0a1 Delete vcs.xml 2018-06-12 09:54:03 -04:00
4b2972bac6 Delete Project_Default.xml 2018-06-12 09:54:03 -04:00
89bd19747d push to master 2018-06-12 09:54:03 -04:00