Run futurize --unicode-literals
This commit is contained in:
parent
dc6507ffed
commit
0d1685afed
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -27,6 +27,7 @@ optional arguments:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from builtins import zip
|
||||
from builtins import str
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -17,6 +17,7 @@ Arguments passed from Tautulli
|
||||
|
||||
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
from builtins import object
|
||||
import argparse
|
||||
import requests
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -47,6 +47,7 @@ Tautulli > Settings > Notification Agents > New Script > Script Arguments:
|
||||
|
||||
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -7,6 +7,7 @@
|
||||
# {user} {title}
|
||||
# Add to Playback Resume
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from builtins import object
|
||||
import requests
|
||||
import sys
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import psutil
|
||||
import requests
|
||||
|
||||
|
@ -25,6 +25,7 @@ Usage:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from builtins import str
|
||||
import requests
|
||||
|
@ -18,6 +18,7 @@ Usage:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import requests
|
||||
import sys
|
||||
|
@ -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
|
||||
|
@ -18,6 +18,7 @@ Requires: requests, plexapi
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import argparse
|
||||
import requests
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -22,6 +22,7 @@
|
||||
# * Watched (optional):
|
||||
# --rating_key {rating_key} --file {file} --remove
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import argparse
|
||||
import os
|
||||
import requests
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -45,6 +45,7 @@ original.
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from builtins import range
|
||||
import requests
|
||||
|
@ -37,6 +37,7 @@ Usage:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from plexapi.server import PlexServer, CONFIG
|
||||
import argparse
|
||||
|
@ -37,6 +37,7 @@ Usage:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
import argparse
|
||||
|
@ -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()
|
||||
|
@ -99,6 +99,7 @@ Usage:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from plexapi.server import PlexServer, CONFIG
|
||||
import time
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -17,6 +17,7 @@ optional arguments:
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
import requests
|
||||
|
@ -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
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from plexapi.server import PlexServer
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -5,6 +5,7 @@
|
||||
# Author: /u/SwiftPanda16
|
||||
# Requires: plexapi
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from plexapi.server import PlexServer
|
||||
|
||||
### EDIT SETTINGS ###
|
||||
|
@ -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
|
||||
|
@ -6,6 +6,7 @@
|
||||
# Requires: plexapi
|
||||
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
from plexapi.server import PlexServer
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user