{"id":19686128,"url":"https://github.com/loiccoyle/rofi-tpb","last_synced_at":"2026-03-15T06:50:36.520Z","repository":{"id":57462602,"uuid":"293111198","full_name":"loiccoyle/rofi-tpb","owner":"loiccoyle","description":"🏴‍☠️ Dynamic menu interface for TPB, built with rofi in mind.","archived":false,"fork":false,"pushed_at":"2021-07-12T20:21:12.000Z","size":126,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T07:11:50.444Z","etag":null,"topics":["dmenu","rofi","rofi-scripts","rofi-tpb","thepiratebay","torrent","tpb"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loiccoyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-05T16:17:34.000Z","updated_at":"2023-07-30T10:01:53.000Z","dependencies_parsed_at":"2022-09-05T17:20:45.940Z","dependency_job_id":null,"html_url":"https://github.com/loiccoyle/rofi-tpb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Frofi-tpb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Frofi-tpb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Frofi-tpb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Frofi-tpb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loiccoyle","download_url":"https://codeload.github.com/loiccoyle/rofi-tpb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993950,"owners_count":19890419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dmenu","rofi","rofi-scripts","rofi-tpb","thepiratebay","torrent","tpb"],"created_at":"2024-11-11T18:26:16.255Z","updated_at":"2026-03-15T06:50:31.475Z","avatar_url":"https://github.com/loiccoyle.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rofi-tpb\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/oBO2IFe.png\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/loiccoyle/rofi-tpb/actions?query=workflow%3Atests\"\u003e\u003cimg src=\"https://github.com/loiccoyle/rofi-tpb/workflows/tests/badge.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/rofi-tpb/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/rofi-tpb\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-linux%20%7C%20macOS%7C%20windows-informational\"\u003e\n\u003c/p\u003e\n\nDynamic menu interface for The Pirate Bay, built with [`rofi`](https://github.com/davatorium/rofi) in mind.\n\n# Install\n\n```shell\npip install rofi-tpb\n```\n\nConsider using [`pipx`](https://github.com/pipxproject/pipx):\n```shell\npipx install rofi-tpb\n```\n\n# Usage\n\nPrompt to either search tpb or browse tpb's top torrents:\n```shell\nrofi-tpb\n```\n\nPrompt for search query:\n```shell\nrofi-tpb search\n```\n\nSearch for ubuntu related torrents:\n```shell\nrofi-tpb search ubuntu\n```\n\nBrowse tpb's top torrents across all categories:\n```shell\nrofi-tpb top all\n```\n\nBrowse tpb's recent top torrents across all categories in the last 48h:\n```shell\nrofi-tpb top all -r\n```\n\nCheck the help for details:\n```shell\nrofi-tpb --help\n...\nrofi-tpb search --help\n...\nrofi-tpb top --help\n...\n```\n\n# Dependencies\n\n* `python \u003e= 3.6`\n* `tpblite`\n* `dynmen`\n* `lxml`\n* `traitlets` (undeclared dependency of `dynmen`)\n\n\n# Configuration\n\n`rofi-tpb` stores its config in `$XDG_CONFIG_HOME/rofi-tpb/config.ini`.\n\nThe default configuration is the following:\n\n```ini\n[menu]\ncommand = rofi -dmenu -i\ntorrent_format = {title:\u003c65} 📁{filesize:\u003c12} 🔽{seeds:\u003c4} 🔼{leeches:\u003c4} Trusted: {trusted} VIP: {vip}\nvip_str = ✅\nnot_vip_str = ❌\ntrusted_str = ✅\nnot_trusted_str = ❌\nuse_tpb_proxy = True\ntpb_url = https://thepiratebay0.org\ncategories = All, APPLICATIONS, AUDIO, GAMES, OTHER, PORN, VIDEO\ncategories_48h = True\n\n[actions]\nadd = xdg-open '{magnetlink}'\nopen = xdg-open '{url}'\n```\n\n * `menu.command`: the dynamic menu command which should read from `stdin` and output to `stdout`, if you want to use `dmenu` instead of `rofi` then adjust this command accordingly.\n * `menu.torrent_format`: text representation of a torrent in the dynamic menu, **accepts torrent string format keys.**\n * `menu.use_tpb_proxy`: if True will use the first tpb url as found on https://piratebayproxy.info/.\n * `menu.vip_str`: string to use in the `menu.torrent_format` when the user is VIP.\n * `menu.not_vip_str`: string to use in the `menu.torrent_format` when the user is not VIP.\n * `menu.trusted_str`: string to use in the `menu.torrent_format` when the user is trusted.\n * `menu.not_trusted_str`: string to use in the `menu.torrent_format` when the user is not trusted.\n * `menu.tpb_url`: tpb url, if `use_tpb_proxy` is True acts as a fallback url in case https://piratebayproxy.info/ is unavailable or the parsing fails.\n * `menu.categories`: comma separated list of tpb categories, when browsing the top torrents.\n * `menu.categories_48h`: add last 48h top torrent categories.\n * `actions.*`: commands to run on the selected torrent, **accepts torrent string format keys.**\n\nAvailable torrent string format keys:\n * `{title}`: torrent title\n * `{filesize}`: torrent file size\n * `{seeds}`: number of seeders\n * `{leeches}`: number of leechers\n * `{uploader}`: torrent uploader\n * `{upload_date}`: upload date\n * `{url}`: torrent's tpb url\n * `{magnetlink}`: torrent magnet link\n * `{vip}`: uploader is VIP, replaced with `menu.vip_str`/`menu.not_vip_str`.\n * `{trusted}`: uploader is trusted, replaced with `menu.trusted_str`/`menu.not_trusted_str`.\n\n\nIf the `menu.command` uses `rofi`, `rofi-tpb` will use `rofi`'s `-multiple-select` flag to allow for selecting multiple torrents.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiccoyle%2Frofi-tpb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floiccoyle%2Frofi-tpb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiccoyle%2Frofi-tpb/lists"}