MCPcopy Create free account

hub / github.com/Tribler/tribler / functions

Functions1,819 in github.com/Tribler/tribler

↓ 8 callersMethodstart_download_from_uri
Start a download from the given uri.
src/tribler/core/libtorrent/download_manager/download_manager.py:639
↓ 8 callersFunctionupdateQueuePosition
(selectedDownloads: Download[], queueChange: QueueOperation, t: TFunction)
src/tribler/ui/src/pages/Downloads/Actions.tsx:79
↓ 8 callersMethodwait_for_alert
Create a future that fires when a certain alert is received.
src/tribler/core/libtorrent/download_manager/download.py:365
↓ 7 callersFunctionbest_info_hash
Get the best bytes representation of available info hash material.
src/tribler/core/libtorrent/torrentdef.py:17
↓ 7 callersFunctionchangeLanguage
(lng: string)
src/tribler/ui/src/components/language-select.tsx:20
↓ 7 callersMethodcreate_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 callersFunctionentries_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 callersMethodfile_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 callersMethodget_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 callersMethodhas_signature
Check if this payload has an attached signature already.
src/tribler/core/database/serialization.py:142
↓ 7 callersMethodmonitor_downloads
Periodically check the Tribler downloads for state changes.
src/tribler/core/tunnel/community.py:267
↓ 7 callersFunctionparse_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 callersFunctionseeders_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 callersMethodset_engineresumedata
Set the engine resume data dict for this download.
src/tribler/core/libtorrent/download_manager/download_config.py:298
↓ 7 callersMethodshutdown
Mimic a shutdown.
src/tribler/test_unit/core/restapi/test_events_endpoint.py:25
↓ 7 callersMethodto_dict
Convert this payload to a dictionary.
src/tribler/core/database/serialization.py:118
↓ 7 callersFunctionunshorten
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 callersMethodupdate_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 callersFunctionformatTimeRelativeISO
(ts: number)
src/tribler/ui/src/lib/utils.ts:90
↓ 6 callersFunctionfreshness_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 callersFunctiongetBandwidthLimit
( selectedDownloads: Download[], direction: "up" | "down", noDefaults: boolean = false )
src/tribler/ui/src/pages/Downloads/Actions.tsx:158
↓ 6 callersMethodget_alive_checked_torrents
Get torrents that we know have seeders AND leechers.
src/tribler/core/content_discovery/community.py:156
↓ 6 callersMethodget_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 callersMethodget_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 callersMethodget_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 callersMethodget_user_stopped
Get whether the download has been stopped by the user.
src/tribler/core/libtorrent/download_manager/download_config.py:218
↓ 6 callersMethodget_version_state_dir
Get the state dir for our current version.
src/tribler/tribler_config.py:444
↓ 6 callersFunctionis_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 callersMethodopen
Opens the file in the filesystem until its ready and seeks to seek_offset.
src/tribler/core/libtorrent/download_manager/stream.py:259
↓ 6 callersMethodparse_rss
Check if the RSS content includes any new ``.torrent`` values.
src/tribler/core/rss/rss.py:139
↓ 6 callersMethodprocess_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 callersMethodprocess_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 callersMethodrun_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 callersMethodseek
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 callersMethodserialize
Convert this payload to bytes.
src/tribler/core/database/serialization.py:293
↓ 6 callersMethodserialized
(self, key: bytes | None = None)
src/tribler/core/database/orm_bindings/torrent_metadata.py:79
↓ 6 callersMethodset_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 callersMethodset_loaded_downloads
Set the status for all checkpoints being loaded.
src/tribler/test_unit/core/libtorrent/restapi/test_downloads_endpoint.py:69
↓ 6 callersMethodset_safe_seeding
Set the safe seeding mode of the download.
src/tribler/core/libtorrent/download_manager/download_config.py:199
↓ 6 callersMethodset_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 callersMethodstop
Stop periodically querying our URL.
src/tribler/core/rss/rss.py:62
↓ 6 callersMethodto_simple_dict
(self)
src/tribler/core/database/orm_bindings/torrent_metadata.py:81
↓ 6 callersMethodupdate_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 callersMethodassociate_udp
Login and associate with the proxy.
src/tribler/core/socks5/client.py:195
↓ 5 callersMethodbytes_to_pieces
Returns the pieces that represents the given byte range.
src/tribler/core/libtorrent/download_manager/stream.py:152
↓ 5 callersMethodcheck_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 callersMethodcheck_signature
Check if the signature attached to this payload is valid for this payload.
src/tribler/core/database/serialization.py:148
↓ 5 callersFunctioncommon_prefix
Get the path prefixes component-wise.
src/tribler/core/libtorrent/torrents.py:109
↓ 5 callersMethodconnect_to_tracker
Does some work when a connection has been established.
src/tribler/core/torrent_checker/torrentchecker_session.py:114
↓ 5 callersMethodcopy
Create a copy of this config.
src/tribler/core/libtorrent/download_manager/download_config.py:143
↓ 5 callersMethodcreate
Create the specified path.
src/tribler/core/restapi/file_endpoint.py:114
↓ 5 callersMethoddelete
()
src/tribler/core/database/orm_bindings/tracker_state.py:36
↓ 5 callersMethoddelete_download
Remove a specific download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:496
↓ 5 callersMethodfast_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 callersFunctionfind_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 callersFunctionformatTimeRelative
(ts: number, epochTime: boolean = true)
src/tribler/ui/src/lib/utils.ts:70
↓ 5 callersFunctiongetRateLimitsFor
(settings: Settings, hops: string)
src/tribler/ui/src/pages/Settings/Bandwidth.tsx:42
↓ 5 callersMethodget_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 callersMethodget_current_version
Get the current release version, or None when running from archive or GIT.
src/tribler/core/versioning/manager.py:36
↓ 5 callersMethodget_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 callersMethodget_file_completion
Calculate the completion of a given file or directory.
src/tribler/core/libtorrent/download_manager/download.py:1200
↓ 5 callersMethodget_for_update
(name: str)
src/tribler/core/database/orm_bindings/misc.py:28
↓ 5 callersFunctionget_info_from_handle
Call handle.torrent_file() and handle RuntimeErrors.
src/tribler/core/libtorrent/torrents.py:254
↓ 5 callersMethodget_peers
Get all known peers.
src/tribler/test_unit/core/tunnel/test_discovery.py:39
↓ 5 callersMethodget_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 callersMethodget_share_mode
Get whether this download is in sharing mode.
src/tribler/core/libtorrent/download_manager/download.py:1084
↓ 5 callersMethodload
Create a TorrentDef object from a .torrent file. :param filepath: The path to the .torrent file
src/tribler/core/libtorrent/torrentdef.py:93
↓ 5 callersMethodremoveEventListener
(topic: string, listener: (event: MessageEvent) => void)
src/tribler/ui/src/services/tribler.service.ts:57
↓ 5 callersMethodreset_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 callersMethodresume
Resume downloading the download.
src/tribler/core/libtorrent/download_manager/download.py:984
↓ 5 callersMethodresume_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 callersMethodsend_request
Send a request and wait for the answer.
src/tribler/core/torrent_checker/torrentchecker_session.py:232
↓ 5 callersMethodserialized
Serialize this mock to bytes.
src/tribler/test_unit/core/database/orm_bindings/test_torrent_metadata.py:21
↓ 5 callersFunctionsetHops
(selectedDownloads: Download[], hops: number, t: TFunction)
src/tribler/ui/src/pages/Downloads/Actions.tsx:128
↓ 5 callersMethodset_seeding_ratio
Set auto managed flag.
src/tribler/core/libtorrent/download_manager/download_config.py:370
↓ 5 callersMethodset_user_stopped
Set whether the download has been stopped by the user.
src/tribler/core/libtorrent/download_manager/download_config.py:212
↓ 5 callersMethodtake_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 callersMethodunpack
Unpack the given bytes to an address.
src/tribler/core/socks5/conversion.py:129
↓ 5 callersMethodupdate_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 callersMethodupdate_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 callersMethodwrite
Write the contents of this config to a file.
src/tribler/core/libtorrent/download_manager/download_config.py:151
↓ 4 callersMethodadd_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 callersMethodadd_tracker
Return the .torrent file associated with the specified download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:701
↓ 4 callersMethodadd_trackers
Add the given trackers to the handle.
src/tribler/core/libtorrent/download_manager/download.py:1028
↓ 4 callersMethodatp_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 callersMethodcache_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 callersMethodcheck_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 callersMethodclose
Closes the Stream.
src/tribler/core/libtorrent/download_manager/stream.py:222
↓ 4 callersMethodcombine_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 callersMethodconnect_tcp
Fake a TCP connection establishment.
src/tribler/test_unit/core/socks5/test_aiohttp_connector.py:22
↓ 4 callersMethodcreate_mock_content
Set the value of the stream to certain content.
src/tribler/test_unit/core/libtorrent/download_manager/test_stream.py:45
↓ 4 callersFunctionerror_middleware
Middleware to return nicely-formatted errors when common exceptions occur.
src/tribler/core/restapi/rest_manager.py:106
↓ 4 callersFunctionformatDateTime
(ts: number)
src/tribler/ui/src/lib/utils.ts:57
↓ 4 callersMethodfrom_dict
Create a payload from the given data (an unpacked dict).
src/tribler/core/database/serialization.py:125
↓ 4 callersFunctiongetSelectedFilesFromTree
(tree: FileTreeItem, included: boolean = true)
src/tribler/ui/src/lib/utils.ts:228
↓ 4 callersMethodget_auto_managed
Get auto managed flag.
src/tribler/core/libtorrent/download_manager/download_config.py:363
↓ 4 callersMethodget_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 callersMethodget_download
Match the given infohash to a download (or None if it cannot be found).
src/tribler/core/tunnel/community.py:367
↓ 4 callersMethodget_endpoints
Add the RSS endpoint.
src/tribler/core/components.py:268
↓ 4 callersMethodget_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
← previousnext →101–200 of 1,819, ranked by callers