{"id":18788708,"url":"https://github.com/pereviader/srtinjector","last_synced_at":"2025-10-09T11:11:50.911Z","repository":{"id":167733192,"uuid":"643358894","full_name":"PereViader/SrtInjector","owner":"PereViader","description":"SrtInjector is a simple command-line tool designed to inject the subtitle contents of a TXT file into an SRT file","archived":false,"fork":false,"pushed_at":"2023-05-21T18:15:09.000Z","size":19,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T03:42:14.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/PereViader.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,"zenodo":null}},"created_at":"2023-05-20T22:50:21.000Z","updated_at":"2024-11-04T09:09:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f302c317-aa2e-4707-b137-0def4d880d2f","html_url":"https://github.com/PereViader/SrtInjector","commit_stats":null,"previous_names":["pereviader/srtinjector"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PereViader/SrtInjector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PereViader%2FSrtInjector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PereViader%2FSrtInjector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PereViader%2FSrtInjector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PereViader%2FSrtInjector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PereViader","download_url":"https://codeload.github.com/PereViader/SrtInjector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PereViader%2FSrtInjector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001290,"owners_count":26083058,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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-07T21:05:37.949Z","updated_at":"2025-10-09T11:11:50.894Z","avatar_url":"https://github.com/PereViader.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SrtInjector\n\n## Overview\nSrtInjector is a simple command-line tool designed to inject the content of a TXT file into an SRT file (https://en.wikipedia.org/wiki/SubRip). \n\nThe tool is useful for scenarios where you have an SRT subtitle file and you want to easily translate or modify itwithout all the extra metadata present in the SRT file itself.\n\nThis assumes you can generate a TXT file from the SRT file. Search `SRT to TXT converter online`.\n\nThe TXT is just the contents of the text subtitles in the SRT file.\n\nOnce you have the TXT file with the relevant changes, run the application and it will update the SRT file with them.\n\n## Format\n\nSRT\n```\n1\n00:02:16,612 --\u003e 00:02:19,376\nSenator, we're making our final approach into Coruscant.\n\n2\n00:02:19,482 --\u003e 00:02:21,609\nVery good, Lieutenant.\n\n3\n00:03:13,336 --\u003e 00:03:15,167\nWe made it.\n\n4\n00:03:18,608 --\u003e 00:03:20,371\nI guess I was wrong.\n\n5\n00:03:20,476 --\u003e 00:03:22,671\nThere was no danger at all.\n```\n\nTXT without empty lines in between\n```\nSenator, we're making our final approach into Coruscant.\nVery good, Lieutenant.\nWe made it.\nI guess I was wrong.\nThere was no danger at all.\n```\n\nTXT with empty lines in between\n```\nSenator, we're making our final approach into Coruscant.\n\nVery good, Lieutenant.\n\nWe made it.\n\nI guess I was wrong.\n\nThere was no danger at all.\n```\n\nIf you want to remove a subtitle, instead of leaving a line completely empty on the TXT file, add an ` ` empty space character\n\n```\nThe line below has an empty space\n  \nThe line on top has an empty space\n```\n\n## How to Use\nEnsure that you have the .NET 6 Runtime installed on your system. (https://aka.ms/dotnet-core-applaunch?missing_runtime=true)\n\nDownload the SrtInjector tool and extract it to a directory of your choice.\n\nPlace the SRT file and TXT file you want to inject into in the same directory as the SrtInjector executable.\n\nThe SRT and TXT files should be named `\u003cfileName\u003e.txt` and `\u003cfileName\u003e.srt` where `\u003cfileName\u003e` is the same for both files.\n\nNote: It's always a good practice to keep backup copies of your original SRT files before using any modification tools like SrtInjector to avoid any unintentional data loss.\n\nRun the SrtInjector application\nAfter execution, a new SRT file will be created in the same directory, with the name `\u003cfileName\u003e.new.srt`. This new file will inject the original SRT file text contents with the contents of the TXT file.\n\nIf the new srt file could not be created due to problems with the original file, an error file will be created instead.\n\n## Important Notes\nThe SrtInjector tool replaces the content of specific lines in the SRT file with the content from the TXT file. It assumes a specific format and structure for both files.\nMake sure to review the resulting new SRT file to ensure that the injection was performed correctly and that the subtitle synchronization is maintained.\nSrtInjector is a convenient tool for modifying or supplementing SRT subtitle files using the content from a TXT file. It simplifies the process of injecting new or updated subtitle content into existing SRT files, saving you time and effort in manually editing the files.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpereviader%2Fsrtinjector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpereviader%2Fsrtinjector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpereviader%2Fsrtinjector/lists"}