diff --git a/lib/pinchflat/media/media_query.ex b/lib/pinchflat/media/media_query.ex index 7887d42..f3dcf4b 100644 --- a/lib/pinchflat/media/media_query.ex +++ b/lib/pinchflat/media/media_query.ex @@ -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 diff --git a/lib/pinchflat/yt_dlp/media.ex b/lib/pinchflat/yt_dlp/media.ex index 7c5c524..f4583b1 100644 --- a/lib/pinchflat/yt_dlp/media.ex +++ b/lib/pinchflat/yt_dlp/media.ex @@ -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__ diff --git a/lib/pinchflat_web/controllers/sources/source_html.ex b/lib/pinchflat_web/controllers/sources/source_html.ex index 00ab498..39f9867 100644 --- a/lib/pinchflat_web/controllers/sources/source_html.ex +++ b/lib/pinchflat_web/controllers/sources/source_html.ex @@ -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},