diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 945ed0e..687c709 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 3eeea668-4ef4-464e-a888-bdfa023bedf5 management: docChecksum: a91eaf9ec1e6a3a6f4bf0571f5b18bae docVersion: 0.0.3 - speakeasyVersion: 1.235.2 - generationVersion: 2.298.2 - releaseVersion: 0.6.1 - configChecksum: 4b8d54de072a6cbeed3abbf44f6426db + speakeasyVersion: 1.241.0 + generationVersion: 2.300.0 + releaseVersion: 0.6.2 + configChecksum: 851d34f876d9ce54e1b12fc835ec6001 repoURL: https://github.com/LukeHagar/plexpy.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexpy.git @@ -14,7 +14,7 @@ management: features: python: constsAndDefaults: 0.1.3 - core: 4.6.2 + core: 4.6.3 flattening: 2.81.1 globalSecurity: 2.83.5 globalServerURLs: 2.82.2 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ac44fe2..7e6e0e6 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 0.6.1 + version: 0.6.2 additionalDependencies: dependencies: {} extraDependencies: diff --git a/RELEASES.md b/RELEASES.md index 57ff2b4..bd515c7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -138,4 +138,14 @@ Based on: ### Generated - [python v0.6.1] . ### Releases -- [PyPI v0.6.1] https://pypi.org/project/plex-api-client/0.6.1 - . \ No newline at end of file +- [PyPI v0.6.1] https://pypi.org/project/plex-api-client/0.6.1 - . + +## 2024-04-06 01:10:50 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.241.0 (2.300.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.6.2] . +### Releases +- [PyPI v0.6.2] https://pypi.org/project/plex-api-client/0.6.2 - . \ No newline at end of file diff --git a/setup.py b/setup.py index f2ba0e0..f861a7b 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ except FileNotFoundError: setuptools.setup( name='plex-api-client', - version='0.6.1', + version='0.6.2', author='LukeHagar', description='Python Client SDK Generated by Speakeasy', url='https://github.com/LukeHagar/plexpy.git', @@ -44,10 +44,12 @@ setuptools.setup( ], extras_require={ "dev": [ - "pylint==2.16.2", + "pylint==3.1.0", ], }, package_dir={'': 'src'}, python_requires='>=3.8', - package_data={'plex-api-client': ['py.typed']}, + package_data={ + 'plex-api-client': ['py.typed'] + }, ) diff --git a/src/plex_api/activities.py b/src/plex_api/activities.py index de49c77..cd6956a 100644 --- a/src/plex_api/activities.py +++ b/src/plex_api/activities.py @@ -148,4 +148,5 @@ class Activities: return res - \ No newline at end of file + + diff --git a/src/plex_api/authentication.py b/src/plex_api/authentication.py index 55991f7..7f441b5 100644 --- a/src/plex_api/authentication.py +++ b/src/plex_api/authentication.py @@ -143,4 +143,5 @@ class Authentication: return res - \ No newline at end of file + + diff --git a/src/plex_api/butler.py b/src/plex_api/butler.py index b0ad7f3..4b8e427 100644 --- a/src/plex_api/butler.py +++ b/src/plex_api/butler.py @@ -330,4 +330,5 @@ class Butler: return res - \ No newline at end of file + + diff --git a/src/plex_api/hubs.py b/src/plex_api/hubs.py index 377be21..d35749e 100644 --- a/src/plex_api/hubs.py +++ b/src/plex_api/hubs.py @@ -155,4 +155,5 @@ class Hubs: return res - \ No newline at end of file + + diff --git a/src/plex_api/library.py b/src/plex_api/library.py index bdeed1f..6619469 100644 --- a/src/plex_api/library.py +++ b/src/plex_api/library.py @@ -805,4 +805,5 @@ class Library: return res - \ No newline at end of file + + diff --git a/src/plex_api/log.py b/src/plex_api/log.py index 6d653d5..e5b4360 100644 --- a/src/plex_api/log.py +++ b/src/plex_api/log.py @@ -222,4 +222,5 @@ class Log: return res - \ No newline at end of file + + diff --git a/src/plex_api/media.py b/src/plex_api/media.py index 04a229f..718d3f5 100644 --- a/src/plex_api/media.py +++ b/src/plex_api/media.py @@ -207,4 +207,5 @@ class Media: return res - \ No newline at end of file + + diff --git a/src/plex_api/playlists.py b/src/plex_api/playlists.py index 1160f66..11061bc 100644 --- a/src/plex_api/playlists.py +++ b/src/plex_api/playlists.py @@ -626,4 +626,5 @@ class Playlists: return res - \ No newline at end of file + + diff --git a/src/plex_api/plex.py b/src/plex_api/plex.py index e254b2b..202a6c1 100644 --- a/src/plex_api/plex.py +++ b/src/plex_api/plex.py @@ -151,4 +151,5 @@ class Plex: return res - \ No newline at end of file + + diff --git a/src/plex_api/sdkconfiguration.py b/src/plex_api/sdkconfiguration.py index bd42ba7..7a06006 100644 --- a/src/plex_api/sdkconfiguration.py +++ b/src/plex_api/sdkconfiguration.py @@ -33,9 +33,9 @@ class SDKConfiguration: globals: Dict[str, Dict[str, Dict[str, Any]]] = field(default_factory=Dict) language: str = 'python' openapi_doc_version: str = '0.0.3' - sdk_version: str = '0.6.1' - gen_version: str = '2.298.2' - user_agent: str = 'speakeasy-sdk/python 0.6.1 2.298.2 0.0.3 plex-api-client' + sdk_version: str = '0.6.2' + gen_version: str = '2.300.0' + user_agent: str = 'speakeasy-sdk/python 0.6.2 2.300.0 0.0.3 plex-api-client' retry_config: Optional[RetryConfig] = None _hooks: Optional[SDKHooks] = None diff --git a/src/plex_api/search.py b/src/plex_api/search.py index 0ddec2c..a1afe2a 100644 --- a/src/plex_api/search.py +++ b/src/plex_api/search.py @@ -229,4 +229,5 @@ class Search: return res - \ No newline at end of file + + diff --git a/src/plex_api/server.py b/src/plex_api/server.py index 910f208..82164ad 100644 --- a/src/plex_api/server.py +++ b/src/plex_api/server.py @@ -522,4 +522,5 @@ class Server: return res - \ No newline at end of file + + diff --git a/src/plex_api/sessions.py b/src/plex_api/sessions.py index 832761a..36a4323 100644 --- a/src/plex_api/sessions.py +++ b/src/plex_api/sessions.py @@ -269,4 +269,5 @@ class Sessions: return res - \ No newline at end of file + + diff --git a/src/plex_api/statistics.py b/src/plex_api/statistics.py index 55b7db4..8504909 100644 --- a/src/plex_api/statistics.py +++ b/src/plex_api/statistics.py @@ -83,4 +83,5 @@ class Statistics: return res - \ No newline at end of file + + diff --git a/src/plex_api/updater.py b/src/plex_api/updater.py index b80d411..04c8a7a 100644 --- a/src/plex_api/updater.py +++ b/src/plex_api/updater.py @@ -209,4 +209,5 @@ class Updater: return res - \ No newline at end of file + + diff --git a/src/plex_api/utils/retries.py b/src/plex_api/utils/retries.py index dd35e6a..c40fc41 100644 --- a/src/plex_api/utils/retries.py +++ b/src/plex_api/utils/retries.py @@ -114,7 +114,6 @@ def retry_with_backoff(func, initial_interval=500, max_interval=60000, exponent= raise sleep = ((initial_interval/1000) * exponent**retries + random.uniform(0, 1)) - if sleep > max_interval/1000: - sleep = max_interval/1000 + sleep = min(sleep, max_interval / 1000) time.sleep(sleep) retries += 1 diff --git a/src/plex_api/video.py b/src/plex_api/video.py index 3b449e4..4ed0722 100644 --- a/src/plex_api/video.py +++ b/src/plex_api/video.py @@ -133,4 +133,5 @@ class Video: return res - \ No newline at end of file + +