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,
|
# 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
|
# 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 == "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
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@ defmodule Pinchflat.YtDlp.Media do
|
||||||
:short_form_content,
|
:short_form_content,
|
||||||
:uploaded_at,
|
:uploaded_at,
|
||||||
:duration_seconds,
|
:duration_seconds,
|
||||||
:predicted_media_filepath
|
:predicted_media_filepath,
|
||||||
|
:public
|
||||||
]
|
]
|
||||||
|
|
||||||
defstruct [
|
defstruct [
|
||||||
|
|
@ -25,7 +26,8 @@ defmodule Pinchflat.YtDlp.Media do
|
||||||
:uploaded_at,
|
:uploaded_at,
|
||||||
:duration_seconds,
|
:duration_seconds,
|
||||||
:playlist_index,
|
:playlist_index,
|
||||||
:predicted_media_filepath
|
:predicted_media_filepath,
|
||||||
|
:public
|
||||||
]
|
]
|
||||||
|
|
||||||
alias __MODULE__
|
alias __MODULE__
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,14 @@ defmodule PinchflatWeb.Sources.SourceHTML do
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def friendly_format_type_options do
|
||||||
|
[
|
||||||
|
{"Include (default)", :include},
|
||||||
|
{"Exclude", :exclude},
|
||||||
|
{"Only", :only}
|
||||||
|
]
|
||||||
|
end
|
||||||
|
|
||||||
def friendly_cookie_behaviours do
|
def friendly_cookie_behaviours do
|
||||||
[
|
[
|
||||||
{"Disabled", :disabled},
|
{"Disabled", :disabled},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue