{"id":20718563,"url":"https://github.com/5rahim/habari","last_synced_at":"2025-10-04T18:06:36.113Z","repository":{"id":261372472,"uuid":"883250939","full_name":"5rahim/habari","owner":"5rahim","description":"Video filename parser written in Go.","archived":false,"fork":false,"pushed_at":"2024-12-28T20:40:20.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T10:59:58.550Z","etag":null,"topics":["bittorrent","filename","parser","torrent"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5rahim.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":"2024-11-04T16:28:25.000Z","updated_at":"2025-01-04T17:10:47.000Z","dependencies_parsed_at":"2024-11-06T08:12:52.579Z","dependency_job_id":"40816885-2e9d-4d4f-8fe1-dec4bbb7f95d","html_url":"https://github.com/5rahim/habari","commit_stats":null,"previous_names":["5rahim/habari"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5rahim%2Fhabari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5rahim%2Fhabari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5rahim%2Fhabari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5rahim%2Fhabari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5rahim","download_url":"https://codeload.github.com/5rahim/habari/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234435974,"owners_count":18832207,"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":["bittorrent","filename","parser","torrent"],"created_at":"2024-11-17T03:14:00.582Z","updated_at":"2025-09-27T12:31:33.515Z","avatar_url":"https://github.com/5rahim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./docs/logo-02.png\" alt=\"preview\" width=\"200px\"/\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e\u003cb\u003eHabari\u003c/b\u003e\u003c/h2\u003e\n\n\u003ch4 align=\"center\"\u003eVideo filename parser written in Go.\u003c/h4\u003e\n\n# Use\n\n```go\npackage main\n\nimport (\n\thabari \"github.com/5rahim/habari\"\n)\n\nfunc main() {\n\tdata := habari.Parse(\"Hyouka (2012) S1-2 [BD 1080p HEVC OPUS] [Dual-Audio]\")\n\tprintln(data.Title)           // Hyouka\n\tprintln(data.FormattedTitle)  // Hyouka (2012)\n\tprintln(data.Year)            // 2012\n\tprintln(data.SeasonNumber)    // []string{\"1\", \"2\"}\n\tprintln(data.VideoResolution) // 1080p\n}\n```\n\n```go\npackage habari\n\ntype Metadata struct {\n\tTitle               string   `json:\"title,omitempty\"`\n\tFormattedTitle      string   `json:\"formatted_title,omitempty\"`\n\tSeasonNumber        []string `json:\"season_number,omitempty\"`\n\tPartNumber          []string `json:\"part_number,omitempty\"`\n\tVolumeNumber        []string `json:\"volume_number,omitempty\"`\n\tEpisodeNumber       []string `json:\"episode_number,omitempty\"`\n\tEpisodeNumberAlt    []string `json:\"episode_number_alt,omitempty\"`\n\tOtherEpisodeNumber  []string `json:\"other_episode_number,omitempty\"`\n\tAnimeType           []string `json:\"anime_type,omitempty\"`\n\tYear                string   `json:\"year,omitempty\"`\n\tAudioTerm           []string `json:\"audio_term,omitempty\"`\n\tDeviceCompatibility []string `json:\"device_compatibility,omitempty\"`\n\tEpisodeTitle        string   `json:\"episode_title,omitempty\"`\n\tFileChecksum        string   `json:\"file_checksum,omitempty\"`\n\tFileExtension       string   `json:\"file_extension,omitempty\"`\n\tFileName            string   `json:\"file_name,omitempty\"`\n\tLanguage            []string `json:\"language,omitempty\"`\n\tReleaseGroup        string   `json:\"release_group,omitempty\"`\n\tReleaseInformation  []string `json:\"release_information,omitempty\"`\n\tReleaseVersion      []string `json:\"release_version,omitempty\"`\n\tSource              []string `json:\"source,omitempty\"`\n\tSubtitles           []string `json:\"subtitles,omitempty\"`\n\tVideoResolution     string   `json:\"video_resolution,omitempty\"`\n\tVideoTerm           []string `json:\"video_term,omitempty\"`\n}\n\n```\n\n# Examples\n\n```json\n{\n  \"file_name\": \"Howl's_Moving_Castle_(2004)_[1080p,BluRay,flac,dts,x264]_-_THORA v2.mkv\",\n  \"title\": \"Howl's Moving Castle\",\n  \"formatted_title\": \"Howl's Moving Castle (2004)\",\n  \"year\": \"2004\",\n  \"audio_term\": [\n    \"flac\",\n    \"dts\"\n  ],\n  \"file_extension\": \"mkv\",\n  \"release_group\": \"THORA\",\n  \"release_version\": [\n    \"2\"\n  ],\n  \"source\": [\n    \"BluRay\"\n  ],\n  \"video_resolution\": \"1080p\",\n  \"video_term\": [\n    \"x264\"\n  ]\n}\n```\n\n```json\n{\n  \"file_name\": \"[TV-J] Kidou Senshi Gundam UC Unicorn - episode.02 [BD 1920x1080 h264+AAC(5.1ch JP+EN) +Sub(JP-EN-SP-FR-CH) Chap].mp4\",\n  \"title\": \"Kidou Senshi Gundam UC Unicorn\",\n  \"formatted_title\": \"Kidou Senshi Gundam UC Unicorn\",\n  \"episode_number\": [\n    \"02\"\n  ],\n  \"file_extension\": \"mp4\",\n  \"release_group\": \"TV-J\",\n  \"source\": [\n    \"BD\"\n  ],\n  \"audio_term\": [\n    \"AAC\",\n    \"5.1ch\"\n  ],\n  \"video_resolution\": \"1920x1080\",\n  \"video_term\": [\n    \"h264\"\n  ],\n  \"subtitles\": [\n    \"Sub\"\n  ],\n  \"language\": [\n    \"JP\",\n    \"EN\",\n    \"JP\",\n    \"EN\",\n    \"FR\",\n    \"CH\"\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5rahim%2Fhabari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5rahim%2Fhabari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5rahim%2Fhabari/lists"}