4.1 Beta...ish #12

Merged
timw4mail merged 88 commits from develop into master 2018-11-05 13:15:59 -05:00
Showing only changes of commit 28164f72da - Show all commits

View File

@ -66,33 +66,35 @@ final class Kitsu {
*/ */
protected static function getServiceMetaData(string $hostname = NULL): array protected static function getServiceMetaData(string $hostname = NULL): array
{ {
$hostname = str_replace('www.', '', $hostname);
$serviceMap = [ $serviceMap = [
'www.amazon.com' => [ 'amazon.com' => [
'name' => 'Amazon Prime', 'name' => 'Amazon Prime',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/amazon.svg', 'image' => 'streaming-logos/amazon.svg',
], ],
'www.crunchyroll.com' => [ 'crunchyroll.com' => [
'name' => 'Crunchyroll', 'name' => 'Crunchyroll',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/crunchyroll.svg', 'image' => 'streaming-logos/crunchyroll.svg',
], ],
'www.daisuki.net' => [ 'daisuki.net' => [
'name' => 'Daisuki', 'name' => 'Daisuki',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/daisuki.svg' 'image' => 'streaming-logos/daisuki.svg'
], ],
'wwww.funimation.com' => [ 'funimation.com' => [
'name' => 'Funimation', 'name' => 'Funimation',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/funimation.svg', 'image' => 'streaming-logos/funimation.svg',
], ],
'www.hidive.com' => [ 'hidive.com' => [
'name' => 'Hidive', 'name' => 'Hidive',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/hidive.svg', 'image' => 'streaming-logos/hidive.svg',
], ],
'www.hulu.com' => [ 'hulu.com' => [
'name' => 'Hulu', 'name' => 'Hulu',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/hulu.svg', 'image' => 'streaming-logos/hulu.svg',
@ -102,7 +104,7 @@ final class Kitsu {
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/tubitv.svg', 'image' => 'streaming-logos/tubitv.svg',
], ],
'www.viewster.com' => [ 'viewster.com' => [
'name' => 'Viewster', 'name' => 'Viewster',
'link' => TRUE, 'link' => TRUE,
'image' => 'streaming-logos/viewster.svg' 'image' => 'streaming-logos/viewster.svg'