Closed FlashLightning67 closed 2 weeks ago
The pull request introduces substantial modifications to the process_shows
function within the SymlinkLibrary
class in src/program/services/libraries/symlink.py
. The updates replace the previous episode number extraction logic with a new approach utilizing the parse_title
function, allowing for better handling of multiple episodes. The function now creates Episode
instances for each number in the list obtained from parse_title
, enhances error handling by deleting problematic files, and adjusts logging statements to align with the new logic.
File Path | Change Summary |
---|---|
src/program/services/libraries/symlink.py | Enhanced process_shows function to utilize parse_title for episode extraction; improved error handling by deleting problematic files; adjusted logging statements. |
In the burrow where shows align,
A rabbit hops through episode time.
With ranges now, we dance and play,
Extracting tales in a joyful way.
Errors vanish, files take flight,
A symphony of shows, oh what a sight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Have you tested this? We also need to verify that the downloaders are downloading episodes appropriately too. e.g. setting the same file for both episode items.
I have tested it, I've been manually loading these changes up every time I've had to reset my db for the past few months lol.
The symlinker seems handles these types of files well. The downloaders (at least RD) also handle them fine now too, the last refactor broke them but the refactor from today doesn't have that issue.
Ensures that all episodes are found from symlink titles when ingesting symlinks into the db. Fixes an issue with symlink ingestion where files containing multiple episodes would only have one of the episodes added to the db, which causes the missing episodes to be submitted for scraping again after every db reset.
Summary by CodeRabbit
New Features
Bug Fixes
Chores