autobrr/test/mockindexer
ze0s ccabe96bdf
feat(irc): view announces per channel (#948)
* feat(irc): add sse to handler

* feat(irc): view and send irc messages per network

* refactor(irc): use id as handlerkey

* refactor(irc): use id as handlerkey

* feat(web): add irc context

* refactor: create sse stream per network channel

* fix(irc): remove non-working wildcard callback handler

* feat: use fork of sse

* chore(deps): update ergo/irc-go to v0.3.0

* fix: clean irc msg before sse publish

* feat: add view channel button

* feat: styling improvements

* feat: show time
2023-05-21 15:51:40 +02:00
..
files feat(tools): Add a simple MockIndexer helper for IRC announcing and indexing (#555) 2022-12-03 16:55:36 +01:00
irc feat(irc): view announces per channel (#948) 2023-05-21 15:51:40 +02:00
main.go fix(webhooks): increase timeout (#902) 2023-05-02 21:44:38 +02:00
README.md feat(tools): Add a simple MockIndexer helper for IRC announcing and indexing (#555) 2022-12-03 16:55:36 +01:00

autobrr MockIndexer

This is a simple IRC announcer and torrent indexer rolled into one. It is built as a tool for testing IRC announces and actions.

Getting started

  • Put a torrent file in ./files, name it 1.torrent.
  • Run the MockIndexer with go run main.go.

For autobrr, uncomment the customDefinitions line in config.toml to load the extra indexer definitions. Then start autobrr as usual.

  • Add an instance of the MockIndexer in autobrr UI. Pick any nickname, don't set any auth.
  • Set up an action - for example the watchdir action which will make autobrr actually download the announced torrent file from the MockIndexer.

Posting announces.

  • Open http://localhost:3999 in your browser. A simple input will allow you to post announces to the channel. For example, to announce the 1.torrent file added to the ./files dir, send this,
New Torrent Announcement: <PC :: Iso>  Name:'debian live 10 6 0 amd64 standard iso' uploaded by 'Anonymous' freeleech -  http://localhost:3999/torrent/1

It is the 1 at the end of the announce line that should match the file name.