Feat: In-App Video Deletion with Disk/Database Options and Library Exclusion
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, react, typescript
- Ambito
- backend, database, frontend, full-stack
Direzione di ricerca
Read the image deletion workflow in backend/app/routes/images.py and compare it with backend/app/database/videos.py, backend/app/routes/videos.py, and backend/app/utils/videos.py. Then trace the viewer controls and overlay in frontend/src/components/VideoPlayer/VideoViewerControls.tsx and VideoPlayerOverlay.tsx. Done means video deletion supports both disk deletion and database-only removal, and excluded files stay out of later scans.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the feature
Problem Statement
Currently, there is no way to delete or remove video files from within PictoPy:
- Frontend Viewer: In the full-screen video player (
frontend/src/components/VideoPlayer/VideoViewerControls.tsx), only Info, Open Folder, and Favorite buttons exist. There is no Delete button or confirmation dialog. Users have to manually locate the video in their OS file explorer to delete it. - Missing Database & API Layer: Unlike images (which received full deletion support via PR #1547 and
backend/app/routes/images.py),backend/app/routes/videos.pyhas noDELETEendpoint, andbackend/app/database/videos.pylacks deletion methods (db_delete_videos_by_ids). - Scan Re-Import Loop: The database does not maintain an
excluded_video_pathstable. Without this, if a user removes a video from the gallery without deleting the physical file, the next background folder scan will immediately re-index and re-import it.
Proposed Solution
Implement complete video deletion parity with the image deletion workflow across the full stack:
- Database Layer (
backend/app/database/videos.py):- Create the
excluded_video_paths (path VARCHAR PRIMARY KEY, folder_id INTEGER)table. - Implement
db_get_excluded_video_paths(),db_delete_videos_by_ids(), anddb_exclude_and_delete_videos(). - Add exclusion checks during video scanning so excluded paths are not re-imported.
- Create the
- Backend API (
backend/app/routes/videos.py&backend/app/utils/videos.py):- Implement
video_util_delete_videos(video_ids, delete_from_device). - Expose a
DELETE /videos/delete-videosendpoint accepting video IDs and adelete_from_deviceboolean flag.
- Implement
- Frontend Integration (
frontend/src/):- Add
deleteVideosinfrontend/src/api/api-functions/videos.tsand createuseDeleteVideos.tsmutation hook. - Add a Delete (
Trash2) icon toVideoViewerControls.tsx. - Trigger the delete confirmation dialog in
VideoPlayerOverlay.tsx, offering the choice to delete from disk or remove from PictoPy database only.
- Add
Expected Impact
- Complete parity between image and video viewing workflows.
- Users gain full control over managing and removing videos directly from the interface.
- Prevents deleted videos from reappearing on subsequent library scans.
Add ScreenShots
The delete button does not exist in the code yet.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
- Lingua principale
- Python
- Stelle
- 322
- Fork
- 793
- Merge medio
- 6g 10h
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/PictoPy
-
bug enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
AOSSIE-Org/PictoPy#1802 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesForse già presa @swastiksharma45 l’ha presa 2 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1788 · 6 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
AOSSIE-Org/PictoPy#1786 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Forse già presa @omkar-suryavanshi l’ha presa 3 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1780 · 5 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workForse già presa @ManyaJain111 l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/PictoPy#1779 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di AOSSIE-Org/PictoPy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Forse già presa @cestercian l’ha presa oggi. Apertacomp/cli P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#162259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[request] gRpc/1.86.0Apertaupstream update
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
conan-io/conan-center-index#31597 ·
I maintainer di solito rispondono entro 1 giorno
-
community-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-NeMo/Run#727 ·
I maintainer di solito rispondono entro 1 giorno
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
pytorch/pytorch#207247 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno