Undid unneeded changes

This commit is contained in:
Kieran Eglin 2024-07-15 15:56:41 -07:00
parent 3f6efd2fad
commit e518729014
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 0 additions and 10 deletions

View file

@ -32,8 +32,6 @@ defmodule Pinchflat.Metadata.MetadataParser do
media_filepath: metadata["filepath"] media_filepath: metadata["filepath"]
} }
) )
# This should only ever be written during indexing and this whole module gets run during download
|> Map.drop([:playlist_index])
end end
defp parse_subtitle_metadata(metadata) do defp parse_subtitle_metadata(metadata) do

View file

@ -59,14 +59,6 @@ defmodule Pinchflat.Metadata.MetadataParserTest do
assert result.duration_seconds == round(metadata["duration"]) assert result.duration_seconds == round(metadata["duration"])
end end
test "drops the playlist_index` field", %{metadata: metadata} do
metadata = Map.put(metadata, "playlist_index", 1)
result = Parser.parse_for_media_item(metadata)
assert Map.get(result, :playlist_index) == nil
end
end end
describe "parse_for_media_item/1 when testing subtitle metadata" do describe "parse_for_media_item/1 when testing subtitle metadata" do