# sportlive18/sportlink-wtf architecture

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

- Interactive diagram: https://gitdiagram.com/sportlive18/sportlink-wtf
- Repository: https://github.com/sportlive18/sportlink-wtf

## Overview

This repository provides IPTV channel playlists and small scripts for refreshing cookie data and combining Sony channel data with a shared cookie. The demonstrated workflow fetches remote JSON, extracts or combines its contents, and writes local JSON artifacts; the M3U files are separate playlist assets. The playlist contents and the other listed JSON files were not sampled, so their formats and relationships are not inferred.

Main entry points: [`scripts/cookie.py`](https://github.com/sportlive18/sportlink-wtf/blob/main/scripts/cookie.py) (Cookie fetcher), [`scripts/sony2.py`](https://github.com/sportlive18/sportlink-wtf/blob/main/scripts/sony2.py) (Sony combiner), [`Sport.m3u`](https://github.com/sportlive18/sportlink-wtf/blob/main/Sport.m3u) (Sport playlist), [`Sports.m3u`](https://github.com/sportlive18/sportlink-wtf/blob/main/Sports.m3u) (Sports playlist)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_playlists["IPTV Playlists"]
  node_sport_playlist["Sport playlist<br/>[Sport.m3u]"]
  node_sports_playlist["Sports playlist<br/>[Sports.m3u]"]
  node_sony_playlist["Sony playlist<br/>[sony.m3u]"]
  node_sony2_playlist["Sony playlist 2<br/>[sony2.m3u]"]
  node_sony3_playlist["Sony playlist 3<br/>[sony3.m3u]"]
  node_sony4_playlist["Sony playlist 4<br/>[sony4.m3u]"]
  node_sun_playlist["Sun playlist<br/>[sun.m3u]"]
  node_zee_playlist["Zee playlist<br/>[zee.m3u]"]
  node_zee2_playlist["Zee playlist 2<br/>[zee2.m3u]"]
  node_zee3_playlist["Zee playlist 3<br/>[zee3.m3u]"]
  node_zee4_playlist["Zee playlist 4<br/>[zee4.m3u]"]
end

subgraph group_refresh["Data Refresh"]
  node_cookie_refresh["Cookie fetcher<br/>[cookie.py]"]
  node_sony_refresh["Sony combiner<br/>[sony2.py]"]
end

subgraph group_artifacts["JSON Artifacts"]
  node_cookie_json["Cookie data<br/>[cookie.json]"]
  node_sportcookie_json["Sport cookie data<br/>[sportcookie.json]"]
  node_sony_json["Sony channel data<br/>[sony.json]"]
end

node_consumer(("Playlist user"))
node_cookie_service["Cookie service"]
node_sport_cookie_service["Sport cookie service"]
node_channel_service["Channel service"]

node_consumer -->|"uses"| node_sport_playlist
node_consumer -->|"uses"| node_sports_playlist
node_consumer -->|"uses"| node_sony_playlist
node_consumer -->|"uses"| node_sony2_playlist
node_consumer -->|"uses"| node_sony3_playlist
node_consumer -->|"uses"| node_sony4_playlist
node_consumer -->|"uses"| node_sun_playlist
node_consumer -->|"uses"| node_zee_playlist
node_consumer -->|"uses"| node_zee2_playlist
node_consumer -->|"uses"| node_zee3_playlist
node_consumer -->|"uses"| node_zee4_playlist
node_cookie_refresh -->|"fetches"| node_cookie_service
node_cookie_refresh -->|"fetches"| node_sport_cookie_service
node_cookie_refresh -->|"writes"| node_cookie_json
node_cookie_refresh -->|"writes"| node_sportcookie_json
node_sony_refresh -->|"fetches"| node_channel_service
node_sony_refresh -->|"fetches"| node_cookie_service
node_sony_refresh -->|"writes"| node_sony_json

click node_sport_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/Sport.m3u"
click node_sports_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/Sports.m3u"
click node_sony_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/sony.m3u"
click node_sony2_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/sony2.m3u"
click node_sony3_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/sony3.m3u"
click node_sony4_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/sony4.m3u"
click node_sun_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/sun.m3u"
click node_zee_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/zee.m3u"
click node_zee2_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/zee2.m3u"
click node_zee3_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/zee3.m3u"
click node_zee4_playlist "https://github.com/sportlive18/sportlink-wtf/blob/main/zee4.m3u"
click node_cookie_refresh "https://github.com/sportlive18/sportlink-wtf/blob/main/scripts/cookie.py"
click node_sony_refresh "https://github.com/sportlive18/sportlink-wtf/blob/main/scripts/sony2.py"
click node_cookie_json "https://github.com/sportlive18/sportlink-wtf/blob/main/cookie.json"
click node_sportcookie_json "https://github.com/sportlive18/sportlink-wtf/blob/main/sportcookie.json"
click node_sony_json "https://github.com/sportlive18/sportlink-wtf/blob/main/sony.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sport_playlist,node_sports_playlist,node_sony_playlist,node_sony2_playlist,node_sony3_playlist,node_sony4_playlist,node_sun_playlist,node_zee_playlist,node_zee2_playlist,node_zee3_playlist,node_zee4_playlist,node_consumer toneBlue
class node_cookie_refresh,node_sony_refresh toneAmber
class node_cookie_json,node_sportcookie_json,node_sony_json toneMint
class node_cookie_service,node_sport_cookie_service,node_channel_service toneIndigo
```

## Components

### IPTV Playlists

- [Sport playlist](https://github.com/sportlive18/sportlink-wtf/blob/main/Sport.m3u): `Sport.m3u`
- [Sports playlist](https://github.com/sportlive18/sportlink-wtf/blob/main/Sports.m3u): `Sports.m3u`
- [Sony playlist](https://github.com/sportlive18/sportlink-wtf/blob/main/sony.m3u): `sony.m3u`
- [Sony playlist 2](https://github.com/sportlive18/sportlink-wtf/blob/main/sony2.m3u): `sony2.m3u`
- [Sony playlist 3](https://github.com/sportlive18/sportlink-wtf/blob/main/sony3.m3u): `sony3.m3u`
- [Sony playlist 4](https://github.com/sportlive18/sportlink-wtf/blob/main/sony4.m3u): `sony4.m3u`
- [Sun playlist](https://github.com/sportlive18/sportlink-wtf/blob/main/sun.m3u): `sun.m3u`
- [Zee playlist](https://github.com/sportlive18/sportlink-wtf/blob/main/zee.m3u): `zee.m3u`
- [Zee playlist 2](https://github.com/sportlive18/sportlink-wtf/blob/main/zee2.m3u): `zee2.m3u`
- [Zee playlist 3](https://github.com/sportlive18/sportlink-wtf/blob/main/zee3.m3u): `zee3.m3u`
- [Zee playlist 4](https://github.com/sportlive18/sportlink-wtf/blob/main/zee4.m3u): `zee4.m3u`

### Data Refresh

- [Cookie fetcher](https://github.com/sportlive18/sportlink-wtf/blob/main/scripts/cookie.py): `scripts/cookie.py`
- [Sony combiner](https://github.com/sportlive18/sportlink-wtf/blob/main/scripts/sony2.py): `scripts/sony2.py`

### JSON Artifacts

- [Cookie data](https://github.com/sportlive18/sportlink-wtf/blob/main/cookie.json): `cookie.json`
- [Sport cookie data](https://github.com/sportlive18/sportlink-wtf/blob/main/sportcookie.json): `sportcookie.json`
- [Sony channel data](https://github.com/sportlive18/sportlink-wtf/blob/main/sony.json): `sony.json`

### Other components

- **Playlist user**
- **Cookie service**
- **Sport cookie service**
- **Channel service**

## Connections

- Playlist user → Sport playlist: uses
- Playlist user → Sports playlist: uses
- Playlist user → Sony playlist: uses
- Playlist user → Sony playlist 2: uses
- Playlist user → Sony playlist 3: uses
- Playlist user → Sony playlist 4: uses
- Playlist user → Sun playlist: uses
- Playlist user → Zee playlist: uses
- Playlist user → Zee playlist 2: uses
- Playlist user → Zee playlist 3: uses
- Playlist user → Zee playlist 4: uses
- Cookie fetcher → Cookie service: fetches (evidence: `scripts/cookie.py`)
- Cookie fetcher → Sport cookie service: fetches (evidence: `scripts/cookie.py`)
- Cookie fetcher → Cookie data: writes (evidence: `scripts/cookie.py`)
- Cookie fetcher → Sport cookie data: writes (evidence: `scripts/cookie.py`)
- Sony combiner → Channel service: fetches (evidence: `scripts/sony2.py`)
- Sony combiner → Cookie service: fetches (evidence: `scripts/sony2.py`)
- Sony combiner → Sony channel data: writes (evidence: `scripts/sony2.py`)
