Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
westsurname authored Dec 22, 2024
1 parent 1d24d5c commit a872db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blackhole.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def print(*values: object):
print(f"Failing")

torrentHash = torrent.getHash()
history = await asyncio.to_thread(arr.getHistory, blackhole['historyPageSize'])
history = await asyncio.to_thread(arr.getHistory, blackhole['historyPageSize'], includeGrandchildDetails=True)
items = [item for item in history if (item.torrentInfoHash and item.torrentInfoHash.casefold() == torrentHash.casefold()) or cleanFileName(item.sourceTitle.casefold()) == torrent.file.fileInfo.filenameWithoutExt.casefold()]

if not items:
Expand Down
1 change: 1 addition & 0 deletions shared/arr.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def parentId(self):
return self.json['episode']['seasonNumber']

@property
# Requires includeGrandchildDetails to be true
def grandparentId(self):
"""Get the series ID from the history item."""
return self.json['episode']['seriesId']
Expand Down

0 comments on commit a872db0

Please sign in to comment.