renamed predicted_filepath

This commit is contained in:
Kieran Eglin 2024-11-07 11:52:05 -08:00
parent 07ad59ea81
commit 5ac0cf19c2
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ defmodule Pinchflat.YtDlp.Media do
:short_form_content,
:uploaded_at,
:duration_seconds,
:predicted_filepath
:predicted_media_filepath
]
defstruct [
@ -25,7 +25,7 @@ defmodule Pinchflat.YtDlp.Media do
:uploaded_at,
:duration_seconds,
:playlist_index,
:predicted_filepath
:predicted_media_filepath
]
alias __MODULE__
@ -115,7 +115,7 @@ defmodule Pinchflat.YtDlp.Media do
short_form_content: response["original_url"] && short_form_content?(response),
uploaded_at: response["upload_date"] && parse_uploaded_at(response),
playlist_index: response["playlist_index"] || 0,
predicted_filepath: response["filename"]
predicted_media_filepath: response["filename"]
}
end

View file

@ -182,7 +182,7 @@ defmodule Pinchflat.YtDlp.MediaTest do
uploaded_at: ~U[2020-09-13 12:26:40Z],
duration_seconds: 60,
playlist_index: 1,
predicted_filepath: "TiZPUDkDYbk.mp4"
predicted_media_filepath: "TiZPUDkDYbk.mp4"
} == Media.response_to_struct(response)
end