Skip to content

Conversation

@angrynode
Copy link
Owner

@angrynode angrynode commented Nov 14, 2025

Only parsing of the magnet upload is supported yet.

TODO:

  • Create magnet table in DB with migration
  • Save magnet in DB

In a future PR:

  • Create torrent table in DB
  • Start background task to resolve magnets
  • Save resolved magnets in the torrents table

@angrynode angrynode force-pushed the magnet-form branch 4 times, most recently from b570938 to 6d6f2f9 Compare November 15, 2025 11:11
@angrynode angrynode force-pushed the magnet-form branch 4 times, most recently from d468b29 to db8d769 Compare January 20, 2026 10:09
@angrynode
Copy link
Owner Author

This is very basic right now only a "successfully imported" page, plus a list, and upload form. Maybe the success page is completely useless and can be removed.

Right now nothing is done with the magnets we're just storing them in the DB.

Feedback welcome @Gabatxo1312

Comment on lines 30 to 31
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer needed with SeaORM v2.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires #[sea_orm::model] above derive macros.

{% extends "base.html" %}

{% block main %}
You successfully uploaded magnet {{ magnet.name }}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a proper page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants