fix compile

This commit is contained in:
phyzical 2025-08-10 00:34:57 +08:00
parent 39621184c2
commit 95fc600076
No known key found for this signature in database
GPG key ID: 91E97494BCA22BCF
3 changed files with 13 additions and 3 deletions

View file

@ -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

View file

@ -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__

View file

@ -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},