qbit_manage: [Bug]: min_seeding_time not working
Describe the Bug
min_seeding_time doesn’t seem to work on any of my torrents. For most, but not all torrents, once they’re completed they don’t seed. If they complete in 4 minutes but my min_seeding_time is set to 60 minutes, it has no effect. It won’t seed. You can look specifically at my public share-limit.
I don’t think the logs help.
Am I misunderstanding something?
Config
# This is an example configuration file that documents all the options.
# It will need to be modified for your specific use case.
# Please refer to the link below for more details on how to set up the configuration file
# https://github.com/StuffAnThings/qbit_manage/wiki/Config-Setup
commands:
# The commands defined below will IGNORE any commands used in command line and docker env variables.
dry_run: False
cross_seed: False
recheck: False
cat_update: True
tag_update: True
rem_unregistered: True
tag_tracker_error: False
rem_orphaned: True
#tag_nohardlinks: False
share_limits: True
skip_qb_version_check: False
skip_cleanup: False
tag_nohardlinks: False
qbt:
# qBittorrent parameters
host: ip:port
user: username
pass: password
settings:
force_auto_tmm: False # Will force qBittorrent to enable Automatic Torrent Management for each torrent.
#tracker_error_tag: iss # Will set the tag of any torrents that do not have a working tracker.
nohardlinks_tag: noHL # Will set the tag of any torrents with no hardlinks.
share_limits_tag: sl # Will add this tag when applying share limits to provide an easy way to filter torrents by share limit group/priority for each torrent
share_limits_min_seeding_time_tag: nmst # Tag to be added to torrents that have not yet reached the minimum seeding time
share_limits_min_num_seeds_tag: nmsn # Tag to be added to torrents that have not yet reached the minimum number of seeds
share_limits_last_active_tag: nla # Tag to be added to torrents that have not yet reached the last active limit
ignoreTags_OnUpdate: # When running tag-update function, it will update torrent tags for a given torrent even if the torrent has at least one or more of the tags defined here. Otherwise torrents will not be tagged if tags exist.
- noHL
- iss
- cs
- mst
- msn
- nla
cross_seed_tag: cs # Will set the tag of any torrents that are added by cross-seed command
cat_filter_completed: True # Filters for completed torrents only when running cat_update command
share_limits_filter_completed: True # Filters for completed torrents only when running share_limits command
tag_nohardlinks_filter_completed: True # Filters for completed torrents only when running tag_nohardlinks command
force_retag_all: False # Forces all torrents to be updated on every run (may cause performance issues). This does not remove any previous tags assigned
directory:
# Do not remove these
# Cross-seed var: </your/path/here/> # Output directory of cross-seed
# root_dir var: </your/path/here/> # Root downloads directory used to check for orphaned files, noHL, and RecycleBin.
# <OPTIONAL> remote_dir var: </your/path/here/> # Path of docker host mapping of root_dir.
# remote_dir must be set if you're running qbit_manage locally and qBittorrent/cross_seed is in a docker
# remote_dir should not be set if qbit_manage is running in a container
# <OPTIONAL> recycle_bin var: </your/path/here/> # Path of the RecycleBin folder. Default location is set to remote_dir/.RecycleBin
# <OPTIONAL> torrents_dir var: </your/path/here/> # Path of the your qbittorrent torrents directory. Required for `save_torrents` attribute in recyclebin
# <OPTIONAL> orphaned_dir var: </your/path/here/> # Path of the the Orphaned Data folder. This is similar to RecycleBin, but only for orphaned data.
cross_seed: /home/username/downloads/qbittorrent/__cross-seed
root_dir: /home/username/downloads/qbittorrent
#remote_dir: "/mnt/user/data/torrents/"
recycle_bin: /home/username/downloads/qbittorrent/__recycle-bin
#torrents_dir: "/qbittorrent/data/BT_backup"
orphaned_dir: /home/username/downloads/qbittorrent/__orphaned_data
remote_dir: /home/username/downloads/qbittorrent/
torrents_dir:
cat:
# Category & Path Parameters
# <Category Name> : <save_path> # Path of your save directory.
tv-sonarr: /home/username/downloads/qbittorrent/__tv-sonarr
movies-radarr: /home/username/downloads/qbittorrent/__movies-radarr
private-sonarr: /home/username/downloads/qbittorrent/__private-sonarr
private-radarr: /home/username/downloads/qbittorrent/__private-radarr
cat_change:
# This moves all the torrents from one category to another category. This executes on --cat-update
# WARNING: if the paths are different and Default Torrent Management Mode is set to automatic the files could be moved !!!
# <Old Category Name> : <New Category>
#Radarr-HD.cross-seed: movies-hd
#Radarr-UHD.cross-seed: movies-uhd
#movies-hd.cross-seed: movies-hd
#movies-uhd.cross-seed: movies-uhd
tracker:
# Mandatory
# Tag Parameters
# <Tracker URL Keyword>: # <MANDATORY> This is the keyword in the tracker url. You can define multiple tracker urls by splitting with `|` delimiter
# <MANDATORY> Set tag name. Can be a list of tags or a single tag
# tag: <Tag Name>
# <OPTIONAL> Set the category based on tracker URL. This category option takes priority over the category defined by save directory
# cat: <Category Name>
# <OPTIONAL> Set this to the notifiarr react name. This is used to add indexer reactions to the notifications sent by Notifiarr
# notifiarr: <notifiarr indexer>
tagnames:
something:
- something
another-thing:
- another-thing
again-another-thing:
- again-another-thing
# The "other" key is a special keyword and if defined will tag any other trackers that don't match the above trackers into this tag
other:
tag: other
nohardlinks:
# Tag Movies/Series that are not hard linked outside the root directory
# Mandatory to fill out directory parameter above to use this function (root_dir/remote_dir)
# This variable should be set to your category name of your completed movies/completed series in qbit. Acceptable variable can be any category you would like to tag if there are no hardlinks found
#- movies-completed-4k
#- series-completed-4k
#- movies-completed:
# <OPTIONAL> exclude_tags var: Will exclude torrents with any of the following tags when searching through the category.
#exclude_tags:
#- Beyond-HD
#- AnimeBytes
#- MaM
# Can have additional categories set with separate ratio/seeding times defined.
#- series-completed:
# <OPTIONAL> exclude_tags var: Will exclude torrents with any of the following tags when searching through the category.
#exclude_tags:
#- Beyond-HD
#- BroadcasTheNet
share_limits:
# Control how torrent share limits are set depending on the priority of your grouping
# Each torrent will be matched with the share limit group with the highest priority that meets the group filter criteria.
# Each torrent can only be matched with one share limit group
# This variable is mandatory and is a text defining the name of your grouping. This can be any string you want
private:
priority: 1
include_any_tags:
- something
categories:
- private-sonarr
- private-radarr
- autobrr
max_ratio: 999
max_seeding_time: 20180
min_seeding_time: 20170
resume_torrent_after_change: True
cleanup: False
another-thing:
priority: 2
include_any_tags:
- another-thing
max_ratio: 3
max_seeding_time: 10100
min_seeding_time: 10090
resume_torrent_after_change: True
cleanup: True
again-another-thing:
priority: 3
include_any_tags:
- again-another-thing
max_ratio: 2
max_seeding_time: 10100
min_seeding_time: 10090
resume_torrent_after_change: True
cleanup: False
noHL:
# <MANDATORY> priority: <int/float> # This is the priority of your grouping. The lower the number the higher the priority
priority: 8
# <OPTIONAL> include_all_tags: <list> # Filter the group based on one or more tags. Multiple include_all_tags are checked with an AND condition
# All tags defined here must be present in the torrent for it to be included in this group
include_all_tags:
- noHL
# <OPTIONAL> include_any_tags: <list> # Filter the group based on one or more tags. Multiple include_any_tags are checked with an OR condition
# Any tags defined here must be present in the torrent for it to be included in this group
include_any_tags:
- noHL
# <OPTIONAL> exclude_all_tags: <list> # Filter by excluding one or more tags. Multiple exclude_all_tags are checked with an AND condition
# This is useful to combine with the category filter to exclude one or more tags from an entire category
# All tags defined here must be present in the torrent for it to be excluded in this group
#exclude_all_tags:
#- Beyond-HD
# <OPTIONAL> exclude_any_tags: <list> # Filter by excluding one or more tags. Multiple exclude_any_tags are checked with an OR condition
# This is useful to combine with the category filter to exclude one or more tags from an entire category
# Any tags defined here must be present in the torrent for it to be excluded in this group
#exclude_any_tags:
#- Beyond-HD
# <OPTIONAL> categories: <list> # Filter by including one or more categories. Multiple categories are checked with an OR condition
# Since one torrent can only be associated with a single category, multiple categories are checked with an OR condition
#categories:
#- RadarrComplete
#- SonarrComplete
# <OPTIONAL> max_ratio <float>: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading and may be cleaned up / removed if the minimums have been met.
# Will default to -1 (no limit) if not specified for the group.
#max_ratio: 5.0
# <OPTIONAL> max_seeding_time <int>: Will set the torrent Maximum seeding time (minutes) until torrent is stopped from seeding/uploading and may be cleaned up / removed if the minimums have been met.
# Will default to -1 (no limit) if not specified for the group.
#max_seeding_time: 129600
# <OPTIONAL> min_seeding_time <int>: Will prevent torrent deletion by cleanup variable if torrent has not yet minimum seeding time (minutes).
# This should only be set if you are using this in conjunction with max_seeding_time and max_ratio. If you are not setting a max_ratio, then use max_seeding_time instead.
# If the torrent has not yet reached this minimum seeding time, it will change the share limits back to no limits and resume the torrent to continue seeding.
# Will default to 0 if not specified for the group.
#min_seeding_time: 43200
# <OPTIONAL> last_active <int>: Will prevent torrent deletion by cleanup variable if torrent has been active within the last x minutes.
# If the torrent has been active within the last x minutes, it will change the share limits back to no limits and resume the torrent to continue seeding.
# Will default to 0 if not specified for the group.
#last_active: 43200
# <OPTIONAL> Limit Upload Speed <int>: Will limit the upload speed KiB/s (KiloBytes/second) (`-1` : No Limit)
#limit_upload_speed: 0
# <OPTIONAL> Enable Group Upload Speed <bool>: Upload speed limits are applied at the group level. This will take limit_upload_speed defined and divide it equally among the number of torrents in the group.
#enable_group_upload_speed: False
# <OPTIONAL> cleanup <bool>: WARNING!! Setting this as True Will remove and delete contents of any torrents that satisfies the share limits (max time OR max ratio)
#cleanup: False
# <OPTIONAL> resume_torrent_after_change <bool>: This variable will resume your torrent after changing share limits. Default is True
#resume_torrent_after_change: True
# <OPTIONAL> add_group_to_tag <bool>: This adds your grouping as a tag with a prefix defined in settings . Default is True
# Example: A grouping defined as noHL will have a tag set to ~share_limit.noHL (if using the default prefix)
#add_group_to_tag: True
# <OPTIONAL> min_num_seeds <int>: Will prevent torrent deletion by cleanup variable if the number of seeds is less than the value set here.
# If the torrent has less number of seeds than the min_num_seeds, the share limits will be changed back to no limits and resume the torrent to continue seeding.
# Will default to 0 if not specified for the group.
#min_num_seeds: 0
cleanup: False
public:
priority: 9
exclude_any_tags:
- something
- another-thing
- again-another-thing
max_ratio: 1
min_seeding_time: 60
max_seeding_time: 70
resume_torrent_after_change: True
cleanup: False
recyclebin:
# Recycle Bin method of deletion will move files into the recycle bin (Located in /root_dir/.RecycleBin) instead of directly deleting them in qbit
# By default the Recycle Bin will be emptied on every run of the qbit_manage script if empty_after_x_days is defined.
enabled: True
# <OPTIONAL> empty_after_x_days var:
# Will automatically remove all files and folders in recycle bin after x days. (Checks every script run)
# If this variable is not defined it, the RecycleBin will never be emptied.
# WARNING: Setting this variable to 0 will delete all files immediately upon script run!
empty_after_x_days: 3
# <OPTIONAL> save_torrents var:
# If this option is set to True you MUST fill out the torrents_dir in the directory attribute.
# This will save a copy of your .torrent and .fastresume file in the recycle bin before deleting it from qbittorrent
save_torrents: False
# <OPTIONAL> split_by_category var:
# This will split the recycle bin folder by the save path defined in the `cat` attribute
# and add the base folder name of the recycle bin that was defined in the `recycle_bin` sub-attribute under directory.
split_by_category: True
orphaned:
# Orphaned files are those in the root_dir download directory that are not referenced by any active torrents.
# Will automatically remove all files and folders in orphaned data after x days. (Checks every script run)
# If this variable is not defined it, the orphaned data will never be emptied.
# WARNING: Setting this variable to 0 will delete all files immediately upon script run!
empty_after_x_days: 60
# File patterns that will not be considered orphaned files. Handy for generated files that aren't part of the torrent but belong with the torrent's files
exclude_patterns:
- "**/.DS_Store"
- "**/Thumbs.db"
- "**/@eaDir"
- /data/torrents/temp/**
- "**/*.!qB"
- "**/*_unpackerred"
- "**/**"
#apprise:
# Apprise integration with webhooks
# Leave Empty/Blank to disable
# Mandatory to fill out the url of your apprise API endpoint
#api_url: http://apprise-api:8000
# Mandatory to fill out the notification url/urls based on the notification services provided by apprise. https://github.com/caronc/apprise/wiki
#notify_url:
#notifiarr:
# Notifiarr integration with webhooks
# Leave Empty/Blank to disable
# Mandatory to fill out API Key
#apikey: ####################################
# <OPTIONAL> Set to a unique value (could be your username on notifiarr for example)
#instance:
#webhooks:
# Webhook notifications:
# Possible values:
# Set value to notifiarr if using notifiarr integration
# Set value to apprise if using apprise integration
# Set value to a valid webhook URL
# Set value to nothing (leave Empty/Blank) to disable
#error: https://ntfy.mydomain.com/qbittorrent
#run_start: notifiarr
#run_end: apprise
#function:
#cross_seed: https://ntfy.mydomain.com/qbittorrent
#recheck: notifiarr
#cat_update: apprise
#tag_update: https://ntfy.mydomain.com/qbittorrent
#rem_unregistered: https://ntfy.mydomain.com/qbittorrent
#tag_tracker_error: https://ntfy.mydomain.com/qbittorrent
#rem_orphaned: https://ntfy.mydomain.com/qbittorrent
#tag_nohardlinks: https://ntfy.mydomain.com/qbittorrent
#share_limits: https://ntfy.mydomain.com/qbittorrent
#cleanup_dirs: https://ntfy.mydomain.com/qbittorrent
#bhd:
# BHD Integration used for checking unregistered torrents
#apikey:
#run_start:
#run_end:
Logs
https://gist.github.com/nothing2obvi/4108d89a4f64ea2f41bdfec2e5bc2569
Screenshots
No response
Installation
Local
Version Number
4.1.1
What branch are you on?
master
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25
Commits related to this issue
- adds better trace logs for share limits #533 — committed to StuffAnThings/qbit_manage by bobokun 3 years ago
- 4.1.3 (#542) * 4.1.3-develop1 * removes `ignoreTags_OnUpdate` setting as it was confusing for users - Adds cache for tag updates - Updates doc to include cat in tracker * Bump dependabot/fetc... — committed to StuffAnThings/qbit_manage by bobokun 3 years ago
Thanks to both of you and for your help, @bobokun, on Discord. I finally solved it and thought I’d share. I noticed that the share limits were working for my downloads from private trackers, but not public trackers. I found a Reddit thread and someone asked if Ultra.cc (my seedbox) supports public trackers. Apparently they do not, and they have scripts that will stop seeding from public trackers once they are done downloading. That’s why I could never meet the
min_seeding_timefor public trackers.https://imgbox.com/3qp2mzfT
Thanks again!