myYouTube/backend/app/services
vrubelroman 62f8fb746b Fix delete not finding the download: wrong id sent to MeTube's /delete
MeTube's queue/pending/done stores are keyed by the download's URL
(PersistentQueue.put: key = value.info.url), not by the id field a Download
reports over Socket.IO (which is what we stored as metube_job_id and were
sending). Sending the wrong key made MeTube's clear()/cancel() silently
no-op ("requested delete for non-existent download" in its own logs) while
still returning {"status": "ok"} regardless -- confirmed live by curling
/history on the real instance and finding the "deleted" entry still
present, unrelated to the DELETE_FILE_ON_TRASHCAN config fix that came
right before this.

delete_download() now takes the video's canonical youtube_url instead.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 20:14:43 +00:00
..
__init__.py Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback 2026-09-16 18:44:30 +00:00
download_jobs.py Fix delete not finding the download: wrong id sent to MeTube's /delete 2026-09-16 20:14:43 +00:00
google_oauth.py Fix OAuth token exchange failing on the widened scope 2026-09-16 19:52:23 +00:00
metube_client.py Fix delete not finding the download: wrong id sent to MeTube's /delete 2026-09-16 20:14:43 +00:00
scheduler.py Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback 2026-09-16 18:44:30 +00:00
state.py Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback 2026-09-16 18:44:30 +00:00
sync.py Add delete-downloaded-video and real YouTube unsubscribe 2026-09-16 19:47:35 +00:00
video_presentation.py Implement Phase 6: MeTube download integration 2026-09-16 18:56:17 +00:00
youtube_client.py Add delete-downloaded-video and real YouTube unsubscribe 2026-09-16 19:47:35 +00:00