Commit graph

2304 commits

Author SHA1 Message Date
blacktwin
620056a234 update test_video_Show_editAdvanced_default to use 1 str/text and 1 int/int based change 2020-07-28 11:18:14 -04:00
blacktwin
18973e2f2d update editAdvanced method to work with py2 drop 2020-07-28 11:16:31 -04:00
blacktwin
5045ddc04b removed deprecated _str function as py2 support has been dropped
update _str references to use builin str instead
update settings.Preferences class for py2 drop
2020-07-28 11:15:29 -04:00
blacktwin
337ad9d88c correct assertion for default and value comparision. 2020-07-27 15:54:54 -04:00
blacktwin
252d7e05a8 update video.Video.optimize method to use new library.LibrarySection._locations method 2020-07-24 14:11:01 -04:00
blacktwin
3c0fa04a12 create _locations method in library.LibrarySection to return the librar.Location objects 2020-07-24 14:09:58 -04:00
blacktwin
142448b4c8 return library.LibrarySection.locations to previous listAttrs that returns a str 2020-07-24 14:09:13 -04:00
Steffen Fredriksen
6573b8b562
Merge pull request #531 from tdorsey/patch-2
chore(utils): fix typo
2020-07-24 12:01:35 +02:00
Steffen Fredriksen
65fa780383
Merge pull request #520 from jjlawren/fix_elementtree_warnings
Fix ElementTree warnings
2020-07-24 12:01:02 +02:00
Steffen Fredriksen
6d82abae1c
Merge pull request #528 from andy-maier/andy/add-license-to-package
Fixes #527: Added BSD license information to package metadata
2020-07-24 12:00:04 +02:00
Nate Harris
f5647e52c2
Playlist creation - check items are included, raise exception 2020-07-23 19:31:27 -04:00
tdorsey
7c346f9917
chore(utils): fix typo 2020-07-18 08:45:41 -04:00
blacktwin
998ed04a6c update docstrings for AccountSettings and AccountOptOut 2020-07-16 21:21:26 -04:00
blacktwin
de58965a9d add check in augmentation method for Plex Pass or tidal opt-in
update docstring for method
2020-07-16 21:10:50 -04:00
blacktwin
b917a33131 create settings method and myplex.AccountSettings class 2020-07-16 21:05:35 -04:00
blacktwin
120dbc5f1c create AccountOptOut class 2020-07-16 21:01:49 -04:00
blacktwin
50515730b0 create onlineMediaSources method
pulls in opt in/out status of Online Media Sources
2020-07-16 21:00:45 -04:00
blacktwin
fd89bacba2 add SETTINGS endpoint for user settings 2020-07-16 20:59:27 -04:00
blacktwin
c46aa3b5bb create augmentation method in video.Video 2020-07-16 05:29:52 -04:00
blacktwin
f36f549681 video.Video hubs method correction 2020-07-16 05:27:44 -04:00
blacktwin
c0454f6eb5 import MediaContainer from base 2020-07-15 16:15:35 -04:00
blacktwin
451b689c0d create MediaContainer class in base.py 2020-07-15 16:09:05 -04:00
blacktwin
6f37a7b8c2 move hubs into video.Video 2020-07-15 16:07:02 -04:00
blacktwin
3fcfe23d23 add extras method to video.Movie class 2020-07-15 14:42:23 -04:00
blacktwin
7b364a5cb8 create Extra class in video 2020-07-15 14:41:52 -04:00
blacktwin
c7f8b86ec5 add reviews method to video.Movie class 2020-07-15 14:41:09 -04:00
blacktwin
4b908a8f2d create media.Review class 2020-07-15 14:37:46 -04:00
Andreas Maier
ad18a4500c Added fallback to distutils if setuptools is not installed
Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
2020-07-12 16:24:05 +02:00
Andreas Maier
4b2e38d9eb Fixes #527: Added BSD license information to package metadata
Details:

* WHile Github correctly detects the BSD license from LICENSE.txt, Pypi does
  not and needs either a Trove classifier or the license argument specified
  in setup(). This change adds that the package supports the BSD license as
  a classifier, following the recommendation in
  https://packaging.python.org/guides/distributing-packages-using-setuptools/#license

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
2020-07-12 16:00:41 +02:00
Andreas Maier
fae666a757 Fixes #525: Added package metadata for supported Python versions
Details:

* This change adds package metadata to indicate that the current
  version of PlexAPI only supports Python 3. Because Python 3.5 is
  the lowest Python version supported by the PSF, the minimum
  Python version indicated in the package metadata is 3.5.
  (as per the python_requires argument of setup()).

* Added Trove classifiers for OS independency and for Python versions,
  although Python is only stated very generally as Python 3,
  in order to avoid maintenance effort when new Python 3.x versions
  will be released in the future.

* Using the python_requires argument of setup() required using
  setuptools instead of distutils. Distutils is pretty old stuff
  anyway and should not be used anymore.
  Setuptools is automatically part of any Python 3.x environment
  these days, including virtual Python environments.
  For details on distutils vs setuptools, see for example
  https://packaging.python.org/guides/tool-recommendations/#packaging-tool-recommendations

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
2020-07-12 15:42:31 +02:00
blacktwin
83c4e64ed6 add library.Collection._preferences() method 2020-07-02 14:40:28 -04:00
blacktwin
2112f778db create library.folders method 2020-07-02 01:33:36 -04:00
blacktwin
a5b5438122 create library.Folder class 2020-07-02 01:33:18 -04:00
blacktwin
f079f7d061 library.FirstCharacter docstring 2020-07-02 00:43:21 -04:00
blacktwin
5c3695d223 library.FieldType docstring 2020-07-02 00:42:51 -04:00
blacktwin
6cad8c1eb0 library.Operator docstring 2020-07-02 00:42:28 -04:00
blacktwin
8aa492f195 library.FilterField docstring 2020-07-02 00:40:51 -04:00
blacktwin
bf5d8b8ba3 library.Sort docstring 2020-07-02 00:40:12 -04:00
blacktwin
1e58e9c5fd library.Field class rename to FilterField
update library.LibrarySection.filterFields() usage
2020-07-02 00:39:34 -04:00
blacktwin
8eadcb28aa library.LibrarySection.filterFields() docstring 2020-07-02 00:37:50 -04:00
blacktwin
257b7ae61e library.LibrarySection._sorts() docstring 2020-07-02 00:36:46 -04:00
blacktwin
23e641eaa3 change if to check both conditions at the same time.
thanks @hellowlol
2020-07-01 22:28:25 -04:00
blacktwin
ea6538f596 removal of all ALLOWED_FILTERS, ALLOWED_SORT, BOOLEAN_FILTERS instances and docstring references. 2020-06-30 09:39:16 -04:00
blacktwin
14c122c87b update library.LibrarySection._cleanSearchSort method to pull sort keys from LibrarySection._sorts() instead of using hardcoded ALLOWED_SORT. 2020-06-30 09:33:53 -04:00
blacktwin
a665d6f3ee update library.LibrarySection._cleanSearchFilter method to pull categories from LibrarySection.filterFields() instead of using hardcoded ALLOWED_FILTERS or BOOLEAN_FILTERS. 2020-06-30 09:32:58 -04:00
blacktwin
9ec2399b21 add filterFields method to library.LibrarySection 2020-06-30 09:24:12 -04:00
blacktwin
9936ee553d create Field, Operator, and FieldType classes 2020-06-30 09:23:18 -04:00
blacktwin
d0943a369e add firstCharacterKey attribute to library.Sort class 2020-06-30 09:21:44 -04:00
blacktwin
4a49ca97b0 add _sorts method 2020-06-30 09:19:53 -04:00
blacktwin
e5d79c7518 add Sort class 2020-06-30 09:06:26 -04:00