Release Kaleido 0.2.0 with remote-ready search, quick actions, extras and playback settings
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m44s

Fix the 0.1.11 audit findings: Search results were unreachable from the
text field, Back exited from Home rows, only the first version/part played,
a moved server was never re-discovered, chapter names were off by one,
menus opened away from the current choice, and focus restoration misfired.

Add long-press/Menu title actions, trailers and extras, voice and system
search, View all rows, a per-destination library choice, autoplay and
auto-skip settings, a separate remote quality, and subtitle size/style.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-10-27 16:10:34 -07:00
parent 5230692b8d
commit 64ad7b55cd
31 changed files with 1184 additions and 253 deletions

View file

@ -16,7 +16,7 @@ def sections():
key(21);wait(lambda r:'Recently released' in labels(r),'Cached Movies must return');focused('Movies')
print('PASS startup tab switch, TV loading, and cached section return')
def ready(item,timeout=45):
def await_ready(item,timeout=45):
# A pause sent while the player is still preparing is overridden when playback starts.
deadline=time.monotonic()+timeout
while time.monotonic()<deadline:
@ -27,7 +27,7 @@ def ready(item,timeout=45):
def controls():
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset','90000','--ei','testMode','1','--ez','testValidation','true')
ready(7599);key(127);focused('Play')
await_ready(7599);key(127);focused('Play')
screenshot('direct-stream-episode')
key(4);wait(lambda r:not labels(r),'One Back must hide controls rather than only clearing focus')
key(23);focused('Play');key(126);time.sleep(6)
@ -68,7 +68,7 @@ def episode():
adb('shell','am','force-stop','tv.kaleido.app')
adb('logcat','-c')
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId',str(item['ratingKey']),'--el','testOffset','90000','--ei','testMode','2','--ez','testValidation','true')
time.sleep(9);key(127);focused('Play')
await_ready(item["ratingKey"]);key(127);focused('Play')
for _ in range(6):
if 'Next episode' in focus(snapshot()):break
key(22)
@ -105,7 +105,7 @@ def credits():
marker=next(m for m in item['Marker'] if m['type']=='credits')
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset',str(marker['startTimeOffset']+2000),'--ei','testMode','2','--ez','testValidation','true')
time.sleep(6);key(127);focused('Play');key(19);focused('Playback timeline');key(19);focused('Skip credits')
await_ready(7599);key(127);focused('Play');key(19);focused('Playback timeline');key(19);focused('Skip credits')
screenshot('skip-credits-contrast');key(23)
deadline=time.monotonic()+8
while time.monotonic()<deadline:

View file

@ -57,7 +57,10 @@ def main():
related=get('/library/metadata/'+SHOW+'/related').get('Hub',[])
expected_related={m['ratingKey'] for h in related for m in h.get('Metadata',[]) if m.get('type')=='show' and m['ratingKey']!=SHOW}
assert expected_related,'Related-show fixture missing server-generated hubs'
key(21);focused('Watch next');key(20);text('Seasons');key(20);focused(show['Role'][0]['tag']);key(20);text('Related shows')
key(21);focused('Watch next');key(20);text('Seasons');key(20);focused(show['Role'][0]['tag']);key(20)
# Trailers & extras, when Plex has them, sit between Cast and Related shows.
if 'Trailers & extras' in labels(snapshot()):wait(lambda r:'Trailer' in focus(r) or 'Extra' in focus(r) or 'Scene' in focus(r) or 'Behind' in focus(r),'Extras row focus');key(20)
text('Related shows')
selected=focus(snapshot());assert selected and selected not in ('Watch next','Mark watched')
screenshot('details-related-shows');key(23);focused('Watch next');key(4);focused(selected)
results.append('Server-related shows render, open and restore focus');print('PASS '+results[-1],flush=True)

View file

@ -2,19 +2,25 @@
from verify_ui import launch,key,text,focused,focus,snapshot
from device import screenshot
launch();key(22,4);focused('Settings');key(23);focused('Sign in with Plex')
launch();key(22,4);focused('Settings');key(23);focused('Switch account')
key(21);focused('Connection');key(20);focused('Playback');key(22);focused('Playback quality')
key(23);focused('Original quality');key(4);focused('Playback quality')
key(20);focused('Remote quality');key(23);focused('1080p');key(4);focused('Remote quality')
key(20);focused('Watched status');key(23);focused('80%');key(4);focused('Watched status')
print('PASS quality and watched-threshold dialogs cancel back to their controls',flush=True)
key(20);focused('Autoplay next episode');key(23);focused('After 5 seconds');key(4);focused('Autoplay next episode')
key(20);focused('Skip intros');key(20);focused('Skip credits')
print('PASS playback dialogs cancel back to their controls',flush=True)
screenshot('settings-playback-current')
key(21);focused('Playback');key(20);focused('Interface');key(22);focused('Navigation sounds')
key(21);focused('Playback');key(20);focused('Subtitles');key(22);focused('Size');key(23);focused('Normal');key(4);focused('Size')
key(20);focused('Style');key(23);focused('White on black');key(4);focused('Style')
screenshot('settings-subtitles-current')
key(21);focused('Subtitles');key(20);focused('Interface');key(22);focused('Navigation sounds')
key(21);focused('Interface');key(20);focused('Updates');key(22);focused('Check for updates');key(23)
text('Kaleido is up to date.');focused('Check for updates')
screenshot('settings-updates-current')
key(21);focused('Updates');key(19,3);focused('Connection');key(22);focused('Sign in with Plex')
key(21);focused('Updates');key(19,4);focused('Connection');key(22);focused('Switch account')
key(22)
if 'Choose server' in focus(snapshot()):key(22)
focused('Sign out');key(23);focused('Keep watching');key(4);focused('Sign out')
key(4);focused('Home')
key(4);focused('TV Shows');key(4);focused('Home')
print('PASS category focus, live update check and safe sign-out cancellation',flush=True)

View file

@ -54,12 +54,23 @@ def browse():
key(20);focused('Discover');key(20);wait(lambda r:bool(focus(r)) and focus(r)!='Discover','TV next episode focus')
capture('tv-next-episodes');key(20);text('New seasons');capture('tv-new-seasons');key(20);text('New episodes');capture('tv-new-episodes')
passed('TV prioritizes next episodes, new seasons, and new episodes')
key(4);focused('Discover');passed('Back from TV rows returns to Discover first')
key(4);focused('Home');passed('Section Back returns to Home navigation')
key(22,4);focused('Settings');key(23);text('Settings');focused('Sign in with Plex');key(23)
key(22,4);focused('Settings');key(23);text('Settings');focused('Switch account');key(23)
text('Sign in to Plex');text('plex.tv/link')
wait(lambda r:any(re.fullmatch(r'[A-Z0-9]{4,6}',s) for s in labels(r)),'Live Plex PIN')
capture('plex-sign-in');key(4);text('Settings');key(4);focused('Home')
capture('plex-sign-in');key(4);text('Settings');key(4);focused('TV Shows');key(4);focused('Home')
passed('Plex account linking obtains a real PIN and cancellation preserves the session')
# Tabs activate on focus, so Search opens from TV Shows and Back returns there.
key(22,3);focused('Search');key(23);text('Search')
adb('shell','input','text','silo');text('TV shows')
key(66);wait(lambda r:focus(r) not in ('','silo'),'Search results take focus from the field')
root=snapshot()
if 'Silo' not in focus(root):key(20);wait(lambda r:'Silo' in focus(r),'TV shows row below the first result row')
key(23);text('Seasons')
key(4);wait(lambda r:'Silo' in focus(r),'Back restores the search result')
capture('search');key(4);focused('TV Shows');key(4);focused('Home')
passed('Search results are reachable by remote, open details and Back returns to the previous tab')
def position():
# Live media-session position: the reported one is as of its last update, so project it to now.
@ -85,7 +96,7 @@ def player():
key(4);focused('Audio tracks');key(22);focused('Subtitles');key(23);text('Off');capture('subtitles')
passed('Audio and subtitle panels open, close, and restore focus')
key(4);focused('Subtitles');key(22);focused('Playback options');key(23);text('Playback options')
key(20,3);focused('Speed');key(23);text('Playback speed');focused('1.0×');key(20);focused('1.25×');key(23)
key(20);focused('Speed');key(23);text('Playback speed');focused('Normal');key(20);focused('1.25×');key(23)
focused('Playback options');key(23);text('Speed · 1.25×');key(4);focused('Playback options')
key(23);text('Playback options');key(23);text('Playback quality');focused('Original quality');key(20);focused('4K');key(19);focused('Original quality');key(23)
focused('Playback options');time.sleep(5);key(23);text('Quality · Original quality');key(4);focused('Playback options')