[Bugfix]: Misc. bugfixes 2024-04-16 (#189)
* Manually installed mutagen * Stopped upgrade form from submitting on enter * Gracefully handle duplicate enqueued downloads * Update metadata thumbnail fetcher to use the best jpg available
This commit is contained in:
@@ -97,6 +97,15 @@ defmodule PinchflatWeb.MediaItemControllerTest do
|
||||
assert [_] = all_enqueued(worker: MediaDownloadWorker)
|
||||
end
|
||||
|
||||
test "doesn't freak out if the task is a duplicate", %{conn: conn} do
|
||||
media_item = media_item_fixture()
|
||||
|
||||
MediaDownloadWorker.kickoff_with_task(media_item, %{force: true})
|
||||
|
||||
post(conn, ~p"/sources/#{media_item.source_id}/media/#{media_item.id}/force_download")
|
||||
assert [_] = all_enqueued(worker: MediaDownloadWorker)
|
||||
end
|
||||
|
||||
test "forces a download even if one wouldn't normally run", %{conn: conn} do
|
||||
media_item = media_item_fixture(%{media_filepath: nil})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user