# dobbelina/repository.dobbelina architecture

> Architecture diagram of the GitHub repository dobbelina/repository.dobbelina, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dobbelina/repository.dobbelina
- Repository: https://github.com/dobbelina/repository.dobbelina

## Overview

##### Main Components Identification

a) Core Plugin Components:
- Main Plugin Interface (default.py)
- Resource Management Layer
- Site Handlers Layer
- Utility Services Layer
- Settings Management

b) External Services:
- Video Content Providers (multiple adult sites)
- FlareSolverr Service
- F4mProxy Service

**┌─────────────────────────────────────────────┐**
- Kodi Interface              │
- ┘
- ↕
**┌─────────────────────────────────────────────┐**
- Cumination Core (default.py)     │
- ┘
- ↕
**┌─────────────────────────────────────────────┐**
- Service Layer                 │
- ┬─────────────┬────────────────┤
- FlareSolverr │  F4mProxy  │ URL Dispatcher │
- ┴─────────────┴────────────────┘
- ↕
**┌─────────────────────────────────────────────┐**
- Site Handlers Layer             │
- ┬─────────────┬────────────────┤
- Site APIs  │ Decrypters  │    Parsers     │
- ┴─────────────┴────────────────┘
- ↕
**┌─────────────────────────────────────────────┐**
- Utility Layer                  │
- ┬─────────────┬────────────────┤
- Crypto    │   Helpers   │    Commons     │
- ┴─────────────┴────────────────┘

##### Component Relationships

- Double lines: Two-way communication

##### Additional Details

Annotations for:
- Security measures
- Caching mechanisms
- Error handling
- Configuration management
- Language support

##### Notes

Technical notes about:
- Required dependencies
- Security considerations
- Performance optimizations
- Error handling strategies

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Kodi
        KI[Kodi Interface]
    end

    subgraph Core
        CPI["Main Plugin Interface"]:::core
        click CPI "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/default.py"
    end

    subgraph Services
        direction TB
        FS["FlareSolverr Service"]:::service
        F4M["F4mProxy Service"]:::service
        UD["URL Dispatcher"]:::service
        click FS "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/flaresolverr.py"
        click F4M "https://github.com/dobbelina/repository.dobbelina/blob/master/script.video.F4mProxy/lib/F4mProxy.py"
        click UD "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/url_dispatcher.py"
    end

    subgraph "Site Handlers"
        direction TB
        SH["Site Handler Manager"]:::handler
        SA["Site APIs"]:::handler
        DC["Decrypters"]:::handler
        PS["Parsers"]:::handler
        click SH "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/adultsite.py"
        click SA "https://github.com/dobbelina/repository.dobbelina/tree/master/plugin.video.cumination/resources/lib/sites/"
        click DC "https://github.com/dobbelina/repository.dobbelina/tree/master/plugin.video.cumination/resources/lib/decrypters/"
    end

    subgraph "Utility Layer"
        direction TB
        UT["Utils"]:::utility
        BAS["Basics"]:::utility
        UA["Random UA"]:::utility
        EH["Exception Logger"]:::utility
        click UT "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/utils.py"
        click BAS "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/basics.py"
        click UA "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/random_ua.py"
        click EH "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/exception_logger.py"
    end

    subgraph "Security"
        direction TB
        CF["Cloudflare"]:::security
        JSC["JSCrypto"]:::security
        click CF "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/cloudflare.py"
        click JSC "https://github.com/dobbelina/repository.dobbelina/tree/master/plugin.video.cumination/resources/lib/jscrypto/"
    end

    subgraph "Configuration"
        direction TB
        SM["Settings Manager"]:::config
        FAV["Favorites System"]:::config
        CFAV["Convert Favorites"]:::config
        LNG["Language Support"]:::config
        click SM "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/settings.xml"
        click FAV "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/favorites.py"
        click CFAV "https://github.com/dobbelina/repository.dobbelina/blob/master/plugin.video.cumination/resources/lib/convertfav.py"
        click LNG "https://github.com/dobbelina/repository.dobbelina/tree/master/plugin.video.cumination/resources/language/"
    end

    KI --> CPI
    CPI --> Services
    CPI --> SH
    Services --> SH
    SH --> SA
    SH --> DC
    SH --> PS
    
    SA -.-> FS
    SA -.-> F4M
    SA --> UT
    
    DC --> JSC
    SA --> CF
    
    SH --> SM
    SH --> FAV
    FAV --> CFAV
    
    %% Component relationships with Utility Layer
    SH --> UT
    SH --> BAS
    SH --> UA
    SH --> EH

    %% Styling
    classDef core fill:#2374ab
    classDef service fill:#48a9a6
    classDef handler fill:#e4572e
    classDef utility fill:#a8a8a8
    classDef security fill:#9b287b
    classDef config fill:#d7af70

    %% Legend
    subgraph Legend
        L1[Core Components]:::core
        L2[Services]:::service
        L3[Site Handlers]:::handler
        L4[Utilities]:::utility
        L5[Security]:::security
        L6[Configuration]:::config
    end
```
