{"id":18793325,"url":"https://github.com/deflix-tv/go-debrid","last_synced_at":"2025-04-13T14:31:58.447Z","repository":{"id":54276211,"uuid":"330419785","full_name":"Deflix-tv/go-debrid","owner":"Deflix-tv","description":"Go library for turning torrents into cached HTTP streams via debrid services like RealDebrid, AllDebrid and Premiumize","archived":false,"fork":false,"pushed_at":"2021-05-15T14:15:05.000Z","size":83,"stargazers_count":30,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T06:02:30.643Z","etag":null,"topics":["alldebrid","debrid","go","golang","http","magnet","magnet-link","premiumize","realdebrid","torrent","torrents"],"latest_commit_sha":null,"homepage":"https://www.deflix.tv","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Deflix-tv.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":"2021-01-17T15:16:04.000Z","updated_at":"2024-12-08T06:46:00.000Z","dependencies_parsed_at":"2022-08-13T10:40:54.755Z","dependency_job_id":null,"html_url":"https://github.com/Deflix-tv/go-debrid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deflix-tv%2Fgo-debrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deflix-tv%2Fgo-debrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deflix-tv%2Fgo-debrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deflix-tv%2Fgo-debrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deflix-tv","download_url":"https://codeload.github.com/Deflix-tv/go-debrid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248728063,"owners_count":21152144,"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":["alldebrid","debrid","go","golang","http","magnet","magnet-link","premiumize","realdebrid","torrent","torrents"],"created_at":"2024-11-07T21:24:24.432Z","updated_at":"2025-04-13T14:31:58.213Z","avatar_url":"https://github.com/Deflix-tv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-debrid\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/deflix-tv/go-debrid.svg)](https://pkg.go.dev/github.com/deflix-tv/go-debrid)\n\nGo library for the public APIs of debrid services like [RealDebrid](https://real-debrid.com/), [AllDebrid](https://alldebrid.com/) and [Premiumize](https://www.premiumize.me/)\n\n## Features\n\n- Get user account info\n- Get instant availability (cache) info for a link / torrent\n- Add a link / torrent to a debrid service's downloads\n- Get status info about a link / torrent that the debrid service is downloading / has downloaded\n- Get the direct download link for a link / torrent after the debrid service has downloaded it\n- Delete the torrent that the debrid service is downloading / has downloaded\n\n## Usage\n\nThe library consists of a root-level package which contains a cache interface and example cache implementation, as well as subpackages for the specific debrid services. Each service-specific subpackage contains both a legacy client (the client from `v0.1.0`), and a low level client whose methods match the public API endpoints. In the future a common client will be added that has a generic interface and is backed by service-specific clients.\n\nGodoc:\n\n- [RealDebrid](https://pkg.go.dev/github.com/deflix-tv/go-debrid/realdebrid)\n- [AllDebrid](https://pkg.go.dev/github.com/deflix-tv/go-debrid/alldebrid)\n- [Premiumize](https://pkg.go.dev/github.com/deflix-tv/go-debrid/premiumize)\n\n### Example\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n\n    \"github.com/deflix-tv/go-debrid/realdebrid\"\n)\n\nfunc main() {\n    // Create new client\n    auth := realdebrid.Auth{KeyOrToken: \"123\"}\n    rd := realdebrid.NewClient(realdebrid.DefaultClientOpts, auth, nil)\n\n    // We're using some info hashes of \"Night of the Living Dead\" from 1968, which is in the public domain\n    infoHashes := []string{\n        \"50B7DAFB7137CBECF045F78E8EFBE4AC1A90D139\",\n        \"11EA02584FA6351956F35671962AB46354D99060\",\n    }\n    availabilities, _ := rd.GetInstantAvailability(context.Background(), infoHashes...)\n\n    // Iterate through the available torrents and print their details\n    for hash, availability := range availabilities {\n        fmt.Printf(\"Hash: %v\\nAvailability: %+v\\n\", hash, availability)\n    }\n}\n\n```\n\nFor more detailed examples see [examples](examples).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeflix-tv%2Fgo-debrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeflix-tv%2Fgo-debrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeflix-tv%2Fgo-debrid/lists"}