Skip to content

Conversation

@JonnyWong16
Copy link
Collaborator

Description

Remove all deprecated methods.

Type of change

Please delete options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods
  • I have added tests when applicable

Copilot AI review requested due to automatic review settings November 24, 2025 18:05
Copilot finished reviewing on behalf of JonnyWong16 November 24, 2025 18:07
Copy link
Contributor

Copilot AI left a comment

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant