renamed predicted_filepath
This commit is contained in:
parent
07ad59ea81
commit
5ac0cf19c2
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue