add download buttons to tv

This commit is contained in:
Garret Patti
2026-04-15 08:30:41 -04:00
parent 37dcb79546
commit 5b5c3453d2
4 changed files with 43 additions and 24 deletions

View File

@@ -931,6 +931,7 @@ export default function TvView({ libraryId }: Props) {
episode={ep}
onClick={() => setPlayingEpisodeIndex(episodes.indexOf(ep))}
onTag={() => { setTagPanelItemKey(ep.item_key!); setTagPanelDisabled(false); setShowTagPanel(true) }}
downloadUrl={`/api/file?libraryId=${encodeURIComponent(libraryId)}&path=${encodeURIComponent(ep.videoPath)}`}
onDelete={() => {
fetch(
`/api/tv?libraryId=${encodeURIComponent(libraryId)}&seriesId=${encodeURIComponent(selectedSeries!.id)}&episodeKey=${encodeURIComponent(ep.item_key!)}`,