Remove all deprecated methods by JonnyWong16 · Pull Request #1565 · pushingkarmaorg/python-plexapi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes all deprecated methods from the plexapi codebase as part of a breaking change. The deprecated methods have been replaced with newer equivalents in previous versions, and this PR completes the deprecation cycle by removing the old methods entirely. This cleanup improves code maintainability by eliminating duplicate functionality and reduces confusion for API consumers.

Key changes:

  • Removed all @deprecated decorators and deprecated method implementations
  • Cleaned up unused deprecated import statements from all affected modules
  • Removed deprecated wrapper methods that redirected to newer equivalents

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
plexapi/server.py Removed deprecated methods check_for_update (use checkForUpdate) and optimizedItem (use Optimized.items()), cleaned up deprecated import
plexapi/playlist.py Removed deprecated methods removeItem (use removeItems) and edit (use editTitle/editSummary), cleaned up deprecated import
plexapi/mixins.py Removed deprecated method _edit_tags (use editTags), updated import statement
plexapi/media.py Removed deprecated stream methods (setDefaultAudioStream, setDefaultSubtitleStream, resetDefaultSubtitleStream, setDefault) and deprecated Agent properties (languageCode, _settings), cleaned up deprecated import
plexapi/library.py Removed deprecated methods filterFields (use listFields) and listChoices (use listFilterChoices), cleaned up deprecated import
plexapi/collection.py Removed deprecated property children (use items()) and method edit (use specific edit methods), cleaned up deprecated import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.