Skip to content

feat: auto-copy .mkv torrents to Jellyfin Unsorted#372

Merged
stackptr merged 2 commits intomainfrom
glyph/torrent-done-media-copy
Mar 12, 2026
Merged

feat: auto-copy .mkv torrents to Jellyfin Unsorted#372
stackptr merged 2 commits intomainfrom
glyph/torrent-done-media-copy

Conversation

@stackptr
Copy link
Owner

Summary

  • Extend torrent-done.sh to copy completed .mkv files (single files or folders containing .mkv files) to /mnt/media/Unsorted for Jellyfin ingestion
  • Add transmission user to media group for write access to the destination
  • Add findutils to transmission service PATH for find in the done script
  • Include /mnt/media/Unsorted in the hourly ensureSambaPermissions ownership timer
  • Add tmpfiles rule to set 2775 (setgid + group-writable) on /mnt/media/Unsorted so Samba's forced jellyfin user can read/write files there

Test plan

  • Deploy to glyph with nh os switch
  • Verify transmission user is in media group: groups transmission
  • Verify /mnt/media/Unsorted has 2775 permissions: stat /mnt/media/Unsorted
  • Download a single .mkv torrent and confirm it appears in /mnt/media/Unsorted
  • Download a folder torrent containing .mkv files and confirm the folder is copied
  • Verify files are accessible (rename, move) via Samba from macOS

🤖 Generated with Claude Code

stackptr and others added 2 commits March 12, 2026 13:44
Extend torrent-done.sh to automatically copy .mkv files (single files
or folders containing .mkv files) to /mnt/media/Unsorted for Jellyfin.
Add transmission user to media group for write access and include
Unsorted in the hourly permissions timer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add tmpfiles rule to set 2775 permissions on Unsorted so Samba's
forced jellyfin user can write to it and new files inherit the
media group.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stackptr stackptr merged commit 0808786 into main Mar 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant