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
↓ 2 callers
Method
searchTorrentsRemote
( txt_filter: string, popular: boolean )
src/tribler/ui/src/services/tribler.service.ts:415
↓ 2 callers
Method
select
(selector: Callable)
src/tribler/core/database/orm_bindings/torrent_metadata.py:90
↓ 2 callers
Method
send_ping
Send a ping to a peer to keep it alive.
src/tribler/core/content_discovery/community.py:432
↓ 2 callers
Function
setPending
(target: HTMLInputElement)
src/tribler/ui/src/dialogs/CreateTorrent.tsx:219
↓ 2 callers
Function
setState
(type: "columns" | "sorting", name: string, state: SortingState | VisibilityState)
src/tribler/ui/src/components/ui/simple-table.tsx:206
↓ 2 callers
Method
set_download_states_callback
Set the download state callback. Remove any old callback if it's present. Calls user_callback with a list of DownloadStates,
src/tribler/core/libtorrent/download_manager/download_manager.py:1001
↓ 2 callers
Method
set_post_handle_ops
Set the post-handle operations flag for this torrent.
src/tribler/core/libtorrent/download_manager/download_config.py:385
↓ 2 callers
Method
set_selected_files
Select which files in the torrent to download. :param file_indexes: List of file indexes as ordered in the torrent (e.g. [0,1])
src/tribler/core/libtorrent/download_manager/download_config.py:264
↓ 2 callers
Method
set_stop_after_metainfo
Set the download to stop after receiving the metainfo.
src/tribler/core/libtorrent/download_manager/download_config.py:316
↓ 2 callers
Method
set_torrents_checked
Overwrite the default test value for torrents_checked.
src/tribler/test_unit/core/content_discovery/test_community.py:52
↓ 2 callers
Method
set_upload_mode
Set whether this download is in upload mode.
src/tribler/core/libtorrent/download_manager/download.py:1105
↓ 2 callers
Method
should_skip_message
Returns True if EventsEndpoint should skip sending message to GUI due to a shutdown or no connection to GUI. Issue an appropriate war
src/tribler/core/restapi/events_endpoint.py:149
↓ 2 callers
Function
show_error
(exc: Exception, shutdown: Literal[True] = True)
src/run_tribler.py:17
↓ 2 callers
Method
shutdown
Shut down all connections and components.
src/tribler/core/session.py:270
↓ 2 callers
Method
shutdown
(restart: boolean)
src/tribler/ui/src/services/tribler.service.ts:634
↓ 2 callers
Method
start
Starts the HTTP API with the listen port as specified in the session configuration.
src/tribler/core/restapi/rest_manager.py:218
↓ 2 callers
Method
start
Start periodically querying our URL.
src/tribler/core/rss/rss.py:55
↓ 2 callers
Function
startDownloadCallback
(response: any, t: TFunction)
src/tribler/ui/src/dialogs/SaveAs.tsx:35
↓ 2 callers
Method
startDownloadFromFile
(torrent: File, params: DownloadConfig = {})
src/tribler/ui/src/services/tribler.service.ts:134
↓ 2 callers
Function
start_http_server
Start an HTTP server using the given port and response.
src/tribler/test_integration/test_anon_download.py:56
↓ 2 callers
Function
stopDownloads
(selectedDownloads: Download[], t: TFunction)
src/tribler/ui/src/pages/Downloads/Actions.tsx:63
↓ 2 callers
Method
stop_after_metainfo
Wait for the metadata to be received, then stop.
src/tribler/core/libtorrent/download_manager/download.py:242
↓ 2 callers
Function
swapFileIndices
(farr: Filename[], i: number, j: number)
src/tribler/ui/src/dialogs/CreateTorrent.tsx:263
↓ 2 callers
Method
to_api_response
Serialize the dataclass to a JSON-compatible dictionary for REST API responses.
src/tribler/core/torrent_checker/healthdataclasses.py:97
↓ 2 callers
Function
to_fts_query
Convert the given text to FTS-compatible text.
src/tribler/core/database/queries.py:20
↓ 2 callers
Function
toggleAdvancedSettings
()
src/tribler/ui/src/pages/Settings/Bandwidth.tsx:121
↓ 2 callers
Method
torrent_checker
Get the torrent checker of node i.
src/tribler/test_unit/core/content_discovery/test_community.py:84
↓ 2 callers
Method
update_hops
Update the amount of hops for a specified download. This can be done on runtime.
src/tribler/core/libtorrent/download_manager/download_manager.py:955
↓ 2 callers
Method
update_settings
Update Tribler settings.
src/tribler/core/restapi/settings_endpoint.py:58
↓ 2 callers
Method
update_tags
Set the tags for the given download.
src/tribler/core/database/restapi/database_endpoint.py:535
↓ 2 callers
Function
useTheme
()
src/tribler/ui/src/contexts/ThemeContext.tsx:76
↓ 2 callers
Method
wait_for_pieces
Waits until the specified pieces have been completed.
src/tribler/core/libtorrent/download_manager/stream.py:138
↓ 2 callers
Method
write
Don't actually write to any file.
src/tribler/test_unit/mocks.py:9
↓ 2 callers
Method
write
Write a chunk and check if we should shut down the endpoint.
src/tribler/test_unit/core/restapi/test_events_endpoint.py:52
↓ 2 callers
Method
write
Perform a crash.
src/tribler/test_unit/core/libtorrent/download_manager/test_download.py:30
↓ 1 callers
Function
IPv8
()
src/tribler/ui/src/pages/Debug/IPv8/index.tsx:5
↓ 1 callers
Method
__init__
Initialize (but don't start) with a given taskmanager, callback and url.
src/tribler/core/rss/rss.py:37
↓ 1 callers
Method
__init__
Create a new endpoint to query the status of downloads.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:69
↓ 1 callers
Method
__init__
Create a new GetEventsRequest.
src/tribler/test_unit/core/restapi/test_events_endpoint.py:17
↓ 1 callers
Method
__str__
Convert this download to a human-readable string.
src/tribler/core/libtorrent/download_manager/download.py:210
↓ 1 callers
Method
_associate_udp
Send an associate request to the connection.
src/tribler/core/socks5/client.py:134
↓ 1 callers
Method
_connect_tcp
Connect to the given address using TCP.
src/tribler/core/socks5/client.py:158
↓ 1 callers
Function
_copy_if_not_exist
Copy a file if it does not exist.
src/tribler/upgrade_script.py:43
↓ 1 callers
Function
_existing_files
(path_list: list[Path], names: list[str] | None)
src/tribler/core/libtorrent/torrents.py:120
↓ 1 callers
Method
_get_default_trackers
Get the default trackers from the configured tracker file. Tracker file format is "(<TRACKER><NEWLINE><NEWLINE>)*". We assume "<TRAC
src/tribler/core/libtorrent/download_manager/download.py:306
↓ 1 callers
Method
_get_extended_status
This function filters the original download status to possibly add tunnel-related status. Extracted from DownloadState to remove coup
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:866
↓ 1 callers
Function
_import_7_14_settings
Read the file at the source path and import its settings.
src/tribler/upgrade_script.py:65
↓ 1 callers
Function
_inject_7_14_tables
Fetch data from the old database and attempt to insert it into a new one.
src/tribler/upgrade_script.py:348
↓ 1 callers
Function
_inject_ChannelNode
Import old ChannelNode entries.
src/tribler/upgrade_script.py:219
↓ 1 callers
Function
_inject_ChannelNode_inner
The inner injection script to write old ChannelNode info into the current database.
src/tribler/upgrade_script.py:188
↓ 1 callers
Function
_inject_TorrentState_TrackerState
Import old TorrentState_TrackerState entries.
src/tribler/upgrade_script.py:323
↓ 1 callers
Function
_inject_TorrentState_TrackerState_inner
The inner injection script to write old TorrentState info into the current database.
src/tribler/upgrade_script.py:294
↓ 1 callers
Function
_inject_TrackerState
Import old TrackerState entries.
src/tribler/upgrade_script.py:272
↓ 1 callers
Function
_inject_TrackerState_inner
The inner injection script to write old TrackerState info into the current database.
src/tribler/upgrade_script.py:248
↓ 1 callers
Method
_map_call_on_ltsessions
(self, hops: int | None, funcname: str, *args: Any, **kwargs)
src/tribler/core/libtorrent/download_manager/download_manager.py:632
↓ 1 callers
Method
_mixSelectedIntoMetainfo
(torrent: File, selected_files: number[] | undefined)
src/tribler/ui/src/services/tribler.service.ts:96
↓ 1 callers
Method
_post_handle_events
Schedule all the configured events that need to happen after this download receives a handle.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:351
↓ 1 callers
Function
_produce_get_overload
(key: str, value_type: str)
src/tribler/tribler_config.py:493
↓ 1 callers
Function
_produce_set_overload
(key: str, value_type: str)
src/tribler/tribler_config.py:488
↓ 1 callers
Method
_recursive_merge_settings
(self, updates: dict, pointer: str = "")
src/tribler/core/restapi/settings_endpoint.py:73
↓ 1 callers
Method
_write_data
Write data over the event socket if it's open.
src/tribler/core/restapi/events_endpoint.py:180
↓ 1 callers
Method
addDownloadTracker
(infohash: string, trackerUrl: string)
src/tribler/ui/src/services/tribler.service.ts:230
↓ 1 callers
Function
addFile
()
src/tribler/ui/src/dialogs/CreateTorrent.tsx:205
↓ 1 callers
Method
add_endpoint
Add an endpoint to this root endpoint.
src/tribler/core/restapi/rest_endpoint.py:53
↓ 1 callers
Method
add_stream
Initialize a stream for this download.
src/tribler/core/libtorrent/download_manager/download.py:251
↓ 1 callers
Method
add_url_seed
Add a URL seed to this download. :param handle: the valid torrent handle. :param addr: The URL address to connect to
src/tribler/core/libtorrent/download_manager/download.py:1054
↓ 1 callers
Method
attach_exception_handler
Hook ourselves in as the general exception handler.
src/tribler/core/session.py:201
↓ 1 callers
Method
authenticate
Is the given request authenticated using an API key.
src/tribler/core/restapi/rest_manager.py:93
↓ 1 callers
Function
average
(numbers: number[])
src/tribler/ui/src/lib/utils.ts:127
↓ 1 callers
Function
bgColor
(t: Torrent)
src/tribler/ui/src/components/swarm-health.tsx:19
↓ 1 callers
Method
browseFiles
( path: string, showFiles: boolean )
src/tribler/ui/src/services/tribler.service.ts:558
↓ 1 callers
Function
cached_read
Keep one cache for one tracker file at a time (by default: for a max of 120 seconds, see caller). When adding X torrents at once, this avoid
src/tribler/core/libtorrent/download_manager/download.py:116
↓ 1 callers
Function
calculate_rank
Calculates the similarity of the title to the query as a float value in range [0, 1]. :param query: list of query words :param title: li
src/tribler/core/database/ranks.py:114
↓ 1 callers
Method
canUpgrade
()
src/tribler/ui/src/services/tribler.service.ts:501
↓ 1 callers
Method
check_local_torrents
Perform a full health check on a few popular and old torrents in the database.
src/tribler/core/torrent_checker/torrent_checker.py:270
↓ 1 callers
Method
clean_session
Destruct a given session.
src/tribler/core/torrent_checker/torrent_checker.py:378
↓ 1 callers
Method
cleanup
Cleans the session by cancelling all deferreds and closing sockets.
src/tribler/core/torrent_checker/torrentchecker_session.py:204
↓ 1 callers
Function
clickedImport
(e: React.MouseEvent<HTMLElement>, old_version: string)
src/tribler/ui/src/pages/Settings/Versions.tsx:38
↓ 1 callers
Function
clickedRemove
(e: React.MouseEvent<HTMLElement>, old_version: string)
src/tribler/ui/src/pages/Settings/Versions.tsx:51
↓ 1 callers
Method
clickedResult
(query: string, clicked: Torrent, results: Torrent[])
src/tribler/ui/src/services/tribler.service.ts:535
↓ 1 callers
Method
close
Closes the reader amd unregisters the cursor pieces from the stream instance and resets the relevant piece priorities.
src/tribler/core/libtorrent/download_manager/stream.py:321
↓ 1 callers
Function
collapseError
()
src/tribler/ui/src/App.tsx:10
↓ 1 callers
Method
conditional_get
Send a conditional get to our URL and return the response and its raw content.
src/tribler/core/rss/rss.py:91
↓ 1 callers
Function
convertPieces
(pieces64: string, numpieces: number)
src/tribler/ui/src/pages/Downloads/Pieces.tsx:6
↓ 1 callers
Method
convert_to_json
Sanitize and dump the given dictionary to a string using JSON.
src/tribler/core/content_discovery/community.py:140
↓ 1 callers
Method
createDirectory
(path: string, recursively: boolean)
src/tribler/ui/src/services/tribler.service.ts:577
↓ 1 callers
Method
createTorrent
( name: string, description: string, filenames: string[], files: string[],
src/tribler/ui/src/services/tribler.service.ts:598
↓ 1 callers
Method
create_fts_triggers
Create the FTS triggers.
src/tribler/core/database/store.py:304
↓ 1 callers
Method
create_torrentstate_triggers
Create the torrent state triggers.
src/tribler/core/database/store.py:320
↓ 1 callers
Function
create_tracker_session
Creates a tracker session with the given tracker URL. :param tracker_url: The given tracker URL. :param timeout: The timeout for the ses
src/tribler/core/torrent_checker/torrentchecker_session.py:466
↓ 1 callers
Method
datagram_received
If the incoming data is valid, find the tracker session and give it the data.
src/tribler/core/torrent_checker/torrentchecker_session.py:270
↓ 1 callers
Function
detect
(text: string)
src/tribler/ui/src/pages/Search/index.tsx:17
↓ 1 callers
Function
downloadFile
(file: FileLink)
src/tribler/ui/src/lib/utils.ts:238
↓ 1 callers
Function
downloadFilesAsZip
(files: FileLink[], zipName: string)
src/tribler/ui/src/lib/utils.ts:245
↓ 1 callers
Method
drain
Ignore drains.
src/tribler/test_unit/core/restapi/test_events_endpoint.py:66
↓ 1 callers
Function
drawBoop
(ctx: CanvasRenderingContext2D, x: number, xscale: number, yscale: number)
src/tribler/ui/src/pages/Debug/Asyncio/Health.tsx:105
↓ 1 callers
Method
dryCreateTorrent
(name: string, exportDir: string)
src/tribler/ui/src/services/tribler.service.ts:585
↓ 1 callers
Function
exportTorrents
(selectedDownloads: Download[])
src/tribler/ui/src/pages/Downloads/Actions.tsx:105
↓ 1 callers
Method
finish_handler
Mimic finishing a handler.
src/tribler/test_unit/core/restapi/test_events_endpoint.py:31
↓ 1 callers
Method
flush
This is called when our buffer is at capacity and needs to be flushed. We get the handler lock and rotate the buffer.
src/tribler/core/restapi/logging_endpoint.py:15
← previous
next →
401–500 of 1,819, ranked by callers