Skip to content

Commit

Permalink
Run futurize --unicode-literals
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Jul 4, 2020
1 parent dc6507f commit 0d1685a
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions fun/playlist_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
- Create Aired Today Playlist from every library by Movies for admin user
"""
from __future__ import unicode_literals

from builtins import str
import sys
Expand Down
1 change: 1 addition & 0 deletions fun/plexapi_haiku.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions killstream/kill_else_if_buffering.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from builtins import str
from past.utils import old_div
Expand Down
1 change: 1 addition & 0 deletions killstream/kill_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
Close
"""
from __future__ import print_function
from __future__ import unicode_literals


from builtins import object
Expand Down
1 change: 1 addition & 0 deletions killstream/limiterr.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
Close
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import range
import requests
Expand Down
1 change: 1 addition & 0 deletions maps/ips_to_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import zip
from builtins import str
Expand Down
1 change: 1 addition & 0 deletions notify/find_unwatched_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions notify/notify_delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from past.utils import old_div
import requests
Expand Down
1 change: 1 addition & 0 deletions notify/notify_fav_tv_all_movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Recently Added: notify_fav_tv_all_movie.py
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import object
import requests
Expand Down
1 change: 1 addition & 0 deletions notify/notify_newip.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
from __future__ import unicode_literals
from builtins import object
import argparse
import requests
Expand Down
1 change: 1 addition & 0 deletions notify/notify_recently_aired.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions notify/notify_user_favorites.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Recently Added: notify_user_favorite.py
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import object
import requests
Expand Down
1 change: 1 addition & 0 deletions notify/notify_user_newip.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Place in Playback Start
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import argparse
import requests
Expand Down
1 change: 1 addition & 0 deletions notify/top_concurrent_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"""
from __future__ import unicode_literals

import os
import sys
Expand Down
1 change: 1 addition & 0 deletions notify/twitter_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
https://gist.github.com/blacktwin/261c416dbed08291e6d12f6987d9bafa
"""
from __future__ import unicode_literals

from twitter import Twitter, OAuth
import argparse
Expand Down
1 change: 1 addition & 0 deletions reporting/added_to_plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions reporting/check_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# {user} {title}
# Add to Playback Resume

from __future__ import unicode_literals
from builtins import object
import requests
import sys
Expand Down
1 change: 1 addition & 0 deletions reporting/check_plex_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
I corrupted a file to test.
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import object
import requests
Expand Down
1 change: 1 addition & 0 deletions reporting/drive_check.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals
import psutil
import requests

Expand Down
1 change: 1 addition & 0 deletions reporting/library_play_days.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import str
import requests
Expand Down
1 change: 1 addition & 0 deletions reporting/plays_by_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

import requests
import sys
Expand Down
1 change: 1 addition & 0 deletions reporting/plex_netflix_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions reporting/server_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import requests
Expand Down
1 change: 1 addition & 0 deletions reporting/userplays_weekly_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions reporting/watched_percentages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions reporting/weekly_stats_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
from builtins import object
from plexapi.server import CONFIG
Expand Down
1 change: 1 addition & 0 deletions utility/add_label_recently_added.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions utility/bypass_auth_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
List of IP addresses is cleared before adding new IPs
"""
from __future__ import print_function
from __future__ import unicode_literals

import requests
import argparse
Expand Down
1 change: 1 addition & 0 deletions utility/delete_watched_TV.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Add deletion via Plex.
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import object
import requests
Expand Down
1 change: 1 addition & 0 deletions utility/enable_disable_all_guest_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Requires: requests, python3.6+
"""
from __future__ import print_function
from __future__ import unicode_literals

from requests import Session
from json.decoder import JSONDecodeError
Expand Down
1 change: 1 addition & 0 deletions utility/find_plex_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions utility/find_unwatched.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions utility/get_serial_transcoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""
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
Expand Down
1 change: 1 addition & 0 deletions utility/grab_gdrive_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions utility/hide_episode_spoilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# * Watched (optional):
# --rating_key {rating_key} --file {file} --remove

from __future__ import unicode_literals
import argparse
import os
import requests
Expand Down
1 change: 1 addition & 0 deletions utility/mark_multiepisode_watched.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions utility/media_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
import argparse
import datetime
Expand Down
1 change: 1 addition & 0 deletions utility/off_deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from builtins import range
import requests
Expand Down
1 change: 1 addition & 0 deletions utility/plex_api_invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from plexapi.server import PlexServer, CONFIG
import argparse
Expand Down
1 change: 1 addition & 0 deletions utility/plex_api_parental_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals


import argparse
Expand Down
1 change: 1 addition & 0 deletions utility/plex_api_poster_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from future import standard_library
standard_library.install_aliases()
Expand Down
1 change: 1 addition & 0 deletions utility/plex_api_share.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from plexapi.server import PlexServer, CONFIG
import time
Expand Down
1 change: 1 addition & 0 deletions utility/plex_api_show_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,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
Expand Down
1 change: 1 addition & 0 deletions utility/plex_dance.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions utility/plex_imgur_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals

from future import standard_library
standard_library.install_aliases()
Expand Down
1 change: 1 addition & 0 deletions utility/plex_popular_playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
from __future__ import print_function
from __future__ import unicode_literals


import requests
Expand Down
1 change: 1 addition & 0 deletions utility/plex_theme_songs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Songs are saved in a 'Theme Songs' directory located in script's path.
"""
from __future__ import unicode_literals


from future import standard_library
Expand Down
1 change: 1 addition & 0 deletions utility/plexapi_delete_playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""
from __future__ import unicode_literals

from plexapi.server import PlexServer

Expand Down
1 change: 1 addition & 0 deletions utility/purge_removed_plex_friends.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Requires: requests, plexapi, python3.6+
"""
from __future__ import print_function
from __future__ import unicode_literals

from requests import Session
from plexapi.server import CONFIG
Expand Down
1 change: 1 addition & 0 deletions utility/recently_added_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 0d1685a

Please sign in to comment.