android: hours on the library's count line, By format, Jump back in on the empty search
The desktop Library summary's hours on the phone's count line; a By format order from the file stats (lossless by depth and rate first, then by bitrate, the badge as the card's line); the empty Search page's Jump back in — the last records played — as the desktop's empty search shows them.
This commit is contained in:
1 parent
b50577fc81
commit
f8c3b90665
6 files changed
+39
-8
No files matched your search
@@ -114,6 +114,9 @@ const PROBE = `(function () {
|
||||
plcover: !!document.querySelector('.rec-head.pl .rec-cover img'),
|
||||
qfirst: (document.querySelector('.q-face .row .t') || {}).textContent || '',
|
||||
rooms: document.querySelectorAll('.screen button.row .art.hash').length,
|
||||
jump: document.querySelectorAll('.screen .rail .release').length,
|
||||
countline: (document.querySelector('.countline .t-sub') || {}).textContent || '',
|
||||
firstBadge: (document.querySelector('.grid2 .release .ed-badge') || {}).textContent || '',
|
||||
plthumbs: document.querySelectorAll('.pl-rows .thumb img').length,
|
||||
imp: document.querySelectorAll('.imp-rows .trk').length,
|
||||
impTags: [].map.call(document.querySelectorAll('.imp-rows .tag'), function (t) { return t.textContent.trim(); }).join('|'),
|
||||
@@ -164,6 +167,9 @@ const MOCK_STEPS = [
|
||||
{ do: `(function () { var i = document.querySelector('.sfield input'); i.value = 'shpongel'; i.dispatchEvent(new Event('input', { bubbles: true })); })()`, name: "search-dym", wait: 900 },
|
||||
{ do: `__click('.dym', null)`, name: "search-dym-pick", wait: 700 },
|
||||
{ do: `document.querySelectorAll('.nav button')[2].click()`, name: "library", wait: 800 },
|
||||
/* By format: the hi-res lossless records come first */
|
||||
{ do: `__click('.chips .chip', 'By format')`, name: "library-by-format", wait: 500 },
|
||||
{ do: `__click('.chips .chip', 'Recently added')`, wait: 400 },
|
||||
{ do: `document.querySelectorAll('.segtabs button')[1].click()`, name: "artists", wait: 600 },
|
||||
{ do: `document.querySelectorAll('.segtabs button')[2].click()`, name: "tracks", wait: 900 },
|
||||
{ do: `document.querySelectorAll('.segtabs button')[0].click()`, wait: 300 },
|
||||
@@ -398,7 +404,7 @@ const MOCK_EXPECT = {
|
||||
"you-artedge": (i) => i.artEdge === "1000 px",
|
||||
"history-confirm": (i) => i.half.includes("up") && /Clear the play history/.test(i.halfText),
|
||||
"history-cleared": (i) => !i.half.includes("up") && /history cleared/i.test(i.notice),
|
||||
"search-recent": (i) => i.title.startsWith("Search") && i.recents >= 1,
|
||||
"search-recent": (i) => i.title.startsWith("Search") && i.recents >= 1 && i.jump >= 1,
|
||||
"search-recent-pick": (i) => i.title.startsWith("Search") && (i.songs >= 4 || !!i.top),
|
||||
"sleep-sheet": (i) => i.half.includes("up"),
|
||||
"sleep-set": (i) => !i.half.includes("up"),
|
||||
@@ -409,7 +415,7 @@ const MOCK_EXPECT = {
|
||||
"search-dym": (i) => i.dym === "shpongle",
|
||||
"search-dym-pick": (i) => i.sq === "shpongle" && !i.dym,
|
||||
search: (i) => i.title.startsWith("Search"),
|
||||
library: (i) => i.title.startsWith("Your library") && i.fmtBadges >= 10,
|
||||
library: (i) => i.title.startsWith("Your library") && i.fmtBadges >= 10 && /hours/.test(i.countline),
|
||||
album: (i) => i.screen.includes("tr-push") && !i.mini,
|
||||
lyrics: (i) => i.sheet.includes("up") && i.lyrLines >= 3,
|
||||
"lyrics-sheet": (i) => i.half.includes("up") && /Lyrics later/.test(i.halfText) && /Search again/.test(i.halfText),
|
||||
@@ -464,6 +470,7 @@ const MOCK_EXPECT = {
|
||||
gaps: (i) => i.title.startsWith("Your library") && i.gaplines >= 1,
|
||||
"gaps-open": (i) => i.gapCards >= 3,
|
||||
playlists: (i) => i.title.startsWith("Your library") && i.plcards === 3 && i.plpinned,
|
||||
"library-by-format": (i) => /^FLAC 24/.test(i.firstBadge),
|
||||
artists: (i) => i.title.startsWith("Your library") && i.rowArt >= 3,
|
||||
playlist: (i) => i.screen.includes("tr-push") && i.title.startsWith("Late night drive") && i.plrows === 6 && i.plthumbs >= 3 && /unresolved/.test(i.pltags) && /file missing/.test(i.pltags) && /^Playlist/.test(i.plkind) && /Pinned/.test(i.plkind) && i.plfilter,
|
||||
"playlist-playing": (i) => i.mini && i.playing.includes("Track 2") && !i.toast,
|
||||
|
||||
Reference in new issue
Block a user