0.2.62 (unreleased)¶
Set
TERM=xterm-256colorinside tox test environments so local runs launched from Ghostty do not print missingxterm-ghosttyterminfo warnings.Point the test settings’ extra static files directory at the shipped
src/cast/statictree so tox migrations no longer emit Django’sstaticfiles.W004warning.Allow editor API post and episode draft
PATCHrequests to send the optimistic concurrency token as a strictIf-Match: "<revision id>"header instead of JSONbase_revision_id.Avoid deep-copying Podlove and DOTe transcript JSON during public speaker sanitization when all speaker labels are already public or when the transcript contains no speaker metadata.
Fix
Blog.last_build_datecrashing withIndexErroron blogs and podcasts without any published posts; it now falls back to the page’s first publication date or the current time, so feeds for empty blogs render.Fix the podcast feed’s RSS
<category>element: it now emits the first entry of the blog’skeywordsfield when keywords are set (the previous guard checked a nonexistentcategoriesattribute and always produced an empty category).Declare explicit
permission_classes = (AllowAny,)on the public API views (Podlove detail, player config, facet counts, theme list, theme update) so intended anonymous access no longer depends on the DRF project default and cannot be broken by a host site setting restrictive default permissions.Remove dead tooling files (
bootstrap.md,.travis.yml,setup.cfg,runtests.py,javascript/jest.config.js,command_lines.txt); thecommands.pytestandmypysubcommands now invoke pytest and the configured mypy directly.Stop pinning the
pytest-randomlyseed so the test order actually randomizes, and fix the two test-isolation bugs this surfaced (a shared API client leaking session cookies between tests, and a monkeypatchedUSE_THREADEDCOMMENTSbaking the wrong comment form base class when the forms module was first imported under the patch).Clean up packaging and type-check metadata: drop the contradictory MIT license classifier and a duplicated classifier, check types against Python 3.11 (the support floor), and remove the legacy mypy django-stubs plugin table.
Make
Post.get_descriptionside-effect free: the feed/social-card body template is now passed as a rendering argument instead of being stored on the instance, so a post or episode rendered after its description was generated no longer leaks thepost_body.htmlpartial into the full page render.Wrap
Video.saveposter generation in a transaction likeAudio.save, so a failed poster derivation no longer leaves a half-saved video row.Add
sync_mediaandcreate_renditionskeyword arguments toPost.save(both defaultTrue) so bulk operations and migrations can skip media-derivation side effects explicitly.Move the
HtmxHttpRequesttyping class tocast.http_types; it stays importable fromcast.viewsandcast.views.htmx_helpersfor backwards compatibility.Eliminate per-row queries when building blog index snapshots for mixed post/episode listings: page specialization and episode audio now load in bulk, so the query count no longer grows with the number of episodes, and a regression test guards the flat query count.
Deduplicate the audio/video/transcript Wagtail-admin media views: the previously triplicated
index/add/edit/delete/chooser/chosen/chooser_uploadviews now share one parametrized implementation incast.views.media. URL names, templates, contexts, messages, and chooser modal workflows are unchanged.Fix the video chooser upload view ignoring the
CAST_CHOOSER_PAGINATIONsetting: it paginated with a hardcoded page size of 10 instead ofCHOOSER_PAGINATIONlike every other chooser view (invisible under the default of 10, wrong for sites that override the setting).Extract the transcript domain into a new
cast.transcriptspackage: the WebVTT/Podlove/DOTe rewrite logic, speaker-sample selection, voice-reference derivation, and known-speaker handling now live in Django-free per-format modules plus a service layer, and theTranscriptmodel keeps its public API as thin delegates. Public names such astime_to_seconds,convert_dote_to_podcastindex_transcript, and theKNOWN_SPEAKER_*constants remain importable fromcast.models.transcript.Refactor the transcript admin edit view to dispatch its POST actions through a declarative action→handler map, and deduplicate the
episode_from_latest_revisionhelper that was copied between the transcript and Voxhelm admin views. Messages, redirects, and form behavior are unchanged.Centralize the static
CAST_*setting defaults in a single registry incast.appsettings: the scattered inlinegetattr(settings, ...)defaults now resolve through one accessor (still read at call time, sooverride_settingsand runtime changes keep working), and thecast.E001type check derives from the registry instead of a separately maintained table. Defaults and check coverage are unchanged.Document all previously undocumented settings in the settings reference, including
CAST_AUDIO_PLAYER,CAST_EDITOR_SCOPES,CAST_POST_BODY_BLOCKS, the comment form CSS-class and moderator settings, and the remaining styleguide tunables.Split the Voxhelm integration into a
cast.voxhelmsubpackage with dedicatedsettings(the site → Django setting → environment precedence chain),client(HTTP transport),task_refs, andservice(orchestration) modules. The transcript-generation status helpers move tocast.transcripts.generation_status, which removes the circular import betweencast.modelsand the Voxhelm code (a static test now guards that nothing imported during model initialisation depends oncast.voxhelm). Every previously public name remains importable fromcast.voxhelm.Show the “Generate transcript” action on the episode and audio edit pages only when Voxhelm is actually configured (API base and key resolvable via site settings, Django settings, or environment variables) for the request’s site. Transcript generation status stays visible regardless, and direct POST requests keep reporting missing configuration as friendly error messages.
Deduplicate
feeds.py: the shareditem_description/item_link/item_pubdatemethods and the Atom stylesheetwrite()now live in one place, the iTunes/Podcast-Index generator mixins are statically typed (no more# type: ignoreor defensivetry/except), and podcast feed XML output is unchanged.Blog (non-podcast) RSS and Atom feeds now emit a stable per-entry identifier and publication dates: RSS items gain
<pubDate>and a<guid isPermaLink="false">set to the post’s UUID, and Atom entries gain<updated>and a UUID<id>. Feed readers may show existing blog entries as new once, after which the UUID identifier survives slug and URL changes.Document
cast.api.viewsas a frozen legacy API surface (including the bare-textPOST /api/upload_video/response); new integrations should use the editor API for structured errors, scoped authorization, andIf-Matchrevision handling.Stop shipping test-only settings in the installed package. The former
cast.settingsmodule (committedSECRET_KEY,tests.urlsroot URLconf, MD5 hasher) now lives entirely intests/settings.py, anddev_settings.pyis renamed todev_tools.pyto reflect its role as a feature-flag resolver rather than a settings module.django-environis dropped from the dependencies. This is an internal packaging change with no effect on configuring a real django-cast site.Give the repository cache serialization an explicit
typediscriminator instead of guessing a cached object’s class from which keys are present. Blog/podcast and post/episode entries now record their type and deserialize by it, with a fallback that keeps entries cached by earlier versions working.