- Introduce a `.transcoding` sentinel file to prevent concurrent ffmpeg processes for the same video; return HTTP 202 with `Retry-After: 5` when a transcode is already in progress - Serve cached transcode immediately when the output file exists, avoiding unnecessary re-transcodes on repeat requests - Fix transcode failure response code from 404 to 500 - Add `isTranscoding` state in VideoPlayer that triggers an in-UI message and auto-retries the video source after 5 s when the server responds with 202 - Use `retryKey` to force re-mount of the `<video>` element on retry |
||
|---|---|---|
| .. | ||
| appsettings | ||
| channel | ||
| common | ||
| config | ||
| download | ||
| playlist | ||
| stats | ||
| task | ||
| user | ||
| video | ||
| README.md | ||
| manage.py | ||
| requirements.txt | ||
README.md
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.pyresponsible 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.pywith all shared_task definitions - Has
CustomPeriodicTaskmodel - Implements apprise notifications links
- Implements schedule functionality
user
Implements user and auth functionality.
Defines views at /api/config/*.
- Defines custom
Accountmodel
video
Index functionality for videos.
Defines views at /api/video/*.
- Index videos
- Index comments
- Index/download subtitles
- Media stream parsing