瀏覽代碼

Ignore my plex commits - i am an idiot....

CauseFX 7 年之前
父節點
當前提交
4fab386595
共有 2 個文件被更改,包括 1 次插入21 次删除
  1. 1 4
      api/functions/homepage-connect-functions.php
  2. 0 17
      api/functions/homepage-functions.php

+ 1 - 4
api/functions/homepage-connect-functions.php

@@ -548,14 +548,11 @@ function plexConnect($action, $key = null)
 				$resolve = false;
 				break;
 			case 'recent':
-				if($GLOBALS['homepagePlexRecentlyAddedMethod'] == 'legacy') {
-					$url = $url . "/library/recentlyAdded?X-Plex-Token=" . $GLOBALS['plexToken'] . "&limit=" . $GLOBALS['homepageRecentLimit'];
-				}else {
+					//$url = $url . "/library/recentlyAdded?X-Plex-Token=" . $GLOBALS['plexToken'] . "&limit=" . $GLOBALS['homepageRecentLimit'];
 					$urls['movie'] = $url . "/hubs/home/recentlyAdded?X-Plex-Token=" . $GLOBALS['plexToken'] . "&X-Plex-Container-Start=0&X-Plex-Container-Size=" . $GLOBALS['homepageRecentLimit'] . "&type=1";
 					$urls['tv'] = $url . "/hubs/home/recentlyAdded?X-Plex-Token=" . $GLOBALS['plexToken'] . "&X-Plex-Container-Start=0&X-Plex-Container-Size=" . $GLOBALS['homepageRecentLimit'] . "&type=2";
 					$urls['music'] = $url . "/hubs/home/recentlyAdded?X-Plex-Token=" . $GLOBALS['plexToken'] . "&X-Plex-Container-Start=0&X-Plex-Container-Size=" . $GLOBALS['homepageRecentLimit'] . "&type=8";
 					$multipleURL = true;
-				}
 				break;
 			case 'metadata':
 				$url = $url . "/library/metadata/" . $key . "?X-Plex-Token=" . $GLOBALS['plexToken'];

+ 0 - 17
api/functions/homepage-functions.php

@@ -744,23 +744,6 @@ function getHomepageList()
 						'label' => 'Enable',
 						'value' => $GLOBALS['homepagePlexRecent']
 					),
-					array(
-						'type' => 'select',
-						'name' => 'homepagePlexRecentlyAddedMethod',
-						'label' => 'API Method',
-						'value' => $GLOBALS['homepagePlexRecentlyAddedMethod'],
-						'help' => 'Legacy - 1 API Call, will grab as many items as you specify below | Separate - 3 API Calls, will grab the below amount per item category',
-						'options' => array(
-							array(
-								'name' => 'Legacy',
-								'value' => 'legacy'
-							),
-							array(
-								'name' => 'Separate',
-								'value' => 'separate'
-							),
-						)
-					),
 					array(
 						'type' => 'select',
 						'name' => 'homepagePlexRecentAuth',