Skip to content

Commit

Permalink
Merge pull request #21 from MinionAttack/development
Browse files Browse the repository at this point in the history
The unnecessary quantifier has been removed, as recommended by SonarLint.
  • Loading branch information
MinionAttack committed Jun 18, 2022
2 parents 89890cb + 763cb1c commit 559cf60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/series_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def filter_full_season_torrents(options: Options, torrents: List[TorrentAvailabl

for torrent in torrents:
if torrent.title.find(options.quality) != -1:
season_only_match = re.search("(\.S\d\d\.){1}", torrent.filename)
season_only_match = re.search("(\.S\d\d\.)", torrent.filename)
if season_only_match is not None:
if options.season == torrent.season:
filtered_torrents.append(torrent)
Expand Down Expand Up @@ -213,7 +213,7 @@ def get_title(quality: str, raw_title: str) -> str:
def get_file_type(filename: str) -> str:
logger.info(f"Recovering file type.")

file_type_match = re.search("(]\.){1}", filename)
file_type_match = re.search("(]\.)", filename)
if file_type_match:
pieces = filename.split('].')[1]
file_type = pieces.upper()
Expand Down

0 comments on commit 559cf60

Please sign in to comment.