-
-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
What happened?
libtorrent 2.x has deprecated add_magnet_uri(), and our code still uses it when adding magnet links. this triggers a warning during tests.
we should migrate to the recommended modern API:
params = lt.parse_magnet_uri(magnet_uri)
session.add_torrent(params)Version
torrra, v2.0.2
OS and architecture
Arch Linux x86_64
Terminal Output or Logs
tests/screens/test_home.py::test_home_screen_search tests/screens/test_home.py::test_home_screen_search tests/screens/test_home.py::test_home_screen_search tests/screens/test_home.py::test_home_screen_search tests/screens/test_home.py::test_home_screen_search tests/screens/test_home.py::test_home_screen_search tests/screens/test_home.py::test_home_screen_search /home/stabldev/dev/projects/torrra/src/torrra/core/download.py:34: DeprecationWarning: add_magnet_uri() is deprecated self.torrents[magnet_uri] = lt.add_magnet_uri(self.session, magnet_uri, params) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.htmlReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers