feat: add compatible compact series inventory mode (1.4.1)
This commit is contained in:
1 parent
1e484e37d3
commit
840877807e
12 files changed
+275
-15
No files matched your search
@@ -26,7 +26,7 @@ function callTool($name,$args,$expectError=false) {
|
||||
return json_decode($r['content'][0]['text'],true,512,JSON_THROW_ON_ERROR);
|
||||
}
|
||||
$init=rpc('initialize',(object)[]);
|
||||
requireTrue($init['serverInfo']['version']==='1.4.0','Expected loaded eMCPy 1.4.0');
|
||||
requireTrue(in_array($init['serverInfo']['version'],['1.4.0','1.4.1'],true),'Expected loaded eMCPy 1.4.0');
|
||||
$tools=rpc('tools/list',(object)[]);
|
||||
requireTrue(count($tools['tools'])===37,'Expected 37 tools');
|
||||
$diagnostics=callTool('emby_server_diagnostics',(object)[]);
|
||||
@@ -74,5 +74,5 @@ if($movie['items']) {
|
||||
}
|
||||
callTool('emby_search_advanced',['libraryId'=>'invalid'],true);
|
||||
callTool('emby_image_review',[],true);
|
||||
echo json_encode(['version'=>'1.4.0','calls'=>$calls,'results'=>$summary,'mutationsExecuted'=>0,
|
||||
echo json_encode(['version'=>$init['serverInfo']['version'],'calls'=>$calls,'results'=>$summary,'mutationsExecuted'=>0,
|
||||
'note'=>'Snapshots, provider episode retrieval, duplicates and real writes tested separately with SDK doubles; no live write executed.'],JSON_PRETTY_PRINT).PHP_EOL;
|
||||
Reference in new issue
Block a user