Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tribler/tribler
/ functions
Functions
1,819 in github.com/Tribler/tribler
⨍
Functions
1,819
◇
Types & classes
310
↳
Endpoints
21
↓ 8 callers
Method
start_download_from_uri
Start a download from the given uri.
src/tribler/core/libtorrent/download_manager/download_manager.py:639
↓ 8 callers
Function
updateQueuePosition
(selectedDownloads: Download[], queueChange: QueueOperation, t: TFunction)
src/tribler/ui/src/pages/Downloads/Actions.tsx:79
↓ 8 callers
Method
wait_for_alert
Create a future that fires when a certain alert is received.
src/tribler/core/libtorrent/download_manager/download.py:365
↓ 7 callers
Function
best_info_hash
Get the best bytes representation of available info hash material.
src/tribler/core/libtorrent/torrentdef.py:17
↓ 7 callers
Function
changeLanguage
(lng: string)
src/tribler/ui/src/components/language-select.tsx:20
↓ 7 callers
Method
create_dconfig_from_params
Create a download configuration based on some given parameters. Possible parameters are: - anon_hops: the number of hops for
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:100
↓ 7 callers
Function
entries_to_chunk
Put serialized data of one or more metadata entries into a single binary chunk. The data is added incrementally until it stops fitting into t
src/tribler/core/database/orm_bindings/torrent_metadata.py:130
↓ 7 callers
Method
file_piece_range
Get the piece range of a given file, specified by the path. Calling this method with anything but a file path will return an empty l
src/tribler/core/libtorrent/download_manager/download.py:1175
↓ 7 callers
Method
get_progress
The general progress of the Download as a percentage. When status is * HASHCHECKING it is the percentage of already downloaded
src/tribler/core/libtorrent/download_manager/download_state.py:92
↓ 7 callers
Method
has_signature
Check if this payload has an attached signature already.
src/tribler/core/database/serialization.py:142
↓ 7 callers
Method
monitor_downloads
Periodically check the Tribler downloads for state changes.
src/tribler/core/tunnel/community.py:267
↓ 7 callers
Function
parse_bool
Parse input to boolean True or False. Allow parsing text 'false', 'true' '1', '0' to boolean. :param obj: Object to parse
src/tribler/core/database/restapi/database_endpoint.py:56
↓ 7 callers
Function
seeders_rank
Calculates rank based on the number of torrent's seeders and leechers. :param seeders: the number of seeders for the torrent. :param lee
src/tribler/core/database/ranks.py:52
↓ 7 callers
Method
set_engineresumedata
Set the engine resume data dict for this download.
src/tribler/core/libtorrent/download_manager/download_config.py:298
↓ 7 callers
Method
shutdown
Mimic a shutdown.
src/tribler/test_unit/core/restapi/test_events_endpoint.py:25
↓ 7 callers
Method
to_dict
Convert this payload to a dictionary.
src/tribler/core/database/serialization.py:118
↓ 7 callers
Function
unshorten
Unshorten a URI if it is a short URI. Return the original URI if it is not a short URI. :param uri: A string representing the shortened URL
src/tribler/core/libtorrent/uris.py:40
↓ 7 callers
Method
update_tracker_info
Updates a tracker information. :param tracker_url: The given tracker_url. :param is_successful: If the check was successful.
src/tribler/core/torrent_checker/tracker_manager.py:111
↓ 6 callers
Function
formatTimeRelativeISO
(ts: number)
src/tribler/ui/src/lib/utils.ts:90
↓ 6 callers
Function
freshness_rank
Calculates a rank value based on the torrent freshness. The result is normalized to the range [0, 1]. :param freshness: number of seconds si
src/tribler/core/database/ranks.py:64
↓ 6 callers
Function
getBandwidthLimit
( selectedDownloads: Download[], direction: "up" | "down", noDefaults: boolean = false )
src/tribler/ui/src/pages/Downloads/Actions.tsx:158
↓ 6 callers
Method
get_alive_checked_torrents
Get torrents that we know have seeders AND leechers.
src/tribler/core/content_discovery/community.py:156
↓ 6 callers
Method
get_all_time_ratio
Returns the accumulated seeding ratio of the download across multiple sessions.
src/tribler/core/libtorrent/download_manager/download_state.py:215
↓ 6 callers
Method
get_files_completion
Returns a list of filename, progress tuples indicating the progress for every file selected using set_selected_files. Progress is a f
src/tribler/core/libtorrent/download_manager/download_state.py:291
↓ 6 callers
Method
get_tracker_info
Gets the tracker information with the given tracker URL. :param tracker_url: The given tracker URL. :return: The tracker inf
src/tribler/core/torrent_checker/tracker_manager.py:51
↓ 6 callers
Method
get_user_stopped
Get whether the download has been stopped by the user.
src/tribler/core/libtorrent/download_manager/download_config.py:218
↓ 6 callers
Method
get_version_state_dir
Get the state dir for our current version.
src/tribler/tribler_config.py:444
↓ 6 callers
Function
is_valid_url
Checks whether the given URL is a valid URL. Both UDP and HTTP URLs will be validated correctly. :param url: an object representing the
src/tribler/core/libtorrent/trackers.py:190
↓ 6 callers
Method
open
Opens the file in the filesystem until its ready and seeks to seek_offset.
src/tribler/core/libtorrent/download_manager/stream.py:259
↓ 6 callers
Method
parse_rss
Check if the RSS content includes any new ``.torrent`` values.
src/tribler/core/rss/rss.py:139
↓ 6 callers
Method
process_advanced_rate_limits
Check if we have to change our rates. This is called in one of two cases: a. ``set_session_limits()`` after a user change.
src/tribler/core/libtorrent/download_manager/download_manager.py:878
↓ 6 callers
Method
process_scrape_response
This function handles the response body of an HTTP result from an HTTP tracker.
src/tribler/core/torrent_checker/torrentchecker_session.py:164
↓ 6 callers
Method
run_threaded
Run ``func`` threaded and close DB connection at the end of the execution. :param func: the function to be executed threaded
src/tribler/core/database/store.py:335
↓ 6 callers
Method
seek
Seeks the stream to the related piece that represents the position byte. Also updates the dynamic buffer accordingly.
src/tribler/core/libtorrent/download_manager/stream.py:278
↓ 6 callers
Method
serialize
Convert this payload to bytes.
src/tribler/core/database/serialization.py:293
↓ 6 callers
Method
serialized
(self, key: bytes | None = None)
src/tribler/core/database/orm_bindings/torrent_metadata.py:79
↓ 6 callers
Method
set_completed_dir
Sets the directory where to move this Download upon completion. :param path: A path of a directory.
src/tribler/core/libtorrent/download_manager/download_config.py:172
↓ 6 callers
Method
set_loaded_downloads
Set the status for all checkpoints being loaded.
src/tribler/test_unit/core/libtorrent/restapi/test_downloads_endpoint.py:69
↓ 6 callers
Method
set_safe_seeding
Set the safe seeding mode of the download.
src/tribler/core/libtorrent/download_manager/download_config.py:199
↓ 6 callers
Method
set_session_settings
Apply/set new sessions in a libtorrent session. :param lt_session: The libtorrent session to apply the settings to. :param n
src/tribler/core/libtorrent/download_manager/download_manager.py:818
↓ 6 callers
Method
stop
Stop periodically querying our URL.
src/tribler/core/rss/rss.py:62
↓ 6 callers
Method
to_simple_dict
(self)
src/tribler/core/database/orm_bindings/torrent_metadata.py:81
↓ 6 callers
Method
update_torrent_health
Updates the torrent state in the database if it already exists, otherwise do nothing. Returns True if the update was successful, Fals
src/tribler/core/torrent_checker/torrent_checker.py:393
↓ 5 callers
Method
associate_udp
Login and associate with the proxy.
src/tribler/core/socks5/client.py:195
↓ 5 callers
Method
bytes_to_pieces
Returns the pieces that represents the given byte range.
src/tribler/core/libtorrent/download_manager/stream.py:152
↓ 5 callers
Method
check_random_tracker
Calling this method will fetch a random tracker from the database, select some torrents that have this tracker, and perform a request
src/tribler/core/torrent_checker/torrent_checker.py:130
↓ 5 callers
Method
check_signature
Check if the signature attached to this payload is valid for this payload.
src/tribler/core/database/serialization.py:148
↓ 5 callers
Function
common_prefix
Get the path prefixes component-wise.
src/tribler/core/libtorrent/torrents.py:109
↓ 5 callers
Method
connect_to_tracker
Does some work when a connection has been established.
src/tribler/core/torrent_checker/torrentchecker_session.py:114
↓ 5 callers
Method
copy
Create a copy of this config.
src/tribler/core/libtorrent/download_manager/download_config.py:143
↓ 5 callers
Method
create
Create the specified path.
src/tribler/core/restapi/file_endpoint.py:114
↓ 5 callers
Method
delete
()
src/tribler/core/database/orm_bindings/tracker_state.py:36
↓ 5 callers
Method
delete_download
Remove a specific download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:496
↓ 5 callers
Method
fast_integrity_check
Inspect the database file and return whether it was broken or not. By default, this method also removes the given db file if it is b
src/tribler/core/database/store.py:227
↓ 5 callers
Function
find_word_and_rotate_title
Finds the query word in the title. Returns whether it was found or not and the number of skipped words in the title. This is a helper functi
src/tribler/core/database/ranks.py:151
↓ 5 callers
Function
formatTimeRelative
(ts: number, epochTime: boolean = true)
src/tribler/ui/src/lib/utils.ts:70
↓ 5 callers
Function
getRateLimitsFor
(settings: Settings, hops: string)
src/tribler/ui/src/pages/Settings/Bandwidth.tsx:42
↓ 5 callers
Method
get_checkpoint_dir
Returns the directory in which to checkpoint the Downloads in this Session.
src/tribler/core/libtorrent/download_manager/download_manager.py:1194
↓ 5 callers
Method
get_current_version
Get the current release version, or None when running from archive or GIT.
src/tribler/core/versioning/manager.py:36
↓ 5 callers
Method
get_entries
Get some torrents. Optionally sort the results by a specific field, or filter the channels based on a keyword/whether you are subscri
src/tribler/core/database/store.py:756
↓ 5 callers
Method
get_file_completion
Calculate the completion of a given file or directory.
src/tribler/core/libtorrent/download_manager/download.py:1200
↓ 5 callers
Method
get_for_update
(name: str)
src/tribler/core/database/orm_bindings/misc.py:28
↓ 5 callers
Function
get_info_from_handle
Call handle.torrent_file() and handle RuntimeErrors.
src/tribler/core/libtorrent/torrents.py:254
↓ 5 callers
Method
get_peers
Get all known peers.
src/tribler/test_unit/core/tunnel/test_discovery.py:39
↓ 5 callers
Method
get_pieces_complete
Returns a list of booleans indicating whether we have completely received that piece of the content. The list of pieces for which
src/tribler/core/libtorrent/download_manager/download_state.py:272
↓ 5 callers
Method
get_share_mode
Get whether this download is in sharing mode.
src/tribler/core/libtorrent/download_manager/download.py:1084
↓ 5 callers
Method
load
Create a TorrentDef object from a .torrent file. :param filepath: The path to the .torrent file
src/tribler/core/libtorrent/torrentdef.py:93
↓ 5 callers
Method
removeEventListener
(topic: string, listener: (event: MessageEvent) => void)
src/tribler/ui/src/services/tribler.service.ts:57
↓ 5 callers
Method
reset_priorities
Resets the priorities and deadlines of pieces. If no pieces are provided reset all pieces within the current file.
src/tribler/core/libtorrent/download_manager/stream.py:207
↓ 5 callers
Method
resume
Resume downloading the download.
src/tribler/core/libtorrent/download_manager/download.py:984
↓ 5 callers
Method
resume_from_legacy
Generate resume data from the legacy metainfo format. Don't use this unless you are loading a checkpoint! Old metainfo was:
src/tribler/core/libtorrent/download_manager/download_manager.py:1078
↓ 5 callers
Method
send_request
Send a request and wait for the answer.
src/tribler/core/torrent_checker/torrentchecker_session.py:232
↓ 5 callers
Method
serialized
Serialize this mock to bytes.
src/tribler/test_unit/core/database/orm_bindings/test_torrent_metadata.py:21
↓ 5 callers
Function
setHops
(selectedDownloads: Download[], hops: number, t: TFunction)
src/tribler/ui/src/pages/Downloads/Actions.tsx:128
↓ 5 callers
Method
set_seeding_ratio
Set auto managed flag.
src/tribler/core/libtorrent/download_manager/download_config.py:370
↓ 5 callers
Method
set_user_stopped
Set whether the download has been stopped by the user.
src/tribler/core/libtorrent/download_manager/download_config.py:212
↓ 5 callers
Method
take_step
We are asked to update, see if we have enough peers to start culling them. If we do have enough peers, select a suitable peer to remo
src/tribler/core/tunnel/discovery.py:42
↓ 5 callers
Method
unpack
Unpack the given bytes to an address.
src/tribler/core/socks5/conversion.py:129
↓ 5 callers
Method
update_priorities
Sets the piece priorities and deadlines according to the cursors of the outstanding stream requests.
src/tribler/core/libtorrent/download_manager/stream.py:173
↓ 5 callers
Method
update_trackers
Update the trackers for a download. :param infohash: infohash of the torrent that needs to be updated :param trackers: A lis
src/tribler/core/libtorrent/download_manager/download_manager.py:975
↓ 5 callers
Method
write
Write the contents of this config to a file.
src/tribler/core/libtorrent/download_manager/download_config.py:151
↓ 4 callers
Method
add_download_progress_to_metadata_list
Retrieve the download status from libtorrent and attach it to the torrent descriptions in the content list.
src/tribler/core/database/restapi/database_endpoint.py:215
↓ 4 callers
Method
add_tracker
Return the .torrent file associated with the specified download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:701
↓ 4 callers
Method
add_trackers
Add the given trackers to the handle.
src/tribler/core/libtorrent/download_manager/download.py:1028
↓ 4 callers
Method
atp_from_dict
Create an add_torrent_params object with correct info hash.
src/tribler/test_unit/core/libtorrent/download_manager/test_download_manager.py:70
↓ 4 callers
Method
cache_exitnodes_to_disk
Write a copy of the exit_candidates to the file self.settings.exitnode_cache.
src/tribler/core/tunnel/community.py:113
↓ 4 callers
Method
check_torrent_health
Check the health of a torrent with a given infohash. :param infohash: Torrent infohash. :param timeout: The timeout to use i
src/tribler/core/torrent_checker/torrent_checker.py:313
↓ 4 callers
Method
close
Closes the Stream.
src/tribler/core/libtorrent/download_manager/stream.py:222
↓ 4 callers
Method
combine_bloomfilters
Combine two given bloom filters by ORing the bits. :param bf1: The first bloom filter to combine. :param bf2: The second blo
src/tribler/core/libtorrent/download_manager/dht_health_manager.py:81
↓ 4 callers
Method
connect_tcp
Fake a TCP connection establishment.
src/tribler/test_unit/core/socks5/test_aiohttp_connector.py:22
↓ 4 callers
Method
create_mock_content
Set the value of the stream to certain content.
src/tribler/test_unit/core/libtorrent/download_manager/test_stream.py:45
↓ 4 callers
Function
error_middleware
Middleware to return nicely-formatted errors when common exceptions occur.
src/tribler/core/restapi/rest_manager.py:106
↓ 4 callers
Function
formatDateTime
(ts: number)
src/tribler/ui/src/lib/utils.ts:57
↓ 4 callers
Method
from_dict
Create a payload from the given data (an unpacked dict).
src/tribler/core/database/serialization.py:125
↓ 4 callers
Function
getSelectedFilesFromTree
(tree: FileTreeItem, included: boolean = true)
src/tribler/ui/src/lib/utils.ts:228
↓ 4 callers
Method
get_auto_managed
Get auto managed flag.
src/tribler/core/libtorrent/download_manager/download_config.py:363
↓ 4 callers
Method
get_availability
Return the overall availability of all pieces, using connected peers. Availability is defined as the number of complete copies of a
src/tribler/core/libtorrent/download_manager/download_state.py:336
↓ 4 callers
Method
get_download
Match the given infohash to a download (or None if it cannot be found).
src/tribler/core/tunnel/community.py:367
↓ 4 callers
Method
get_endpoints
Add the RSS endpoint.
src/tribler/core/components.py:268
↓ 4 callers
Method
get_error
Returns the Exception that caused the download to be moved to STOPPED_ON_ERROR status. :return: An error message
src/tribler/core/libtorrent/download_manager/download_state.py:117
← previous
next →
101–200 of 1,819, ranked by callers