Skip to content
Discussion options

You must be logged in to vote

Yes; you can use torrents_file_priority().

For example:

torrent = client.torrents_info(torrent_hashes="<torrent hash>")[0]
# show torrent files
print(torrent.files)
# get all file IDs for epub files
epub_file_ids = [file.id for file in torrent.files if file.name.endswith("epub")]
# set epub files to "do not download"
torrent.file_priority(file_ids=epub_file_ids, priority=0)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kucingkembar
Comment options

Answer selected by rmartin16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #191 on May 01, 2023 15:50.