MCPcopy Create free account

hub / github.com/Tribler/tribler / functions

Functions1,819 in github.com/Tribler/tribler

↓ 312 callersMethodget
(name: str)
src/tribler/core/database/orm_bindings/misc.py:25
↓ 106 callersFunctiongetHeader
( name: string, translate: boolean = true, addSorting: boolean = true, addFilter: boolean = fa
src/tribler/ui/src/components/ui/simple-table.tsx:174
↓ 95 callersFunctioncn
(...inputs: ClassValue[])
src/tribler/ui/src/lib/utils.ts:9
↓ 78 callersFunctionisErrorDict
(object: any)
src/tribler/ui/src/services/reporting.ts:8
↓ 70 callersMethodload_from_memory
Load some bencoded data into a TorrentDef. :param bencoded_data: The bencoded data to decode and use as metainfo
src/tribler/core/libtorrent/torrentdef.py:102
↓ 68 callersMethodset
Set the given attributes to the given values.
src/tribler/test_unit/core/torrent_checker/mocks.py:83
↓ 67 callersFunctionformatAxiosError
(error: Error | AxiosError)
src/tribler/ui/src/services/reporting.ts:31
↓ 66 callersMethodcreate_mock_download_config
Create a mocked DownloadConfig.
src/tribler/test_unit/core/libtorrent/download_manager/test_download.py:45
↓ 44 callersMethodcreate_mock_download
Create a mocked Download.
src/tribler/test_unit/core/libtorrent/restapi/test_downloads_endpoint.py:78
↓ 36 callersFunctionformatBytes
(bytes: number, digits: number = 2)
src/tribler/ui/src/lib/utils.ts:100
↓ 34 callersMethodget_parser
Get a new parser for Download config files.
src/tribler/core/libtorrent/download_manager/download_config.py:105
↓ 33 callersMethodadd
Add an observer for the given Notification type.
src/tribler/core/notifier.py:68
↓ 32 callersMethodget_dest_dir
Gets the directory where to save this Download.
src/tribler/core/libtorrent/download_manager/download_config.py:166
↓ 32 callersMethodget_torrent_info
Return metainfo from a torrent found at a provided URI.
src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py:181
↓ 31 callersFunction_copy_if_exists
Check if the src path is set and copy it into the dst if it is.
src/tribler/upgrade_script.py:51
↓ 31 callersMethodget
Get a config option based on the path-like descriptor.
src/tribler/tribler_config.py:428
↓ 27 callersFunctionget_uniformed_tracker_url
Parses the given tracker URL and returns in a uniform URL format. It uses regex to sanitize the URL. :param tracker_url: Tracker URL
src/tribler/core/libtorrent/trackers.py:35
↓ 27 callersFunctionunhexlify
(input: string)
src/tribler/ui/src/lib/utils.ts:17
↓ 26 callersMethodis_valid
Whether the reported seeders and leechers are > 0 and the check was performed at most a minute in the future.
src/tribler/core/torrent_checker/healthdataclasses.py:40
↓ 25 callersFunctiontorrent_rank
Calculates search rank for a torrent. :param query: a user-defined query string :param title: a torrent name :param seeders: the num
src/tribler/core/database/ranks.py:32
↓ 23 callersMethodcreate_mock_download_config
Create a mocked DownloadConfig.
src/tribler/test_unit/core/libtorrent/download_manager/test_download_manager.py:55
↓ 23 callersMethodread
Reads piece_length bytes starting from the current seek position.
src/tribler/core/libtorrent/download_manager/stream.py:297
↓ 21 callersMethodget_def
Get the torrent def belonging to this download.
src/tribler/core/libtorrent/download_manager/download.py:385
↓ 20 callersFunctionuseInterval
(callback: Function, delay: number, startNow: boolean = false)
src/tribler/ui/src/hooks/useInterval.tsx:3
↓ 19 callersMethodget_state
Returns a snapshot of the current state of the download.
src/tribler/core/libtorrent/download_manager/download.py:806
↓ 19 callersMethodget_status
Returns the status of the torrent.
src/tribler/core/libtorrent/download_manager/download_state.py:103
↓ 19 callersMethodnotify
Send a health update to the GUI.
src/tribler/core/torrent_checker/torrent_checker.py:430
↓ 18 callersMethodadd_ffa_from_dict
(metadata: dict)
src/tribler/core/database/orm_bindings/torrent_metadata.py:84
↓ 18 callersMethodget_hops
Get the set number of hops for the download.
src/tribler/core/libtorrent/download_manager/download_config.py:193
↓ 18 callersMethodget_selected_files
Get the selection status of the download's files, or None if it is not available.
src/tribler/core/libtorrent/download_manager/download_state.py:330
↓ 18 callersMethodset_dest_dir
Sets the directory where to save this Download. :param path: A path of a directory.
src/tribler/core/libtorrent/download_manager/download_config.py:158
↓ 18 callersMethodstart_download
Start a download from the given information.
src/tribler/core/libtorrent/download_manager/download_manager.py:680
↓ 17 callersMethodget
Get the instance belonging to the selector.
src/tribler/test_unit/core/torrent_checker/mocks.py:62
↓ 17 callersMethodpack
Pack the given data. :raises InvalidAddressException: if the data could not be packed.
src/tribler/core/socks5/conversion.py:115
↓ 17 callersMethodset_selected_files
Set the selected files. If the selected files is None or empty, all files will be selected.
src/tribler/core/libtorrent/download_manager/download.py:764
↓ 16 callersMethodconnect
Creates a connection message and calls the socket manager to send it.
src/tribler/core/torrent_checker/torrentchecker_session.py:372
↓ 16 callersMethodfailed
This method handles everything that needs to be done when one step in the session has failed and thus no data can be obtained.
src/tribler/core/torrent_checker/torrentchecker_session.py:98
↓ 15 callersMethodenable
Sets the file index and waits for initial buffering to be completed.
src/tribler/core/libtorrent/download_manager/stream.py:60
↓ 15 callersMethodget_endpoint
Get an endpoint by its name, including the first forward slash. Requesting a non-Tribler (i.e., IPv8) endpoint will cause a crash.
src/tribler/core/restapi/rest_manager.py:198
↓ 15 callersFunctionparse_tracker_url
Parses the tracker URL and checks whether it satisfies tracker URL constraints. Additionally, it also checks if the tracker URL is a uniform
src/tribler/core/libtorrent/trackers.py:78
↓ 14 callersMethodadd_endpoint
Add a REST endpoint to the root endpoint.
src/tribler/core/restapi/rest_manager.py:191
↓ 14 callersMethodcreate_mock_download
Create a mocked DownloadConfig.
src/tribler/test_unit/core/libtorrent/download_manager/test_stream.py:142
↓ 14 callersMethodget_session
Get the session for the given number of anonymization hops.
src/tribler/core/libtorrent/download_manager/download_manager.py:405
↓ 14 callersMethodjson
Get the json contents of this request.
src/tribler/test_unit/core/restapi/test_settings_endpoint.py:22
↓ 14 callersMethodname
Get the name of this torrent.
src/tribler/core/libtorrent/torrentdef.py:51
↓ 14 callersMethodprocess_alert
Dispatch an alert to the appriopriate registered handlers.
src/tribler/core/libtorrent/download_manager/download.py:473
↓ 13 callersMethodcheckpoint
Checkpoint this download. Returns when the checkpointing is completed.
src/tribler/core/libtorrent/download_manager/download.py:1003
↓ 13 callersMethodgetSettings
()
src/tribler/ui/src/services/tribler.service.ts:432
↓ 13 callersMethodget_file_indices
Get the actual torrent file indices of our files.
src/tribler/core/libtorrent/torrentdef.py:113
↓ 13 callersMethodget_safe_seeding
Get the safe seeding mode of the download.
src/tribler/core/libtorrent/download_manager/download_config.py:205
↓ 13 callersFunctionint2time
Convert an int into a datetime object. :param timestamp: The timestamp to be converted. :param epoch: The epoch time, defaults to Jan 1,
src/tribler/core/database/serialization.py:50
↓ 13 callersMethodupdate_download
Update a specific download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:550
↓ 12 callersMethod_patch_dlconfig
(self, download_config: DownloadConfig, err: Exception | None = None)
src/tribler/test_unit/core/libtorrent/download_manager/test_download_manager.py:64
↓ 12 callersMethodadd_tracker
Adds a new tracker into the tracker info dict and the database. :param tracker_url: The new tracker URL to be added.
src/tribler/core/torrent_checker/tracker_manager.py:71
↓ 12 callersMethodcheck
Check our URL as lazily as possible.
src/tribler/core/rss/rss.py:100
↓ 12 callersMethodnotify
Notify all observers that have subscribed to the given topic.
src/tribler/core/notifier.py:74
↓ 12 callersMethodresolve
Download the torrent files and add them to our database.
src/tribler/core/rss/rss.py:69
↓ 12 callersMethodset
( # noqa: D102, PLR0913 rowid: int | None = None, infohash: bytes | None = No
src/tribler/core/database/orm_bindings/torrent_state.py:43
↓ 12 callersMethodsetSettings
(settings: Partial<Settings>)
src/tribler/ui/src/services/tribler.service.ts:442
↓ 12 callersFunctionurl_to_path
Convert a URL to a path. For example: .. code-block:: 'file:///path/to/file' -> '/path/to/file' :param file_url: the URL
src/tribler/core/libtorrent/uris.py:12
↓ 11 callersMethodclose
Close this resolver.
src/tribler/core/socks5/aiohttp_connector.py:33
↓ 11 callersMethoddelete
Delete this instance.
src/tribler/test_unit/core/torrent_checker/mocks.py:90
↓ 11 callersFunctionhandleError
(response: undefined | ErrorDict | boolean, errorMsg: string, undefinedMsg: string)
src/tribler/ui/src/pages/Downloads/Actions.tsx:47
↓ 11 callersMethodprocess_payload
Write a payload to our database (if necessary).
src/tribler/core/database/store.py:493
↓ 11 callersMethodremove_tracker
Remove a given tracker from the database. URL is sanitized first and removed from the database. If the URL is ill formed then try rem
src/tribler/core/torrent_checker/tracker_manager.py:95
↓ 11 callersMethodset
Set a config option value based on the path-like descriptor.
src/tribler/tribler_config.py:450
↓ 11 callersMethodshutdown_task_manager
Shutdown the taskmanager.
src/tribler/core/restapi/webui_endpoint.py:56
↓ 10 callersMethodcreate_torrent
Create a torrent from local files and return it in base64 encoding.
src/tribler/core/libtorrent/restapi/create_torrent_endpoint.py:85
↓ 10 callersFunctioncreate_torrent_file
Create a torrent file from the given paths and parameters. If an output file path is omitted, no file will be written to disk.
src/tribler/core/libtorrent/torrents.py:173
↓ 10 callersFunctiondrawLine
( ctx: CanvasRenderingContext2D, strokeStyle: string, x1: number, y1: number,
src/tribler/ui/src/pages/Debug/Asyncio/Health.tsx:90
↓ 10 callersMethodinitialize
Start all the looping tasks for the checker and creata socket.
src/tribler/core/torrent_checker/torrent_checker.py:89
↓ 10 callersMethodreturn_404
Returns a 404 response code if your channel has not been created.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:91
↓ 10 callersMethodshould_replace
Whether this check should replace the given check.
src/tribler/core/torrent_checker/healthdataclasses.py:65
↓ 10 callersMethodtorrent_info
Get the libtorrent torrent info instance or load it from our metainfo.
src/tribler/core/libtorrent/torrentdef.py:67
↓ 10 callersMethodwrite
Write to whatever transport we have.
src/tribler/core/socks5/client.py:233
↓ 9 callersMethodbyte_to_piece
Finds the piece position that begin_bytes is mapped to.
src/tribler/core/libtorrent/download_manager/stream.py:166
↓ 9 callersMethodcleanup
Shutdown and invalidate.
src/tribler/core/torrent_checker/torrentchecker_session.py:74
↓ 9 callersMethodclear_orphaned_parts
Scan the default downloads folder for parts files that are not in our downloads list.
src/tribler/core/libtorrent/download_manager/download_manager.py:218
↓ 9 callersMethodfrom_defaults
Create a new download config from the given Tribler configuration.
src/tribler/core/libtorrent/download_manager/download_config.py:124
↓ 9 callersMethodfrom_signed_blob
Read a SignedPayload from the given serialized form.
src/tribler/core/database/serialization.py:110
↓ 9 callersMethodget_download
Returns the Download object of which this is the state.
src/tribler/core/libtorrent/download_manager/download_state.py:86
↓ 9 callersMethodget_downloads
Return all downloads, both active and inactive.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:252
↓ 9 callersMethodget_file_priorities
Get the priorities of all files in the download.
src/tribler/core/libtorrent/download_manager/download.py:1169
↓ 9 callersMethodget_metainfo
Lookup metainfo for a given infohash. The mechanism works by joining the swarm for the infohash connecting to a few peers, and downlo
src/tribler/core/libtorrent/download_manager/download_manager.py:540
↓ 9 callersMethodload_checkpoint
Load a checkpoint from a given file name.
src/tribler/core/libtorrent/download_manager/download_manager.py:1139
↓ 9 callersMethodset_hops
Set the number of hops for the download.
src/tribler/core/libtorrent/download_manager/download_config.py:187
↓ 9 callersMethodstart
Initialize and launch all components and REST endpoints.
src/tribler/core/session.py:208
↓ 9 callersMethodupdate
Update the RSS URLs that we are watching. Start and stop watchers accordingly.
src/tribler/core/rss/rss.py:191
↓ 8 callersMethodaddEventListener
(topic: string, listener: (event: MessageEvent) => void)
src/tribler/ui/src/services/tribler.service.ts:53
↓ 8 callersMethodadd_download
Start a download from a provided URI.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:413
↓ 8 callersMethodcan_upgrade
Check if we have old database/download files to port to our current version. Returns the version that can be upgraded from.
src/tribler/core/versioning/manager.py:89
↓ 8 callersMethodcheck_version
Check the tribler.org + GitHub websites for a new version.
src/tribler/core/versioning/manager.py:52
↓ 8 callersMethodget_engineresumedata
Get the engine resume data dict for this download or None if it cannot be decoded.
src/tribler/core/libtorrent/download_manager/download_config.py:304
↓ 8 callersMethodget_entries_query
This method implements REST-friendly way to get entries from the database. Warning! For Pony magic to work, iteration variable name
src/tribler/core/database/store.py:591
↓ 8 callersMethodget_events
A GET request to this endpoint will open the event connection. **Example request**: .. sourcecode:: none
src/tribler/core/restapi/events_endpoint.py:245
↓ 8 callersMethodget_handle
Returns a deferred that fires with a valid libtorrent download handle.
src/tribler/core/libtorrent/download_manager/download.py:391
↓ 8 callersMethodnotify_shutdown_state
Call the notifier to signal a shutdown state update.
src/tribler/core/libtorrent/download_manager/download_manager.py:211
↓ 8 callersFunctionrecursive_unicode
Converts any bytes within a data structure to unicode strings. Bytes are assumed to be UTF-8 encoded text. :param obj: object comprised of l
src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py:56
↓ 8 callersMethodscrape
Parse the response of a tracker.
src/tribler/core/torrent_checker/torrentchecker_session.py:409
↓ 8 callersMethodselect
(selector: Callable)
src/tribler/core/database/orm_bindings/tracker_state.py:45
next →1–100 of 1,819, ranked by callers