[Bugfix] Improve livestream detection (#362)

* Livestream status is now based off live_status instead of was_live

* Updated tests
This commit is contained in:
Kieran
2024-08-20 09:37:42 -07:00
committed by GitHub
parent 80209240d2
commit a6c61ccd0d
7 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ defmodule Pinchflat.MediaFixtures do
id: "video1",
title: "Video 1",
webpage_url: "https://example.com/video1",
was_live: false,
live_status: "not_live",
description: "desc1",
aspect_ratio: 1.67,
duration: 123.45,
+3 -3
View File
@@ -81,7 +81,7 @@ defmodule Pinchflat.SourcesFixtures do
id: "video1",
title: "Video 1",
webpage_url: "https://example.com/video1",
was_live: false,
live_status: "not_live",
description: "desc1",
aspect_ratio: 1.67,
duration: 12.34,
@@ -91,7 +91,7 @@ defmodule Pinchflat.SourcesFixtures do
id: "video2",
title: "Video 2",
webpage_url: "https://example.com/video2",
was_live: true,
live_status: "is_live",
description: "desc2",
aspect_ratio: 1.67,
duration: 345.67,
@@ -101,7 +101,7 @@ defmodule Pinchflat.SourcesFixtures do
id: "video3",
title: "Video 3",
webpage_url: "https://example.com/video3",
was_live: false,
live_status: "not_live",
description: "desc3",
aspect_ratio: 1.0,
duration: 678.90,