Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidemarcoli committed May 18, 2024
2 parents bdafd68 + b8eec86 commit ae3118e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/utils/stremio_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ def parse_to_debrid_stream(torrent_item: TorrentItem, configb64, config, results
results.put({
"name": name,
"description": title,
"url": f"{config['addonHost']}/playback/{configb64}/{queryb64}"
"url": f"{config['addonHost']}/playback/{configb64}/{queryb64}",
"behaviorHints":{
"bingeGroup": f"stremio-jackett-{torrent_item.info_hash}",
"filename": torrent_item.file_name if torrent_item.file_name is not None else torrent_item.title
}
})

if config['torrenting'] and torrent_item.privacy != "private":
Expand All @@ -91,6 +95,10 @@ def parse_to_debrid_stream(torrent_item: TorrentItem, configb64, config, results
"description": title,
"infoHash": torrent_item.info_hash,
"fileIdx": int(torrent_item.file_index) if torrent_item.file_index else None,
"behaviorHints":{
"bingeGroup": f"stremio-jackett-{torrent_item.info_hash}",
"filename": torrent_item.file_name if torrent_item.file_name is not None else torrent_item.title
}
# "sources": ["tracker:" + tracker for tracker in torrent_item.trackers]
})

Expand Down

0 comments on commit ae3118e

Please sign in to comment.