RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
435 stars 17 forks source link

Fix NotImplementedError in start_deep_analysis by using source() for episode history objects #100

Closed Heavybullets8 closed 4 days ago

Heavybullets8 commented 1 month ago

Resolved an issue in start_deep_analysis where calling reload() on a history object caused a NotImplementedError. Updated the method to use the source() method to retrieve the actual episode before calling reload(), ensuring compatibility with change_tracks and preventing the exception from occurring. Also added a check for None to handle cases where episode.source() returns None, indicating the episode has been deleted.

Resolves #99