From bdd8f15244a8746121b772e24589177790e6dba8 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Tue, 20 Aug 2024 09:25:53 -0700 Subject: [PATCH] Livestream status is now based off live_status instead of was_live --- lib/pinchflat/yt_dlp/media.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pinchflat/yt_dlp/media.ex b/lib/pinchflat/yt_dlp/media.ex index 5cb3fdc..65258ae 100644 --- a/lib/pinchflat/yt_dlp/media.ex +++ b/lib/pinchflat/yt_dlp/media.ex @@ -89,7 +89,7 @@ defmodule Pinchflat.YtDlp.Media do NOTE: playlist_index is really only useful for playlists that will never change their order. """ def indexing_output_template do - "%(.{id,title,was_live,webpage_url,description,aspect_ratio,duration,upload_date,timestamp,playlist_index})j" + "%(.{id,title,live_status,webpage_url,description,aspect_ratio,duration,upload_date,timestamp,playlist_index})j" end @doc """ @@ -104,7 +104,7 @@ defmodule Pinchflat.YtDlp.Media do title: response["title"], description: response["description"], original_url: response["webpage_url"], - livestream: !!response["was_live"], + livestream: !!response["live_status"] && response["live_status"] != "not_live", duration_seconds: response["duration"] && round(response["duration"]), short_form_content: response["webpage_url"] && short_form_content?(response), uploaded_at: response["upload_date"] && parse_uploaded_at(response),