From 1df419cde550fc55d6b5f2d419dc06e05640c3ec Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 5 Apr 2018 08:39:49 -0400 Subject: [PATCH 1/2] Add Hidive to streaming service mapping --- public/images/streaming-logos/hidive.svg | 7 +++++++ src/API/Kitsu.php | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 public/images/streaming-logos/hidive.svg diff --git a/public/images/streaming-logos/hidive.svg b/public/images/streaming-logos/hidive.svg new file mode 100644 index 00000000..4f58126d --- /dev/null +++ b/public/images/streaming-logos/hidive.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/API/Kitsu.php b/src/API/Kitsu.php index 9443fbe6..6a0cabfd 100644 --- a/src/API/Kitsu.php +++ b/src/API/Kitsu.php @@ -89,6 +89,13 @@ class Kitsu { 'image' => 'streaming-logos/funimation.svg', ]; + case 'www.hidive.com': + return [ + 'name' => 'Hidive', + 'link' => TRUE, + 'image' => 'streaming-logos/hidive.svg', + ]; + case 'www.hulu.com': return [ 'name' => 'Hulu', From b078690fdfa963de566557f45e506309366ab084 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 5 Apr 2018 23:00:58 -0400 Subject: [PATCH 2/2] Add more missing streaming logos --- public/images/streaming-logos/amazon.svg | 3 +++ public/images/streaming-logos/tubitv.svg | 3 +++ src/API/Kitsu.php | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 public/images/streaming-logos/amazon.svg create mode 100644 public/images/streaming-logos/tubitv.svg diff --git a/public/images/streaming-logos/amazon.svg b/public/images/streaming-logos/amazon.svg new file mode 100644 index 00000000..03e1093d --- /dev/null +++ b/public/images/streaming-logos/amazon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/images/streaming-logos/tubitv.svg b/public/images/streaming-logos/tubitv.svg new file mode 100644 index 00000000..6f6fbaec --- /dev/null +++ b/public/images/streaming-logos/tubitv.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/API/Kitsu.php b/src/API/Kitsu.php index 6a0cabfd..3b485064 100644 --- a/src/API/Kitsu.php +++ b/src/API/Kitsu.php @@ -68,6 +68,13 @@ class Kitsu { { switch($hostname) { + case 'www.amazon.com': + return [ + 'name' => 'Amazon Prime', + 'link' => TRUE, + 'image' => 'streaming-logos/amazon.svg', + ]; + case 'www.crunchyroll.com': return [ 'name' => 'Crunchyroll', @@ -103,6 +110,13 @@ class Kitsu { 'image' => 'streaming-logos/hulu.svg', ]; + case 'tubitv.com': + return [ + 'name' => 'TubiTV', + 'link' => TRUE, + 'image' => 'streaming-logos/tubitv.svg', + ]; + case 'www.viewster.com': return [ 'name' => 'Viewster',