{"id":20951382,"url":"https://github.com/lgug2z/sgrab","last_synced_at":"2025-04-11T17:42:19.665Z","repository":{"id":104319659,"uuid":"103525560","full_name":"LGUG2Z/sgrab","owner":"LGUG2Z","description":"Grab an episode file from a seedbox running Sonarr","archived":false,"fork":false,"pushed_at":"2017-09-15T11:54:56.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T13:45:39.789Z","etag":null,"topics":["seedbox","sonarr"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LGUG2Z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-14T11:43:47.000Z","updated_at":"2024-05-28T16:57:03.000Z","dependencies_parsed_at":"2023-03-13T14:58:29.880Z","dependency_job_id":null,"html_url":"https://github.com/LGUG2Z/sgrab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Fsgrab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Fsgrab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Fsgrab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Fsgrab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LGUG2Z","download_url":"https://codeload.github.com/LGUG2Z/sgrab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451662,"owners_count":21105911,"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":["seedbox","sonarr"],"created_at":"2024-11-19T00:58:38.628Z","updated_at":"2025-04-11T17:42:19.654Z","avatar_url":"https://github.com/LGUG2Z.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sgrab\n\nsgrab is a command line utility for grabbing episodes of TV shows from a \nseedbox running [Sonarr](https://sonarr.tv/).\n\n## Requirements\n* [Go](https://github.com/golang/go)\n\n## Install\nThe latest version of `sgrab` can be installed using `go get`.\n\n```\ngo get -u github.com/LGUG2Z/sgrab\n```\n\nMake sure that `$GOPATH` is set correctly that and that `$GOPATH/bin` is in your `$PATH`.\n\nThe `sgrab` executable will be installed under the `$GOPATH/bin` directory.\n\n### Required information\nIn order to use `sgrab` the following information is required:\n\n* Sonarr URL\n* Sonarr API key\n* Seedbox address\n* Seedbox login username\n\nThis information can either be set in your shell rc:\n\n```bash\nexport SGRAB_SONARR=https://mybox.com/sonarr/\nexport SGRAB_API_KEY=xxx\nexport SGRAB_SEEDBOX=mybox.com\nexport SGRAB_USERNAME=xxx\n```\n\nOr set using the relevant flags\n```\nFlags:\n      --api-key string    Sonarr API key\n  -e, --episode string    Episode number\n  -h, --help              help for sgrab\n      --port string       SSH port number for seedbox\n      --seedbox string    Seedbox address\n  -s, --series string     Series name\n      --sonarr string     Sonarr url\n      --ssh-key string    Path to SSH key\n      --username string   Seedbox login username\n```\n\n## Usage\nThe key at `$HOME/.ssh/id_rsa` is used to establish a secure connection to the\nseedbox to download the file. A different key can be provided using the `--ssh-key`\nflag.\n\nsgrab will by default try to connect to the seedbox on port 22. An alternative\nport can be specified using the `--port` flag.\n\nFor sgrab to make a successful connection to download the requested file, the\nseedbox should have been connected to before via SSH and an entry for the seedbox\nshould exist in `$HOME/.ssh/known_hosts`.\n\nThe `--series` flag is case-insensitive, however the name of the series must\notherwise match the primary name given to a series by Sonarr. Series that have\nmulti-word titles should be quoted.\n\nThe `--episode` flag uses the format \"s01e02\", with mandatory leading zeroes.\n\nExample:\n\n```bash\nsgrab --series \"Terrace House: Boys x Girls Next Door\" --episode s01e01\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgug2z%2Fsgrab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flgug2z%2Fsgrab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgug2z%2Fsgrab/lists"}