Undid unneeded changes
This commit is contained in:
parent
3f6efd2fad
commit
e518729014
2 changed files with 0 additions and 10 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue