No description
- Python 51.9%
- HTML 24.9%
- JavaScript 15.9%
- CSS 6.3%
- Dockerfile 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .vscode | ||
| classes | ||
| media/Music | ||
| static | ||
| templates | ||
| .gitignore | ||
| AGENTS.md | ||
| app.py | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| opencode.jsonc | ||
| README.md | ||
| requirements.txt | ||
| test.py | ||
Media Share
A simple, streamlined web interface designed to help you upload and organize media files (specifically .mp4 videos) into a directory structure that is automatically compatible with media servers like Jellyfin.
Features
- Simplified Uploads: A clean web interface for uploading media files.
- Automatic Organization: Automatically creates and organizes folders based on the format:
Library Name / Movie Name (Year). - Multi-file Support: Upload multiple files simultaneously.
- Easy Deployment: Provided with both standard Python installation instructions and Docker support.
Tech Stack
- Backend: Python 3, Flask
- Frontend: HTML5, CSS3, JavaScript
- Containerization: Docker, Docker Compose
Getting Started
Prerequisites
- Python 3.9+
pip- Optional: Docker & Docker Compose for containerized deployment.
Installation (Local)
-
Clone the repository:
git clone <your-repo-url> cd media-server -
Install Python dependencies:
pip install -r requirements.txt -
Run the application:
python app.pyThe application will start on
http://localhost:8001.
Installation (Docker)
If you have Docker installed, you can run the application in a container:
-
Clone the repository:
git clone <your-repo-url> cd media-server -
Build and start the container:
docker-compose up -d --buildThe application will be accessible at
http://localhost:5000.
Configuration
- Upload Path: The default path is configured in
app.py. If running within Docker, ensure yours matches the volume mapping indocker-compose.yml. - Host & Port: By default, the local Python script runs on port
8001, while the Docker container is mapped to5000.
How to Use
- Open your web browser and navigate to the application URL.
- Select File: Choose the
.mp4file(s) you want to add to your collection. - Input Details:
- Movie Name: Enter the title of the content.
- Movie Release Year: Enter the release year (e.g., 2023).
- Library: Select the destination category from the dropdown.
- Upload: Click the "Upload Files" button. The system will process the file and move it to the correct directory.
Project Structure
app.py: The main Flask application engine.requirements.txt: List of Python dependencies.Dockerfile: Instructions for building the Docker image.docker-compose.yml: Orchestration for running the app via Docker.static/: Contains CSS and Javascript for the UI.templates/: HTML templates for the application pages.test.py: Utility script for testing features.
License
[Replace with your preferred license, e.g., MIT]