[Bugfix] Improve livestream detection (#362)
* Livestream status is now based off live_status instead of was_live * Updated tests
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user