mirror of
https://github.com/kieraneglin/pinchflat.git
synced 2026-01-23 02:24:24 +00:00
fix compile
This commit is contained in:
parent
39621184c2
commit
95fc600076
3 changed files with 13 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ defmodule Pinchflat.Media.MediaQuery do
|
|||
# TODO: this isn't actually correct when not public it could also be unlisted,
|
||||
# there may be other cases but the exclude case should be correct
|
||||
source.members_content_behaviour == "only" and mi.public == false or
|
||||
source.members_content_behaviour == "exclude" and mi.public == true or
|
||||
source.members_content_behaviour == "exclude" and mi.public == true
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ defmodule Pinchflat.YtDlp.Media do
|
|||
:short_form_content,
|
||||
:uploaded_at,
|
||||
:duration_seconds,
|
||||
:predicted_media_filepath
|
||||
:predicted_media_filepath,
|
||||
:public
|
||||
]
|
||||
|
||||
defstruct [
|
||||
|
|
@ -25,7 +26,8 @@ defmodule Pinchflat.YtDlp.Media do
|
|||
:uploaded_at,
|
||||
:duration_seconds,
|
||||
:playlist_index,
|
||||
:predicted_media_filepath
|
||||
:predicted_media_filepath,
|
||||
:public
|
||||
]
|
||||
|
||||
alias __MODULE__
|
||||
|
|
|
|||
|
|
@ -27,6 +27,14 @@ defmodule PinchflatWeb.Sources.SourceHTML do
|
|||
]
|
||||
end
|
||||
|
||||
def friendly_format_type_options do
|
||||
[
|
||||
{"Include (default)", :include},
|
||||
{"Exclude", :exclude},
|
||||
{"Only", :only}
|
||||
]
|
||||
end
|
||||
|
||||
def friendly_cookie_behaviours do
|
||||
[
|
||||
{"Disabled", :disabled},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue