Skip to content

Commit

Permalink
No need to specify not radarr
Browse files Browse the repository at this point in the history
  • Loading branch information
westsurname authored Dec 22, 2024
1 parent 8eb34b2 commit 4e9f307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blackhole.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ def print(*values: object):
isSeasonPack = firstItem.releaseType == 'SeasonPack'

# For season packs, we only need to fail one episode and trigger one search
items = [firstItem] if not isRadarr and isSeasonPack else items
items = [firstItem] if isSeasonPack else items

# Mark items as failed
failTasks = [asyncio.to_thread(arr.failHistoryItem, item.id) for item in items]
await asyncio.gather(*failTasks)

# For season packs in Sonarr, trigger a new search
if not isRadarr and isSeasonPack:
# For season packs, trigger a new search
if isSeasonPack:
for item in items:
series = await asyncio.to_thread(arr.get, item.grandparentId)
await asyncio.to_thread(arr.automaticSearch, series, item.parentId)
Expand Down

0 comments on commit 4e9f307

Please sign in to comment.