tubearchivist/backend
2024-12-23 22:29:52 +07:00
..
appsettings remove dependency on redis json 2024-12-22 22:59:48 +07:00
channel fix channel overwrite playlist refresh missing task 2024-12-21 09:57:48 +07:00
common use REDIS_CON for redis connection string 2024-12-23 22:29:52 +07:00
config use REDIS_CON for redis connection string 2024-12-23 22:29:52 +07:00
download fix cicular import 2024-12-23 16:44:43 +07:00
playlist Merge branch 'testing' into refactor-react-migration 2024-12-20 11:30:36 +07:00
stats renamed django app folder to backend 2024-08-03 21:58:22 +02:00
task use REDIS_CON for redis connection string 2024-12-23 22:29:52 +07:00
user align post datatype with get 2024-08-10 18:55:50 +02:00
video add position to progress, remove get progress 2024-12-23 21:34:24 +07:00
manage.py renamed django app folder to backend 2024-08-03 21:58:22 +02:00
README.md add django app overview readme 2024-08-10 16:12:06 +02:00
requirements-dev.txt Merge branch 'testing' into refactor-react-migration 2024-12-20 11:30:36 +07:00
requirements.txt replace uwsgi with uvicorn 2024-12-23 21:53:27 +07:00

Django Setup

Apps

The backend is split up into the following apps.

config

Root Django App. Doesn't define any views.

  • Has main settings.py
  • Has main urls.py responsible for routing to other apps

common

Functionality shared between apps.

Defines views on the root /api/* path. Has base views to inherit from.

  • Connections to ES and Redis
  • Searching
  • URL parser
  • Collection of helper functions

appsettings

Responsible for functionality from the settings pages.

Defines views at /api/appsettings/*.

  • Index setup
  • Reindexing
  • Snapshots
  • Filesystem Scan
  • Manual import

channel

Responsible for Channel Indexing functionality.

Defines views at /api/channel/* path.

download

Implements download functionality with yt-dlp.

Defines views at /api/download/*.

  • Download videos
  • Queue management
  • Thumbnails
  • Subscriptions

playlist

Implements playlist functionality.

Defines views at /api/playlist/*.

  • Index Playlists
  • Manual Playlists

stats

Builds aggregations views for the statistics dashboard.

Defines views at /api/stats/*.

task

Defines tasks for Celery.

Defines views at /api/task/*.

  • Has main tasks.py with all shared_task definitions
  • Has CustomPeriodicTask model
  • Implements apprise notifications links
  • Implements schedule functionality

user

Implements user and auth functionality.

Defines views at /api/config/*.

  • Defines custom Account model

video

Index functionality for videos.

Defines views at /api/video/*.

  • Index videos
  • Index comments
  • Index/download subtitles
  • Media stream parsing