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
↓ 3 callers
Method
set_proxy_settings
Apply the proxy settings to a libtorrent session. This mechanism changed significantly in libtorrent 1.1.0.
src/tribler/core/libtorrent/download_manager/download_manager.py:427
↓ 3 callers
Method
set_session_limits
Set the session limits for the libtorrent session with the specified hop count.
src/tribler/core/libtorrent/download_manager/download_manager.py:843
↓ 3 callers
Method
set_upload_limit
Set the upload bandwidth limit for this torrent.
src/tribler/core/libtorrent/download_manager/download.py:1269
↓ 3 callers
Method
shutdown_request
Shutdown Tribler.
src/tribler/core/restapi/shutdown_endpoint.py:42
↓ 3 callers
Method
start_handle
Create and start the libtorrent handle for the given download.
src/tribler/core/libtorrent/download_manager/download_manager.py:746
↓ 3 callers
Method
start_rust
Add Rust endpoints to all IPv8 nodes. Should be called after the event loop has started.
src/tribler/test_integration/test_anon_download.py:210
↓ 3 callers
Method
start_socks_servers
Start the socks servers.
src/tribler/test_integration/test_anon_download.py:143
↓ 3 callers
Method
stream
Stream the contents of a file that is being downloaded.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:911
↓ 3 callers
Function
tdef_to_metadata_dict
Helper function to create a TorrentMetadata-compatible dict from TorrentDef.
src/tribler/core/database/orm_bindings/torrent_metadata.py:108
↓ 3 callers
Function
time2int
Convert a datetime object to an int. :param date_time: The datetime object to convert. :param epoch: The epoch time, defaults to Jan 1,
src/tribler/core/database/serialization.py:37
↓ 3 callers
Function
title_rank
Calculate the similarity of the title string to a query string as a float value in range [0, 1]. :param query: a user-defined query string
src/tribler/core/database/ranks.py:83
↓ 3 callers
Method
to_health
(self)
src/tribler/core/database/orm_bindings/torrent_state.py:69
↓ 3 callers
Function
updateFiles
( setFiles: Dispatch<SetStateAction<FileTreeItem[]>>, download: Download, initialized: MutableRefO
src/tribler/ui/src/pages/Downloads/Files.tsx:72
↓ 3 callers
Method
update_torrent
Ensure that the given peers are registered in the given download.
src/tribler/core/tunnel/community.py:172
↓ 3 callers
Function
useResizeObserver
({ref, element}: {ref?: RefObject<HTMLElement>; element?: Element | null})
src/tribler/ui/src/hooks/useResizeObserver.tsx:3
↓ 2 callers
Function
OnDownloadClicked
(moveEnabled: boolean)
src/tribler/ui/src/dialogs/SaveAs.tsx:241
↓ 2 callers
Method
__init__
Create a new REST endpoint.
src/tribler/core/restapi/rest_endpoint.py:30
↓ 2 callers
Method
__init__
Initialize the base fields of this class.
src/tribler/core/torrent_checker/torrentchecker_session.py:44
↓ 2 callers
Method
_get_piece_range_from_file_idx
Get the piece range from a file index.
src/tribler/core/libtorrent/torrentdef.py:123
↓ 2 callers
Function
_is_url_available
(url: str, timeout: int=1)
src/tribler/core/session.py:59
↓ 2 callers
Method
_login
Send a login. :raises Socks5Error: If the proxy server is unsupported.
src/tribler/core/socks5/client.py:118
↓ 2 callers
Function
_parse_tracker_url
Parses the tracker URL and check whether it satisfies certain constraints. - The tracker type must be one of the supported types (udp, h
src/tribler/core/libtorrent/trackers.py:106
↓ 2 callers
Method
_user_rate_limit_to_value
(self, settings: list[tuple[int | None, int | None]], idx1: int, idx2: int,
src/tribler/core/libtorrent/download_manager/download_manager.py:867
↓ 2 callers
Method
addResponseInterceptor
(callback: (value: AxiosResponse<any, any>) => AxiosResponse<any, any>)
src/tribler/ui/src/services/ipv8.service.ts:28
↓ 2 callers
Method
add_infohash
Adds an infohash into this session. :param infohash: The infohash to be added.
src/tribler/core/torrent_checker/torrentchecker_session.py:87
↓ 2 callers
Method
add_mock_download_config
Create a mocked DownloadConfig.
src/tribler/test_integration/test_hidden_services.py:162
↓ 2 callers
Method
add_mock_download_config
Create a mocked DownloadConfig.
src/tribler/test_integration/test_anon_download.py:152
↓ 2 callers
Method
add_peer
Add a peer address from 3rd source (not tracker, not DHT) to this download. :param handle: the valid torrent handle. :param
src/tribler/core/libtorrent/download_manager/download.py:1044
↓ 2 callers
Method
add_post_handle_op
Add a single post-handle operation to the existing ones.
src/tribler/core/libtorrent/download_manager/download_config.py:394
↓ 2 callers
Function
aggregate_responses_for_infohash
Finds the "best" health info (with the max number of seeders) for a specified infohash.
src/tribler/core/torrent_checker/torrent_checker.py:43
↓ 2 callers
Function
capitalize
(name: string)
src/tribler/ui/src/lib/utils.ts:13
↓ 2 callers
Function
categoryIcon
(name: category)
src/tribler/ui/src/lib/utils.ts:37
↓ 2 callers
Method
connect_tcp
Login and connect to the proxy using TCP. :raises Socks5Error: If we have not associated UDP yet.
src/tribler/core/socks5/client.py:219
↓ 2 callers
Method
connection_lost
Callback for when the connection is dropped.
src/tribler/core/socks5/client.py:105
↓ 2 callers
Method
connection_made
Callback for when a connection is established.
src/tribler/core/torrent_checker/torrentchecker_session.py:226
↓ 2 callers
Method
convert_to_piece_size
Convert the mock download to use a different piece size. Don't call this with anything other than the download from create_mock_down
src/tribler/test_unit/core/libtorrent/download_manager/test_stream.py:160
↓ 2 callers
Method
create
Create a payload from the given list.
src/tribler/core/content_discovery/payload.py:53
↓ 2 callers
Method
create_introduction_point
Start creating an introduction point.
src/tribler/core/tunnel/community.py:393
↓ 2 callers
Method
create_session_for_request
Create a tracker session for a given url.
src/tribler/core/torrent_checker/torrent_checker.py:359
↓ 2 callers
Method
create_socket_or_schedule
This method attempts to bind to a UDP port. If it fails for some reason (i.e. no network connection), we try again later.
src/tribler/core/torrent_checker/torrent_checker.py:104
↓ 2 callers
Method
data_received
Callback for when data comes in. Call our registered callback or save the incoming save for calling back later.
src/tribler/core/socks5/client.py:96
↓ 2 callers
Method
download_exists
Check if there is a download with a given infohash.
src/tribler/core/libtorrent/download_manager/download_manager.py:949
↓ 2 callers
Method
enableDrift
(enable: boolean)
src/tribler/ui/src/services/ipv8.service.ts:32
↓ 2 callers
Function
filesToTree
( files: FileTreeItem[], defaultName = "root", preSelected: Set<number> = new Set(), separator
src/tribler/ui/src/lib/utils.ts:163
↓ 2 callers
Method
find_api_server
Find the API server, if available.
src/tribler/core/session.py:250
↓ 2 callers
Function
fixTreeProps
( tree: FileTreeItem )
src/tribler/ui/src/lib/utils.ts:206
↓ 2 callers
Method
force_recheck
Force libtorrent to validate the files.
src/tribler/core/libtorrent/download_manager/download.py:795
↓ 2 callers
Function
formatFlags
(flags: number[])
src/tribler/ui/src/lib/utils.ts:108
↓ 2 callers
Method
from_dict
(cls: type[Self], dct: dict)
src/tribler/core/database/orm_bindings/torrent_metadata.py:346
↓ 2 callers
Method
generate_transaction_id
Generates a unique transaction id and stores this in the _active_session_dict set.
src/tribler/core/torrent_checker/torrentchecker_session.py:307
↓ 2 callers
Method
getDownloadFiles
(infohash: string)
src/tribler/ui/src/services/tribler.service.ts:80
↓ 2 callers
Function
getMagnetLink
(infohash: string, name: string, trackers: string[])
src/tribler/ui/src/lib/utils.ts:22
↓ 2 callers
Method
getMetainfo
( uri: string, skipMagnet: boolean, config?: AxiosRequestConfig )
src/tribler/ui/src/services/tribler.service.ts:323
↓ 2 callers
Method
getNewVersion
()
src/tribler/ui/src/services/tribler.service.ts:484
↓ 2 callers
Function
getSeedingRatio
(selectedDownloads: Download[])
src/tribler/ui/src/pages/Downloads/Actions.tsx:190
↓ 2 callers
Function
getState
(type: "columns" | "sorting", name?: string)
src/tribler/ui/src/components/ui/simple-table.tsx:199
↓ 2 callers
Method
getTriblerStatistics
()
src/tribler/ui/src/services/tribler.service.ts:297
↓ 2 callers
Method
getTunnelPeers
()
src/tribler/ui/src/services/ipv8.service.ts:89
↓ 2 callers
Method
get_anon_mode
Get whether this torrent is anonymized.
src/tribler/core/libtorrent/download_manager/download.py:449
↓ 2 callers
Method
get_bootstrap_download
Get whether this download is a bootstrap download.
src/tribler/core/libtorrent/download_manager/download_config.py:291
↓ 2 callers
Method
get_candidates
Get exit candidates.
src/tribler/test_unit/core/tunnel/test_discovery.py:33
↓ 2 callers
Method
get_completed_dir
Gets the directory where to move this Download upon completed.
src/tribler/core/libtorrent/download_manager/download_config.py:180
↓ 2 callers
Method
get_current_payload_speed
Returns the current up or download payload speed. :return: The speed in bytes/s.
src/tribler/core/libtorrent/download_manager/download_state.py:137
↓ 2 callers
Method
get_downloads_by_name
Get all downloads for which the UTF-8 name equals the given string.
src/tribler/core/libtorrent/download_manager/download_manager.py:1200
↓ 2 callers
Method
get_eta
Returns the estimated time to finish of download. :return: The time in ?, as ?.
src/tribler/core/libtorrent/download_manager/download_state.py:248
↓ 2 callers
Method
get_files
Get a list of files from the given torrent definition.
src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py:123
↓ 2 callers
Method
get_for_update
(id_: int, public_key: bytes)
src/tribler/core/database/orm_bindings/torrent_metadata.py:87
↓ 2 callers
Method
get_ipv8_stats
Return general statistics of IPv8.
src/tribler/core/restapi/statistics_endpoint.py:173
↓ 2 callers
Method
get_pieces_base64
Returns a base64 encoded bitmask of the pieces that we have.
src/tribler/core/libtorrent/download_manager/download.py:456
↓ 2 callers
Method
get_pieces_total_complete
Returns the number of total and completed pieces. :return: A tuple containing two integers, total and completed nr of pieces
src/tribler/core/libtorrent/download_manager/download_state.py:283
↓ 2 callers
Method
get_seeding_time
The active time (not paused), while finished and while being a seed, in seconds.
src/tribler/core/libtorrent/download_manager/download_state.py:230
↓ 2 callers
Method
get_selected_files
Returns the list of files selected for download. :return: A list of file indexes.
src/tribler/core/libtorrent/download_manager/download_config.py:275
↓ 2 callers
Method
get_session_settings
Get a copy of the libtorrent settings for the given session.
src/tribler/core/libtorrent/download_manager/download_manager.py:837
↓ 2 callers
Method
get_time_added
Get the UNIX timestamp for when this download was added.
src/tribler/core/libtorrent/download_manager/download_config.py:257
↓ 2 callers
Method
get_tracker_response
Get the response from a given session.
src/tribler/core/torrent_checker/torrent_checker.py:186
↓ 2 callers
Method
get_tribler_stats
Return general statistics of Tribler.
src/tribler/core/restapi/statistics_endpoint.py:113
↓ 2 callers
Method
get_upload_mode
Get whether this download is in upload mode.
src/tribler/core/libtorrent/download_manager/download.py:1098
↓ 2 callers
Method
get_v2_piece_indices_per_layer
Get the piece indices per file root hash.
src/tribler/core/libtorrent/torrentdef.py:160
↓ 2 callers
Method
has_connection_to_gui
Whether the GUI has responded before.
src/tribler/core/restapi/events_endpoint.py:143
↓ 2 callers
Function
initVersionInfo
()
src/tribler/ui/src/pages/Settings/Versions.tsx:63
↓ 2 callers
Method
initial_message
Create the initial message to announce to the GUI.
src/tribler/core/restapi/events_endpoint.py:105
↓ 2 callers
Function
injectOrUpdateIPv8If
( entry: string, value: string, previous?: {interface: string; ip: string; port: number; worker_th
src/tribler/ui/src/pages/Settings/Connection.tsx:13
↓ 2 callers
Function
isMac
()
src/tribler/ui/src/lib/utils.ts:264
↓ 2 callers
Method
isUpgrading
()
src/tribler/ui/src/services/tribler.service.ts:509
↓ 2 callers
Method
is_upgrading
Check if the upgrade is still running.
src/tribler/core/versioning/restapi/versioning_endpoint.py:132
↓ 2 callers
Method
much_older_than
Whether this check is more than 4 hours older than the given check.
src/tribler/core/torrent_checker/healthdataclasses.py:59
↓ 2 callers
Method
on_add_torrent_alert
Handle an add torrent alert.
src/tribler/core/libtorrent/download_manager/download.py:402
↓ 2 callers
Method
open
Fake opening a file.
src/tribler/test_unit/core/libtorrent/download_manager/test_stream.py:22
↓ 2 callers
Method
pieces_complete
Checks if the specified pieces have been completed.
src/tribler/core/libtorrent/download_manager/stream.py:145
↓ 2 callers
Method
prepare
Create the database instances we need for Tribler.
src/tribler/core/components.py:158
↓ 2 callers
Method
process_torrent_health
Adds or updates information about a torrent health for the torrent with the specified infohash value. :param health: a health info o
src/tribler/core/database/store.py:390
↓ 2 callers
Method
read_piece
(p: int)
src/tribler/test_unit/core/libtorrent/download_manager/test_download.py:995
↓ 2 callers
Method
remote_search
Perform a search for a given query.
src/tribler/core/content_discovery/restapi/search_endpoint.py:68
↓ 2 callers
Method
remove_transaction_id
Removes an session and its corresponding id from the _active_session_dict set and the socket manager.
src/tribler/core/torrent_checker/torrentchecker_session.py:319
↓ 2 callers
Method
remove_version
Remove the files for a version.
src/tribler/core/versioning/manager.py:118
↓ 2 callers
Method
requesting_bloomfilters
Tne libtorrent DHT has sent a get_peers query for an infohash we may be interested in. If so, keep track of the transaction and node
src/tribler/core/libtorrent/download_manager/dht_health_manager.py:125
↓ 2 callers
Method
reset_piece_deadline
Reset the deadline for the given piece.
src/tribler/core/libtorrent/download_manager/download.py:1155
↓ 2 callers
Function
resumeDownloads
(selectedDownloads: Download[], t: TFunction)
src/tribler/ui/src/pages/Downloads/Actions.tsx:55
↓ 2 callers
Method
sanitize_dict
Convert the binary values in the given dictionary to (decode=True) and from (decode=False) hex format.
src/tribler/core/content_discovery/community.py:114
↓ 2 callers
Method
schedule_post_handle_ops
There should be at most one task to perform the configured post-handle operations.
src/tribler/core/libtorrent/download_manager/download.py:352
← previous
next →
301–400 of 1,819, ranked by callers