Tdarr Plugin Developer 44fe7b50b0 Refactor stream_organizer to v4.9 - modular architecture
Major refactoring completed:
- Extracted 15+ focused helper functions from 500-line monolith
- Main plugin() function reduced from ~500 lines to ~150 lines
- Organized into logical sections: Constants, Predicates, Utilities, Analysis, Extraction, Command Building
- Zero behavior changes - all logic preserved exactly
- Improved maintainability, testability, and readability

New structure:
- categorizeStreams() - Stream analysis
- reorderStreamsByLanguage() - Language priority sorting
- analyzeSubtitleConversion() - Conversion detection
- processSubtitleExtraction() - Subtitle file extraction
- processCCExtraction() - CC handling with lock files
- buildFFmpegCommand() - Command construction
- buildCCExtractionCommand() - CC wrapper command

Benefits:
- Each function has single, clear responsibility
- Better error isolation and debugging
- Easier to understand and modify
- Prepared for future unit testing
2025-12-15 12:01:30 -08:00
2025-12-15 11:33:36 -08:00
2025-12-15 11:33:36 -08:00

Tdarr Plugins

Custom Tdarr plugin stack for media transcoding.

  1. Tdarr_Plugin_misc_fixes (v2.8) - Pre-processing fixes

    • Container remuxing (MKV/MP4)
    • Stream conforming
    • Image stream removal
    • TS timestamp fixes
    • ISO/DVD file detection
  2. Tdarr_Plugin_stream_organizer (v4.8) - Stream organization

    • English audio/subtitle prioritization
    • Subtitle extraction to SRT
    • Closed caption extraction
    • SRT standardization
  3. Tdarr_Plugin_combined_audio_standardizer (v1.13) - Audio processing

    • AAC/Opus encoding
    • Stereo downmix creation
    • Quality presets
  4. Tdarr_Plugin_av1_svt_converter (v2.22) - Video encoding

    • AV1 encoding via SVT-AV1
    • Resolution scaling
    • Bitrate control

Directory Structure

tdarr_plugs/
├── Local/                 # Plugin files (mount in Tdarr)
│   └── *.js               # Tdarr plugin files
├── agent_notes/           # Development documentation
├── Latest-Reports/        # Error logs for analysis
├── PLUGIN_DOCUMENTATION.md
└── README.md

Usage

Mount /Local as your Tdarr local plugins directory.

Description
No description provided
Readme 97 MiB
Languages
JavaScript 100%