Skip to content

Fixing the file search

Latest
Compare
Choose a tag to compare
@MajdLHB MajdLHB released this 26 Aug 11:43
· 1 commit to main since this release
fff8e18

Release Note: Bug Fix for Season and Episode Patterns Matching
Version: 1.0.4
Release Date: August 26, 2024

Bug Fix: Improved Handling of Season and Episode Patterns
This update addresses an issue where the script incorrectly handled season and episode numbers, leading to errors in pattern matching for certain cases. Specifically, the script now correctly distinguishes between single-digit and two-digit season/episode numbers, with special handling for cases where the first digit is 0.

Changes:
Season Number Handling:

The script now correctly identifies and handles seasons with one-digit and two-digit numbers, including cases where the season number starts with 0.
Patterns are generated accordingly to match various formats (e.g., Season01, Season1, S01, S1).
Episode Number Handling:

Similar improvements were made for episode numbers, ensuring that episodes with one-digit and two-digit numbers are correctly identified.
The script now handles episode numbers starting with 0 and generates the appropriate patterns.
Example of the Changes:
For Seasons:

If the season is 2, the script now correctly generates patterns like Season02, S02, Season 02.
If the season is 12, the script correctly generates patterns like Season12, S12, Season 12.
For Episodes:

If the episode is 5, the script now generates patterns like E05, Episode 05.
If the episode is 15, the script generates patterns like E15, Episode 15.
These changes ensure that the script reliably finds and matches season and episode folders, even when the number formatting varies.

Note:
This release focuses solely on improving pattern matching for seasons and episodes. If you encounter any further issues or have suggestions for enhancements, please report them in the issue tracker.

Thank you for using MajdSub!