internetarchive / internetarchive/dweb-gateway

Torrent file rewrite

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
20
Forks
5
PR merge metrics
No merged PRs in 30d

Description

When https://github.com/internetarchive/dweb-transport/issues/22 and https://github.com/internetarchive/dweb-gateway/issues/33 are fixed we need to rewrite Torrent files, at ingestion and either on the fly, or via a batch process.

Code for rewriting on the fly is in [Archive.py](https://github.com/internetarchive/dweb-gateway/blob/master/python/Archive.py) that code will need trivially rewriting to use the URL format from https://github.com/internetarchive/dweb-gateway/issues/33 and the URL from https://github.com/internetarchive/dweb-transport/issues/22.

The code (or existing ingestion code) could be adapted for writing on ingestion, or for rewriting as a batch process.

Sam also suggested asking WebTorrent to try https & ws if tracker only supports http URLs since they are obviously unusable in webtorrent. https://github.com/internetarchive/dweb-transports/issues/5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading python/Archive.py and the linked dweb-transport and dweb-gateway issues, since this work depends on their fixes. Decide whether rewriting belongs at ingestion, on the fly, or in a batch process. Done means Torrent files use the URL format and URL specified by those issues; the WebTorrent HTTPS and WebSocket suggestion is a separate consideration.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.