-
Notifications
You must be signed in to change notification settings - Fork 3
Introduce typed TorrentSource for adding torrents #224
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthigh prioGET DONE ASAP!!GET DONE ASAP!!libtortillasChanges in the libtortillas crateChanges in the libtortillas craterustPull requests that update rust codePull requests that update rust codetui-foundationWork needed before building the Tortillas TUIWork needed before building the Tortillas TUI
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthigh prioGET DONE ASAP!!GET DONE ASAP!!libtortillasChanges in the libtortillas crateChanges in the libtortillas craterustPull requests that update rust codePull requests that update rust codetui-foundationWork needed before building the Tortillas TUIWork needed before building the Tortillas TUI
Problem
Engine::add_torrentcurrently acceptsimpl ToStringand guesses source type with string prefixes likehttpandmagnet:. A frontend should pass typed intent instead of relying on string heuristics.Relevant code:
crates/libtortillas/src/engine/mod.rs:254Dependency
Blocked by #222 because
TorrentSourceshould be part of the stable facade.Proposal
Add a typed source enum, for example:
Exact variants can differ, but source type should be explicit.
Acceptance criteria