Contribute
How to help, and where to put things
Most of the friction in an open-source project is people not knowing which door to use. This page is the answer to that.
Where does my thing go?
Four doors. Picking the right one is the single most useful thing you can do before writing anything.
Something is broken
A GitHub issueAn issue is tracked against a release and closed by a commit. A forum thread is not, so a bug reported there gets lost.
Open an issue →I want a feature
A report, marked as an ideaFeatures need agreement before they need code. Send it as an idea and, if there is appetite, it becomes an issue with the design already settled.
Suggest it →How do I…?
The guides, then a reportMost answers are already written down, and the troubleshooting guide covers what people actually hit. If it is not there, that gap is itself worth reporting.
Troubleshooting →I have a patch
A pull requestSmall and focused. One concern per pull request — two unrelated fixes in one diff take four times as long to review.
Pull requests →Do not file it twice
A duplicate is not a crime, and it is usually not laziness — it is a search that did not work. But every duplicate splits a conversation in two, so the answer ends up half in each and complete in neither.
For a discussion: the search is automatic
Start typing a title and existing discussions appear beside the box, with answered ones marked. If one is a very close match you are asked to look before posting — and you can still post, because only you can tell whether yours is genuinely different.
For an issue: two searches, thirty seconds
- 1. Search open and closed issues. Closed matters: it may be fixed in a version you have not installed.
- 2. Search one or two words from the error message, not your whole sentence. Full-text search works on words.
- 3. Found it? Add what you know — a second reproduction is worth more than a second issue. Particularly a different Windows version, or a file that triggers it reliably.
What makes a report usable
The difference between a bug fixed this week and one that sits for a month is almost always these four lines.
- The exact error text, copied rather than described. “It said something about a format” cannot be searched for.
- The output of
anytrim info. Versions of the app, yt-dlp and FFmpeg, which is the first thing anybody will ask. - What you did, in order, short enough that somebody else can follow it. Three numbered steps beats a paragraph.
- What you expected instead. Sometimes the behaviour is intended and this is where that becomes clear — the clip start moving backwards, for instance, is the keyframe constraint, not a bug.
Please do not include a link to a video you do not have the rights to. Describe the file instead: resolution, codec, length.
Working on the code
About 8,000 lines of Python. Every file has comments explaining why rather than what, and the tests run in a second with no network and no video files.
Get it running
git clone https://github.com/manmohan-dwivedi/anYTrim.git cd anYTrim powershell -ExecutionPolicy Bypass -File setup.ps1
Run the tests before you change anything
.venv\Scripts\python.exe tests\test_core.py .venv\Scripts\python.exe tests\test_windows.py
Knowing they passed beforehand is what lets you tell your breakage from somebody else’s.
Keep to the two rules
Clips are never re-encoded, and the interface never lies to the user. Both are in CONTRIBUTING.md, and neither is up for a vote — they are the reasons the project exists.
One concern per pull request
Add a test if you fixed a bug. A test that would have caught it is worth more than the fix, because the fix only works once.
Five first tasks
Each is genuinely an evening, and each is wanted rather than invented for this page.
1A --every / --count flag on anytrim clip
Mirror the GUI's sequential clip generator on the command line. The arithmetic already exists and is tested in core/clips.py — this is wiring and a test.
2Queue persistence across restarts
History already survives a restart; the queue does not. The shape to copy is right there in core/history.py.
3Linux or macOS support
Most of core/ is portable already. The Windows specifics are concentrated in core/tools.py and the process-tree kill in core/downloader.py. A working build on either platform would be a real contribution.
4Background format probing for playlists
Per-video formats are fetched on demand, which makes a long playlist feel slow. Probing ahead in the background would fix it.
5Answer one question in the forum
Not a joke, and not a lesser contribution. One answered question saves the next twenty people the same hour.