mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #7611] Refactor GetDownload into LibraryManager. #11474
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/7611
State: closed
Merged: No
Changes
Refactored
GetDownloadfromLibraryControllertoLibraryManager.This addresses #3122 where the
LibraryControllercontained a direct reference toActivityLogEF model class. Instead of creating a DTO class and refactoringActivityManagerto use a DTO, the logic was pulled into the service layer. The service layer now usesEventManagerto publishItemDownloadEventArgsto a newly createdIEventConsumer, which will then create theActivityLogrecords. The made the most sense since all other references toActivityLogwere alsoIEventConsumerlogger-types.Issues
Addresses #3122