{"id":19045746,"url":"https://github.com/ivanjermakov/ytm","last_synced_at":"2026-06-18T06:31:03.607Z","repository":{"id":122488028,"uuid":"450600648","full_name":"ivanjermakov/ytm","owner":"ivanjermakov","description":"YouTube video manager TUI","archived":false,"fork":false,"pushed_at":"2024-06-11T22:32:01.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-12T06:03:05.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/ivanjermakov.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-21T18:33:04.000Z","updated_at":"2024-06-11T22:32:04.000Z","dependencies_parsed_at":"2024-06-10T13:49:13.245Z","dependency_job_id":"db82aa0d-50b6-4fbb-a762-b40783745da6","html_url":"https://github.com/ivanjermakov/ytm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivanjermakov/ytm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fytm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fytm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fytm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fytm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanjermakov","download_url":"https://codeload.github.com/ivanjermakov/ytm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fytm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34479552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-08T22:51:17.460Z","updated_at":"2026-06-18T06:31:03.590Z","avatar_url":"https://github.com/ivanjermakov.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ytm\n\nYouTube video manager TUI\n\n## Setup\n\n### Required programs\n\n- Stack\n- curl\n- [yt-dlp](https://github.com/yt-dlp/yt-dlp)\n\n### Running\n\n1. `git clone https://github.com/ivanjermakov/ytm`\n2. Create file `~/.config/ytm/.env`:\n\n    ```\n    API_KEY=\n    CLIENT_ID=\n    CLIENT_SECRET=\n    REFRESH_TOKEN=\n    ```\n\n4. `stack build`\n\n### Obtaining API credentials\n\n#### Obtaining `API_KEY`, `CLIENT_ID`, `CLIENT_SECRET`\n\nYou have to create a project in a [Google Cloud Console](https://console.cloud.google.com/). More\ndetails [here](https://developers.google.com/youtube/registering_an_application).\n\n#### Obtaining `REFRESH_TOKEN`\n\nYou need to have `CLIENT_ID` and `CLIENT_SECRET` obtained before.\n\n1. Request `CODE` with `CLIENT_ID`\n    ```\n    https://accounts.google.com/o/oauth2/v2/auth?client_id=CLIENT_ID\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026scope=https://www.googleapis.com/auth/youtube\u0026response_type=code\n    ```\n\n2. Request `REFRESH_TOKEN` with `CODE`, `CLIENT_ID` and `CLIENT_SECRET`\n    ```\n    curl -s \\\n    --request POST \\\n    --data \"code=CODE\u0026client_id=CLIENT_ID\u0026client_secret=CLIENT_SECRET\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026grant_type=authorization_code\" \\\n    https://accounts.google.com/o/oauth2/token\n    ```\n\n## Configuration\n\nytm uses two configuration files:\n\n- `.env` - stores API credentials\n- `config.yml` - user config\n\n`config.yml` example:\n\n```\nytm:\n  fetchDays: 4,\n  videosDumpPath: /home/USER/.cache/videos.dump\n  channelsDumpPath: /home/USER/.cache/channels.dump\n  downloadedPath: /home/USER/Videos/\n  downloadCommandPattern: yt-dlp %s -o '%%(id)s.%%(ext)s' -P '%s' -O '%%(id)s.%%(ext)s' --progress --newline --no-simulate\n  playCommandPattern: mpv %s\n```\n\nBy default, ytm will lookup those files in `$HOME/.config/ytm/` directory\n\nDo not modify existing `yt-dlp` flags as it might mess up file download and progress reporting","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanjermakov%2Fytm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanjermakov%2Fytm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanjermakov%2Fytm/lists"}