Run futurize --unicode-literals

This commit is contained in:
JonnyWong16 2020-07-04 13:31:02 -07:00
parent dc6507ffed
commit 0d1685afed
No known key found for this signature in database
GPG Key ID: B1F1F9807184697A
58 changed files with 58 additions and 0 deletions

View File

@ -98,6 +98,7 @@ optional arguments:
- Create Aired Today Playlist from every library by Movies for admin user
"""
from __future__ import unicode_literals
from builtins import str
import sys

View File

@ -5,6 +5,7 @@
https://gist.github.com/blacktwin/4ccb79c7d01a95176b8e88bf4890cd2b
"""
from __future__ import print_function
from __future__ import unicode_literals
from plexapi.server import PlexServer
import random

View File

@ -17,6 +17,7 @@ Tautulli > Settings > Notification Agents > Scripts > Gear icon:
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from builtins import str
from past.utils import old_div

View File

@ -46,6 +46,7 @@ Tautulli > Settings > Notification Agents > New Script > Script Arguments:
Close
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object

View File

@ -46,6 +46,7 @@ Taultulli > Settings > Notification Agents > New Script > Script Arguments:
Close
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
import requests

View File

@ -27,6 +27,7 @@ optional arguments:
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import zip
from builtins import str

View File

@ -7,6 +7,7 @@ Find what was added TFRAME ago and not watched and notify admin using Tautulli.
TAUTULLI_URL + delete_media_info_cache?section_id={section_id}
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
from builtins import str

View File

@ -18,6 +18,7 @@ Tautulli Settings > Notification Agents > Scripts (Gear) > Script Timeout: 0 to
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from past.utils import old_div
import requests

View File

@ -18,6 +18,7 @@ Tautulli > Settings > Notification Agents > Scripts > Gear icon:
Recently Added: notify_fav_tv_all_movie.py
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import requests

View File

@ -17,6 +17,7 @@ Arguments passed from Tautulli
"""
from __future__ import unicode_literals
from builtins import object
import argparse
import requests

View File

@ -44,6 +44,7 @@ Note:
It does not have to be an active notification agent, just setup.
"""
from __future__ import print_function
from __future__ import unicode_literals
import os
import sys
import requests

View File

@ -17,6 +17,7 @@ Tautulli > Settings > Notification Agents > Scripts > Gear icon:
Recently Added: notify_user_favorite.py
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import requests

View File

@ -10,6 +10,7 @@ Restart Tautulli.
Place in Playback Start
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import argparse
import requests

View File

@ -47,6 +47,7 @@ Tautulli > Settings > Notification Agents > New Script > Script Arguments:
"""
from __future__ import unicode_literals
import os
import sys

View File

@ -16,6 +16,7 @@ Tautulli > Settings > Notifications > Script > Script Arguments:
https://gist.github.com/blacktwin/261c416dbed08291e6d12f6987d9bafa
"""
from __future__ import unicode_literals
from twitter import Twitter, OAuth
import argparse

View File

@ -8,6 +8,7 @@ Some Exceptions have been commented out to supress what is printed.
Uncomment Exceptions if you run into problem and need to investigate.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
from builtins import object

View File

@ -7,6 +7,7 @@
# {user} {title}
# Add to Playback Resume
from __future__ import unicode_literals
from builtins import object
import requests
import sys

View File

@ -7,6 +7,7 @@ This is find files that are corrupt or having playback issues.
I corrupted a file to test.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import requests

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import psutil
import requests

View File

@ -25,6 +25,7 @@ Usage:
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
import requests

View File

@ -18,6 +18,7 @@ Usage:
"""
from __future__ import print_function
from __future__ import unicode_literals
import requests
import sys

View File

@ -27,6 +27,7 @@ optional arguments:
If title is matched in both, Amazon is first then Netflix.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
import requests

View File

@ -18,6 +18,7 @@ Requires: requests, plexapi
"""
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import requests

View File

@ -5,6 +5,7 @@
Use Tautulli to count how many plays per user occurred this week.
Notify via Tautulli Notification
"""
from __future__ import unicode_literals
from builtins import object
import requests

View File

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import time
import argparse

View File

@ -12,6 +12,7 @@ Tautulli Settings > Extra Settings > Check - Calculate Total File Sizes [experi
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
from builtins import object
from plexapi.server import CONFIG

View File

@ -18,6 +18,7 @@
# --title {title} --section_id {section_id} --media_type {media_type} --rating_key {rating_key} --parent_rating_key {parent_rating_key} --grandparent_rating_key {grandparent_rating_key} --label "Label"
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import os
import requests

View File

@ -17,6 +17,7 @@ optional arguments:
List of IP addresses is cleared before adding new IPs
"""
from __future__ import print_function
from __future__ import unicode_literals
import requests
import argparse

View File

@ -8,6 +8,7 @@ If all users in list have watched an episode of listed show, then delete episode
Add deletion via Plex.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import requests

View File

@ -7,6 +7,7 @@ Author: DirtyCajunRice
Requires: requests, python3.6+
"""
from __future__ import print_function
from __future__ import unicode_literals
from requests import Session
from json.decoder import JSONDecodeError

View File

@ -11,6 +11,7 @@ find_plex_meta.py -s adventure -m movie
pulls all movie titles with adventure in the title
'''
from __future__ import print_function
from __future__ import unicode_literals
from plexapi.server import PlexServer, CONFIG

View File

@ -5,6 +5,7 @@
Find what was added TFRAME ago and not watched using Tautulli.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import input
from builtins import str

View File

@ -8,6 +8,7 @@ Requires: requests, plexapi, python3.6+
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from past.utils import old_div
from requests import Session
from plexapi.server import CONFIG

View File

@ -5,6 +5,7 @@
https://gist.github.com/blacktwin/f435aa0ccd498b0840d2407d599bf31d
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import input
import os

View File

@ -22,6 +22,7 @@
# * Watched (optional):
# --rating_key {rating_key} --file {file} --remove
from __future__ import unicode_literals
import argparse
import os
import requests

View File

@ -16,6 +16,7 @@
# --rating_key {rating_key} --filename {filename}
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
import argparse
import os

View File

@ -24,6 +24,7 @@ Enabling Scripts in Tautulli:
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import argparse
import datetime

View File

@ -45,6 +45,7 @@ original.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
import requests

View File

@ -37,6 +37,7 @@ Usage:
"""
from __future__ import print_function
from __future__ import unicode_literals
from plexapi.server import PlexServer, CONFIG
import argparse

View File

@ -37,6 +37,7 @@ Usage:
"""
from __future__ import print_function
from __future__ import unicode_literals
import argparse

View File

@ -14,6 +14,7 @@ Requires: plexapi
"""
from __future__ import print_function
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()

View File

@ -99,6 +99,7 @@ Usage:
"""
from __future__ import print_function
from __future__ import unicode_literals
from plexapi.server import PlexServer, CONFIG
import time

View File

@ -25,6 +25,7 @@ python plex_api_show_settings.py --libraries "TV Shows" --unwatched -7
- Keep Episodesfrom the past 7 days
"""
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import requests
from plexapi.server import PlexServer, CONFIG

View File

@ -46,6 +46,7 @@ Script Dance moves
https://gist.github.com/JonnyWong16/f554f407832076919dc6864a78432db2
"""
from __future__ import print_function
from __future__ import unicode_literals
from plexapi.server import PlexServer
from plexapi.server import CONFIG

View File

@ -9,6 +9,7 @@ Skips download if showname.jpg exists or if show does not exist.
"""
from __future__ import print_function
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()

View File

@ -17,6 +17,7 @@ optional arguments:
"""
from __future__ import print_function
from __future__ import unicode_literals
import requests

View File

@ -7,6 +7,7 @@ Theme songs are mp3 and named by shows as displayed by Plex.
Songs are saved in a 'Theme Songs' directory located in script's path.
"""
from __future__ import unicode_literals
from future import standard_library

View File

@ -5,6 +5,7 @@
"""
from __future__ import unicode_literals
from plexapi.server import PlexServer

View File

@ -7,6 +7,7 @@ Author: DirtyCajunRice
Requires: requests, plexapi, python3.6+
"""
from __future__ import print_function
from __future__ import unicode_literals
from requests import Session
from plexapi.server import CONFIG

View File

@ -15,6 +15,7 @@
# --rating_key {rating_key} --collection "New Releases" --days 180
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import os
from datetime import datetime, timedelta

View File

@ -16,6 +16,7 @@ Check Tautulli's Watched Percent in Tautulli > Settings > General
"""
from __future__ import print_function
from __future__ import unicode_literals
import requests
import sys

View File

@ -8,6 +8,7 @@ Just run.
Comment out `remove_friend(username)` and `unshare(username)` to test.
"""
from __future__ import print_function
from __future__ import unicode_literals
from sys import exit
from requests import Session
from datetime import datetime

View File

@ -5,6 +5,7 @@
# Author: /u/SwiftPanda16
# Requires: plexapi
from __future__ import unicode_literals
from plexapi.server import PlexServer
### EDIT SETTINGS ###

View File

@ -6,6 +6,7 @@
Deletion is prompted
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import input
from builtins import object

View File

@ -6,6 +6,7 @@
# Requires: plexapi
from __future__ import print_function
from __future__ import unicode_literals
from plexapi.server import PlexServer

View File

@ -50,6 +50,7 @@ Concurrent stream count is the trigger. Trigger can be anything you want.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str

View File

@ -56,6 +56,7 @@ Taultulli > Settings > Notification Agents > New Script > Script Arguments:
**Rating key must be a movie or episode. Shows and Seasons not support.... yet.
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import argparse
from plexapi.myplex import MyPlexAccount

View File

@ -7,6 +7,7 @@ Author: DirtyCajunRice
Requires: requests, python3.6+
"""
from __future__ import print_function
from __future__ import unicode_literals
from requests import Session
from plexapi.server import CONFIG
from urllib3 import disable_warnings