No description
  • Python 51.9%
  • HTML 24.9%
  • JavaScript 15.9%
  • CSS 6.3%
  • Dockerfile 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-27 08:27:41 -04:00
.vscode Made dev branch and added files 2026-09-06 00:37:30 -04:00
classes Greatly changed systems, adding support for shows and music 2026-10-25 23:09:48 -04:00
media/Music Greatly changed systems, adding support for shows and music 2026-10-25 23:09:48 -04:00
static Merge branch 'dev' 2026-10-25 23:19:16 -04:00
templates Greatly changed systems, adding support for shows and music 2026-10-25 23:09:48 -04:00
.gitignore finally 2026-10-27 08:27:39 -04:00
AGENTS.md Greatly changed systems, adding support for shows and music 2026-10-25 23:09:48 -04:00
app.py Greatly changed systems, adding support for shows and music 2026-10-25 23:09:48 -04:00
docker-compose.yml Update docker-compose.yml 2026-10-25 23:31:09 -04:00
Dockerfile Made dev branch and added files 2026-09-06 00:37:30 -04:00
LICENSE Initial commit 2026-09-06 00:00:09 -04:00
opencode.jsonc Add opencode.jsonc config. Also add json import to app.py 2026-10-04 16:28:42 -04:00
README.md Updated README.md (opencode) 2026-10-08 22:12:20 -04:00
requirements.txt Added program files 2026-09-06 00:19:59 -04:00
test.py Greatly changed systems, adding support for shows and music 2026-10-25 23:09:48 -04:00

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)

  1. Clone the repository:

    git clone <your-repo-url>
    cd media-server
    
  2. Install Python dependencies:

    pip install -r requirements.txt
    
  3. Run the application:

    python app.py
    

    The application will start on http://localhost:8001.

Installation (Docker)

If you have Docker installed, you can run the application in a container:

  1. Clone the repository:

    git clone <your-repo-url>
    cd media-server
    
  2. Build and start the container:

    docker-compose up -d --build
    

    The 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 in docker-compose.yml.
  • Host & Port: By default, the local Python script runs on port 8001, while the Docker container is mapped to 5000.

How to Use

  1. Open your web browser and navigate to the application URL.
  2. Select File: Choose the .mp4 file(s) you want to add to your collection.
  3. 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.
  4. 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]