-
Notifications
You must be signed in to change notification settings - Fork 76
feat(jackett-search): add torrent search extension with Jackett API i⦠#115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Tinkerbells
wants to merge
1
commit into
vicinaehq:main
Choose a base branch
from
Tinkerbells:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| node_modules/ | ||
| dist/ | ||
| *.log | ||
| .DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| <p align="center"> | ||
| <img src="assets/extension_icon.png" alt="Jackett Search Icon" width="96" /> | ||
| </p> | ||
|
|
||
| # Jackett Search | ||
|
|
||
| Search torrents across multiple trackers directly from Vicinae using Jackett API. Jackett acts as a single repository of maintained indexer scraping & translation logic, removing the burden from other apps. | ||
|
|
||
| ## Requirements | ||
|
|
||
| - [Jackett](https://github.com/Jackett/Jackett) running and accessible | ||
| - Jackett API key (available in Jackett web UI under Configuration > API Key) | ||
| - At least one indexer configured in Jackett | ||
|
|
||
| ## Commands | ||
|
|
||
| | Command | Description | | ||
| | --- | --- | | ||
| | `Search Torrents` | Search torrents using Jackett API with advanced filtering and sorting options. | | ||
|
|
||
| ## Preferences | ||
|
|
||
| - **Jackett URL** β Full URL to your Jackett server (defaults to `http://127.0.0.1:9117`). | ||
| - **API Key** β Jackett API key for authentication. | ||
| - **Sort By** β Default sort order for search results: `Seeders`, `Peers`, `Size`, or `Date`. | ||
| - **Minimum Seeders** β Only show torrents with at least this many seeders (defaults to `0`). | ||
| - **Categories** β Filter by categories (comma-separated, e.g., `2000,3000` for Movies and Audio). | ||
| - **Trackers** β List of tracker names to search (comma-separated). Leave as "all" to search all configured trackers. | ||
| - **Default Action** β Action to perform when selecting a torrent: `Open Magnet Link` or `Download Torrent File`. | ||
|
|
||
| ## Quick Start with Docker Compose | ||
|
|
||
| The fastest way to get Jackett running is using Docker Compose: | ||
|
|
||
| **docker-compose.yml:** | ||
|
|
||
| ```yaml | ||
| services: | ||
| jackett: | ||
| image: lscr.io/linuxserver/jackett:latest | ||
| container_name: jackett | ||
| environment: | ||
| - PUID=1000 | ||
| - PGID=1000 | ||
| - TZ=Europe/London | ||
| - AUTO_UPDATE=true | ||
| volumes: | ||
| - ./config:/config | ||
| - ./downloads:/downloads | ||
| ports: | ||
| - 9117:9117 | ||
| restart: unless-stopped | ||
| ``` | ||
|
|
||
| **Steps:** | ||
|
|
||
| 1. Save the above configuration as `docker-compose.yml` in a new directory. | ||
| 2. Run `docker-compose up -d` to start Jackett. | ||
| 3. Open `http://localhost:9117` in your browser to access the Jackett web UI. | ||
| 4. Navigate to Configuration > API Key and copy your API key. | ||
| 5. Configure indexers (trackers) in Jackett by clicking "Add Indexer". | ||
| 6. In Vicinae, configure the Jackett Search extension with your URL and API key. | ||
|
|
||
| ## Usage | ||
|
|
||
| 1. Run the `Search Torrents` command in Vicinae. | ||
| 2. Enter a search query (at least 3 characters) to start searching. | ||
| 3. Use the dropdown menu to filter results: | ||
| - **By seeders** β Sort by number of seeders (descending) | ||
| - **By peers** β Sort by number of peers (descending) | ||
| - **By size** β Sort by file size (descending) | ||
| - **By date** β Sort by publish date (newest first) | ||
| 4. Select a torrent to view details: | ||
| - **Show Details** β View comprehensive information about the torrent | ||
| - **Open Magnet** β Open magnet link with default torrent client | ||
| - **Copy Magnet** β Copy magnet link to clipboard | ||
| - **Download Torrent File** β Download `.torrent` file directly | ||
| - **Open in Browser** β Open torrent details page in browser | ||
| 5. Use keyboard shortcuts for faster navigation: | ||
| - `Cmd + D` β Show torrent details | ||
| - `Cmd + C` β Copy magnet link | ||
| - `Cmd + R` β Refresh results | ||
|
|
||
| ## Development | ||
|
|
||
| ```bash | ||
| git clone <this-repo> | ||
| cd <this-repo> | ||
| npm install | ||
| npm run dev | ||
| ``` | ||
|
|
||
| Use `npm run build` to assemble a production bundle that Vicinae can import. | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| - **No results found**: Make sure at least one indexer is configured in Jackett and tested successfully. | ||
| - **Configuration Required error**: Verify your Jackett URL and API key in extension preferences. | ||
| - **Failed to open magnet link**: Ensure you have a default torrent client installed that supports magnet links (e.g., qBittorrent, Transmission). | ||
| - **Connection errors**: Check that Jackett is running and accessible at the configured URL. | ||
| - **Indexer not working**: Test individual indexers in Jackett web UI under Configuration > Indexers. | ||
|
|
||
| ## License | ||
|
|
||
| MIT | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document preferences match the manifest or note they are planned features.
The README documents preferences like "Sort By", "Minimum Seeders", and "Categories" that do not appear in package.json. Only "Jackett URL", "API Key", "Trackers", and "Default Action" are defined in the manifest.
Either add these missing preferences to package.json or clarify in the README if they are planned features.
π€ Prompt for AI Agents