Add live Dunnellon weather and clean up Roku guide titles
This commit is contained in:
@@ -6,7 +6,7 @@ from pathlib import Path
|
||||
import httpx
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from bridge.app import create_app
|
||||
from bridge.app import create_app, program_title
|
||||
|
||||
CHANNEL = "4592af97-494e-42d4-9758-10bb26b05343"
|
||||
|
||||
@@ -97,3 +97,11 @@ class BridgeTest(unittest.TestCase):
|
||||
self.assertIn(server_id, self.client.get("/api/v1/device.xml").text)
|
||||
with TestClient(self.app) as restarted:
|
||||
self.assertEqual(restarted.get("/api/v1/server").json()["id"], server_id)
|
||||
|
||||
def test_episode_labels_remove_release_metadata(self):
|
||||
episode = {"type": "content", "program": {
|
||||
"type": "episode", "title": "The.Rookie.S01E01.720p.AMZN.WEBRip.x264",
|
||||
}}
|
||||
self.assertEqual(program_title(episode, "The Rookie"), "The Rookie S01E01")
|
||||
episode["program"]["title"] = "The Rookie S01E01 Pilot"
|
||||
self.assertEqual(program_title(episode, "The Rookie"), "The Rookie S01E01 · Pilot")
|
||||
|
||||
Reference in New Issue
Block a user