Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Python PlexAPI documentation build configuration file, created by
# sphinx-quickstart on Sun Jan 8 23:50:18 2017.
Expand Down
1 change: 0 additions & 1 deletion plexapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import os
from logging.handlers import RotatingFileHandler
Expand Down
1 change: 0 additions & 1 deletion plexapi/alert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import json
import socket
from typing import Callable
Expand Down
1 change: 0 additions & 1 deletion plexapi/audio.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

import os
Expand Down
1 change: 0 additions & 1 deletion plexapi/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import re
from typing import TYPE_CHECKING, Generic, Iterable, List, Optional, TypeVar, Union
import weakref
Expand Down
1 change: 0 additions & 1 deletion plexapi/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time
import weakref
from xml.etree import ElementTree
Expand Down
1 change: 0 additions & 1 deletion plexapi/collection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from pathlib import Path
from urllib.parse import quote_plus

Expand Down
1 change: 0 additions & 1 deletion plexapi/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from collections import defaultdict
from configparser import ConfigParser
Expand Down
1 change: 0 additions & 1 deletion plexapi/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Constants used by plexapi."""

# Library version
Expand Down
3 changes: 0 additions & 3 deletions plexapi/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-


class PlexApiException(Exception):
""" Base class for all PlexAPI exceptions. """
pass
Expand Down
1 change: 0 additions & 1 deletion plexapi/library.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
Expand Down
1 change: 0 additions & 1 deletion plexapi/media.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from pathlib import Path
from urllib.parse import quote_plus
from xml.etree import ElementTree
Expand Down
1 change: 0 additions & 1 deletion plexapi/mixins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from collections import deque
from datetime import datetime
from typing import Deque, Set, Tuple, Union
Expand Down
1 change: 0 additions & 1 deletion plexapi/myplex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import copy
import hashlib
import html
Expand Down
1 change: 0 additions & 1 deletion plexapi/photo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from pathlib import Path
from urllib.parse import quote_plus
Expand Down
1 change: 0 additions & 1 deletion plexapi/playlist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import re
from itertools import groupby
from pathlib import Path
Expand Down
1 change: 0 additions & 1 deletion plexapi/playqueue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from urllib.parse import quote_plus

from plexapi import utils
Expand Down
1 change: 0 additions & 1 deletion plexapi/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from urllib.parse import urlencode

Expand Down
1 change: 0 additions & 1 deletion plexapi/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from collections import defaultdict
from urllib.parse import quote

Expand Down
1 change: 0 additions & 1 deletion plexapi/sonos.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import requests

from plexapi import CONFIG, X_PLEX_IDENTIFIER, TIMEOUT
Expand Down
1 change: 0 additions & 1 deletion plexapi/sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
You can work with Mobile Sync on other devices straight away, but if you'd like to use your app as a `sync-target` (when
you can set items to be synced to your app) you need to init some variables.
Expand Down
1 change: 0 additions & 1 deletion plexapi/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import base64
import functools
import json
Expand Down
1 change: 0 additions & 1 deletion plexapi/video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from pathlib import Path
from urllib.parse import quote_plus
Expand Down
1 change: 0 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
from os.path import dirname, abspath

Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import math
import os
import time
Expand Down
1 change: 0 additions & 1 deletion tests/test__prepare.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time

import pytest
Expand Down
3 changes: 0 additions & 3 deletions tests/test_actions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-


def test_refresh_section(tvshows):
tvshows.refresh()

Expand Down
1 change: 0 additions & 1 deletion tests/test_audio.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from urllib.parse import quote_plus

import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time

import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/test_collection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from urllib.parse import quote_plus

import pytest
Expand Down
2 changes: 0 additions & 2 deletions tests/test_history.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

def test_history_Movie(movie):
movie.markPlayed()
history = movie.history()
Expand Down
1 change: 0 additions & 1 deletion tests/test_library.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from collections import namedtuple
from datetime import datetime, timedelta
from urllib.parse import quote_plus
Expand Down
2 changes: 0 additions & 2 deletions tests/test_media.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

def _test_media_tag(obj, attr):
tags = getattr(obj, attr)
if tags:
Expand Down
1 change: 0 additions & 1 deletion tests/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import shlex
import subprocess
from os.path import abspath, dirname, join
Expand Down
1 change: 0 additions & 1 deletion tests/test_mixins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime

import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/test_myplex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import pytest
from plexapi.exceptions import BadRequest, NotFound, Unauthorized
from plexapi.myplex import MyPlexInvite
Expand Down
3 changes: 0 additions & 3 deletions tests/test_navigation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-


def test_navigate_around_show(account, plex):
show = plex.library.section("TV Shows").get("The 100")
seasons = show.seasons()
Expand Down
1 change: 0 additions & 1 deletion tests/test_photo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from urllib.parse import quote_plus

import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/test_playlist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time
from urllib.parse import quote_plus

Expand Down
1 change: 0 additions & 1 deletion tests/test_playqueue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from plexapi.exceptions import BadRequest
from plexapi.playqueue import PlayQueue
import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/test_search.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
# TODO: Many more tests is for search later.
1 change: 0 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import re
import time
from urllib.parse import quote_plus
Expand Down
1 change: 0 additions & 1 deletion tests/test_sonos.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from .payloads import SONOS_RESOURCES


Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time

import plexapi.utils as utils
Expand Down
1 change: 0 additions & 1 deletion tests/test_video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from datetime import datetime
from time import sleep
Expand Down
1 change: 0 additions & 1 deletion tools/plex-alertlistener.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Listen to plex alerts and print them to the console.
Because we're using print as a function, example only works in Python3.
Expand Down
1 change: 0 additions & 1 deletion tools/plex-autodelete.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-AutoDelete is a useful to delete all but the last X episodes of a show.
This comes in handy when you have a show you keep downloaded, but do not
Expand Down
1 change: 0 additions & 1 deletion tools/plex-backupwatched.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Backup and restore the watched status of Plex libraries to a json file.
"""
Expand Down
1 change: 0 additions & 1 deletion tools/plex-bootstraptest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
The script is used to bootstrap a the test environment for plexapi
with all the libraries required for testing.
Expand Down
1 change: 0 additions & 1 deletion tools/plex-download.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Allows downloading a Plex media item from a local or shared library. You
may specify the item by the PlexWeb url (everything after !) or by
Expand Down
1 change: 0 additions & 1 deletion tools/plex-dummyfiles.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-DummyFiles creates dummy files for testing with the proper
Plex folder and file naming structure.
Expand Down
1 change: 0 additions & 1 deletion tools/plex-gettoken.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-GetToken is a simple method to retrieve a Plex account token.
"""
Expand Down
1 change: 0 additions & 1 deletion tools/plex-listattrs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-ListAttrs is used during development of PlexAPI and loops through all media
items to build a collection of attributes on each media type. The resulting list
Expand Down
1 change: 0 additions & 1 deletion tools/plex-listdocattrs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-ListDocAttrs is used during development of PlexAPI.
Example usage: AttDS(dict or object).write()
Expand Down
1 change: 0 additions & 1 deletion tools/plex-listsettings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-ListSettings is used during development of PlexAPI and loops through available
setting items and separates them by group as well as display the variable type. The
Expand Down
1 change: 0 additions & 1 deletion tools/plex-listtokens.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-ListTokens is a simple utility to fetch and list all known Plex
Server tokens your plex.tv account has access to. Because this information
Expand Down
1 change: 0 additions & 1 deletion tools/plex-markwatched.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-MarkWatched is a useful to always mark a show as watched. This comes in
handy when you have a show you keep downloaded, but do not religiously watch
Expand Down
1 change: 0 additions & 1 deletion tools/plex-refreshtoken.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plex-RefreshToken is a simple method to refresh a Plex account token by pinging Plex.tv.
"""
Expand Down
1 change: 0 additions & 1 deletion tools/plex-teardowntest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Remove current Plex Server and a Client from MyPlex account. Useful when running tests in CI.
"""
Expand Down
1 change: 0 additions & 1 deletion tools/version_bump.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper script to bump the current version."""
import argparse
import re
Expand Down