Frage

Ich habe ein Skript erstellt, das Informationen zu einer Torrent-Datei generiert!Aber ich fehlt, dass Sie ein Samen und ein Peers-Anzeigen von Funktion erstellen!Jemand hat mir gesagt, dass sie sich im fertigen Feld befinden, das im Torrent definiert ist.Bitte meine Klassenfunktionscodes, aus denen ich die generierten Informationen mit einem bencode.php anzeigt, das die Daten annimmt, und dieses Skript namens torrent.php wandelt es in lesbarer Form! generasacodicetagpre.

Bitte helfen Sie mir!

Vielen Dank im Voraus!

War es hilfreich?

Lösung

Little late but the class you say to have created comes from:

https://github.com/torrage/Torrage

It's original purpose was not intended to retrieve that kind of data.

A class that gets you seeds and peers for torrent inclusive the rest of the data see:

https://github.com/adriengibrat/torrent-rw

Andere Tipps

That information's not stored in the .torrent file. It's highly dynamic data, which can change every microsecond on a 'busy' torrent. The server's not going to build a custom .torrent file with up-to-the-minute statistics every time someone downloads it.

Think about it for a second. You download a .torrent file on Monday, but only look at it next Friday. The stats are now a week old and stale.

You can, however, take the tracker information in the .torrent and query those trackers for the stats.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top