A comprehensive music video management and discovery platform that helps you organize, discover, and stream your music video collection with intelligent artist management and advanced search capabilities.
- π― Advanced Artist Management - Multi-criteria search and bulk operations
- π Comprehensive Video Discovery - Dual-source integration (IMVDb + YouTube)
- πΌοΈ Advanced Thumbnail Management - Multi-source search and cropping
- π Intelligent Organization - Automatic folder creation and cleanup
- π Advanced Search System - Real-time suggestions and filtering
- β‘ Bulk Operations - Multi-select editing and batch processing
- πΊ Video Streaming - Built-in player with transcoding support
- π System Health Monitoring - Comprehensive diagnostics
- βοΈ Database-Driven Settings - Complete configuration management
- π₯ Download Management - Queue visualization and progress tracking
- π¨ Modern UI - Left sidebar navigation with theme system
- πΊ MvTV Continuous Player - Cinematic mode for uninterrupted viewing
- π Genre Management - Automatic genre tagging and filtering
- π User Authentication - Role-based access control with security features
- π¨ Advanced Theme System - 7 built-in themes with export/import functionality
Note: This is a beta release following SemVer 0.x conventions. The software is feature-complete but undergoing testing and validation before the official v1.0.0 production release.
- ποΈ Database Configuration: All scheduler settings now stored in database
- ποΈ Web UI Management: Configure schedules through Settings page
- π« No More Environment Variables: Removed MVIDARR_USE_ENHANCED_SCHEDULER and related env vars
- π Job History Tracking: Complete history of all scheduled job executions
- π Dynamic Updates: Changes apply immediately without container restart
- π₯ Health Monitoring: Built-in health checks and status endpoints
- π REST API Control: Full API for automation and integration
- β»οΈ 10 Large Files Refactored - Transformed 15,133 lines into 58 modular files
- π 71.4% Average Size Reduction - Improved maintainability and testability
- π§Ή 607 Unused Imports Removed - Complete dead code elimination (100%)
- π¦ Backward Compatibility - All functionality preserved and verified
- ποΈ Enterprise Architecture - Modular design with clear separation of concerns
- π SQL Injection Protection - Parameterized queries and input validation (6 fixes)
- π‘οΈ Secure HTTP Requests - Timeout protection on all external calls (23 fixes)
- π Pickle Integrity - HMAC-SHA256 signature verification (1 fix)
- π Safe Parsing - Eliminated unsafe eval() usage (2 fixes)
- ποΈ Secure Temp Files - Proper temporary directory handling (3 fixes)
- π XML Protection - XXE attack prevention with defusedxml (2 fixes)
- π§ͺ 222/230 E2E Tests Passing - 96.5% pass rate with Playwright
- β 100% Critical Tests - All smoke tests and core functionality verified
- π Zero High-Severity Issues - Comprehensive security audit complete
- π Complete Documentation - API, scripts, and deployment guides updated
- π³ 3-Container Deployment - Reduced from 6 to 3 containers for home users
- βοΈ Supervisord Integration - FastAPI + Celery worker in single container
- π¦ Lower Resource Usage - Optimized for consumer-grade deployments
- π― Simplified Management - Easier troubleshooting and maintenance
- β¨ Full Functionality - All background jobs and features preserved
- Complete subtitle implementation (WebVTT, SRT, ASS, SSA, SUB)
- Smart YouTube language resolution
- User testing fixes (8/8 critical issues resolved)
- 100% Flask to FastAPI migration complete
- π³ Docker Optimization - Reduced build time from timeout failures to consistent 8-minute builds
- π¦ Container Size Optimization - Efficient multi-stage builds with optimized caching (1.41GB optimized size)
- π Build Monitoring - Comprehensive Docker build monitoring and validation infrastructure
- β‘ Build Reliability - 100% build success rate with automated size monitoring and performance tracking
- π οΈ Infrastructure - Enhanced CI/CD workflows with automated Docker monitoring and health checks
Simple 3-Container Architecture:
- mvidarr - FastAPI application + Celery worker (managed by supervisord)
- mariadb - Database
- redis - Cache and job queue
Installation Steps:
-
Clone the repository:
git clone https://github.com/prefect421/mvidarr.git cd mvidarr -
Create your environment file:
cp .env.example .env
-
Edit .env with your configuration:
nano .env # or use your preferred editorRequired settings:
DB_PASSWORD- Set a secure database passwordMYSQL_ROOT_PASSWORD- Set a secure root passwordSECRET_KEY- Generate with:openssl rand -hex 32MUSIC_VIDEOS_PATH- Path to your music video collection
-
Start MVidarr:
docker-compose up -d
-
Access the application:
- Open your browser to
http://localhost:5000 - Default login:
admin/admin(change immediately) - Complete the first-run setup wizard
- Open your browser to
Docker Images:
- Latest:
ghcr.io/prefect421/mvidarr:latest - Specific version:
ghcr.io/prefect421/mvidarr:v0.10.0-beta.1
What's Running:
- All background jobs (Celery) run automatically inside the main container
- Supervisord manages both FastAPI and Celery processes
- Simple, efficient, and optimized for home users
Prerequisites:
- Python 3.12+
- MariaDB 11.4+ (recommended)
- FFmpeg (for video processing)
Installation:
# Clone and setup
git clone https://github.com/prefect421/mvidarr.git
cd mvidarr
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# Start FastAPI application
python fastapi_app.pyProduction Service:
# Install as systemd service (recommended)
sudo cp mvidarr.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable mvidarr.service
sudo systemctl start mvidarr.service
# Check service status
sudo systemctl status mvidarr.serviceAccess: http://localhost:5000
- Installation Guide - Docker, Manual, and Unraid installation
- Unraid Installation - Complete Unraid setup guide
- User Guide - Feature documentation and tutorials
- Configuration Guide - Settings and customization
- Troubleshooting - Common issues and solutions
- API Documentation - REST API reference and OpenAPI docs
- Deployment Guide - Production deployment with background jobs
- Docker Optimization - Container optimization
- Security Implementation - Security features
- Architecture - System architecture and design
MVidarr is built with modern, high-performance architecture:
- Backend: FastAPI (Python 3.12+) with async operations and advanced features
- API Layer: Comprehensive FastAPI with versioning, request logging, and auto-generated clients
- Template System: Async Jinja2 templates with performance optimization and caching
- WebSocket Support: Native FastAPI WebSockets for real-time features
- Background Jobs: Celery + Redis for reliable metadata enrichment and processing
- Database: MariaDB 11.4+ with async connection pooling and optimization
- Frontend: Modern HTML5/CSS3/JavaScript with ES6+ async patterns
- Performance: Multi-layer caching (Memory + Redis), compression, and optimization
- Testing: Enterprise-grade validation and load testing frameworks
- Media Processing: FFmpeg, yt-dlp for video downloading and processing
- Authentication: Secure user management with role-based access control
- Security: bcrypt password hashing, session management, audit logging
- Containerization: Optimized Docker Compose with multi-stage builds, automated monitoring, and 1.41GB production images
Configuration is managed through:
- Database settings (preferred for production)
- Environment variables
- Docker Compose environment files
Key environment variables:
# Database
DB_HOST=mariadb
DB_PASSWORD=secure_password
SECRET_KEY=your-secret-key
# External APIs
IMVDB_API_KEY=your-imvdb-key
YOUTUBE_API_KEY=your-youtube-key
# Background Jobs (New!)
REDIS_URL=redis://redis:6379/0
CELERY_BROKER_URL=redis://redis:6379/0
BACKGROUND_JOBS_ENABLED=trueMVidarr includes comprehensive security features:
- Multi-user authentication with role-based access (Admin, Manager, User, ReadOnly)
- Secure password hashing with bcrypt
- Session management with secure tokens and expiration
- Account lockout protection against brute force attacks
- Password reset functionality with secure tokens
- Audit logging for user actions and system events
- SQL injection prevention with parameterized queries and ORM
- Docker security with non-root containers and isolated networking
- Personal Music Video Collections - Organize and stream your collection
- Music Discovery - Find new videos through integrated search
- Media Center Integration - Works with Plex and other media servers
- Home Entertainment - MvTV mode for continuous viewing
- Music Research - Advanced search and filtering capabilities
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a virtual environment:
python -m venv venv - Activate it:
source venv/bin/activate(Linux/macOS) orvenv\Scripts\activate(Windows) - Install dev dependencies:
pip install -r requirements.txt - Run tests:
pytest
This project is licensed under the MIT License - see the LICENSE file for details.
- yt-dlp - Video download and processing
- IMVDb - Music video metadata database
- YouTube API - Video discovery and streaming
- Flask - Web framework
- MariaDB - Database engine
- Documentation: Check the docs/ directory
- Issues: Report bugs via GitHub Issues
- Community: Join our discussions
MVidarr v0.10.0-beta.1 - Built with β€οΈ for music video enthusiasts
