Skip to content

A sample application to import torrents into the Torrust Index.

Notifications You must be signed in to change notification settings

torrust/torrents-importer-sample

Repository files navigation

Torrents Importer Sample

Testing

This is an example application to import torrents from a source to the Torrust Index.

NOTICE: It's not intended to be used in production, it's just an example.

If you already have a torrent index and you want to migrate to the Torrust Solution you can use this script as a base for building your custom importer.

Usage

For the source of torrents, you need to rewrite that part depending on where you get your torrents from.

For the target, you need to change the target configuration to match your Index API.

impl Default for Config {
    fn default() -> Self {
        Self {
            source: Source {
                filename: "./data/database.xml".to_string(),
                torrents_dir: "./data/torrents".to_string(),
                torrent_source_url: "https://raw.githubusercontent.com/torrust/torrents-importer-sample/main/tests/fixtures/torrents/".to_string(),
            },
            target: Target {
                url: "localhost:3001".to_string(),
                username: "admin".to_string(),
                password: "12345678".to_string(),
            },
            start_processing_at_index: 0,
            skipped_torrents_list: vec![],
        }
    }
}

Known Issues

Some torrents might produce an error message. For more information see torrust/torrust-index#266.

About

A sample application to import torrents into the Torrust Index.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages