Repository navigation
Conversation
Locale::default() is hard-coded to US/en, so every InnerTube request announces English even when the system language and the signed-in account are French; the API's hl/gl context wins over account preferences and the UI never switches. Add Locale::from_env(), which reads LC_ALL/LANG, parses lang_TERRITORY and maps the compound tags YouTube localises (zh-CN/TW/HK, pt-BR/PT, es-419/es-US, en-GB, fr-CA), falling back to US/en when nothing parseable is set. The session bootstrap now uses it instead of Locale::default().
InnerTube content is now localised by the backend locale (hl/gl), but the app-owned chrome (context menus, settings, dialogs, status text) is hard-coded English in the Svelte UI. Add a small reactive i18n module (t() with a fr dictionary keyed by the exact English source string, locale detected from navigator.language) and wrap every static UI string in it. Unknown keys fall back to English, so missing translations degrade gracefully. Covers 36 components/routes (~490 strings), including ternary display branches and aria labels; dynamic API-driven text is untouched.
Both seek sliders hold the dragged value locally and commit it on the input's change event. Release the thumb outside the window (the bar sits on the bottom edge) and WebKitGTK delivers neither change nor pointerup; the local value then shadowed every later position tick and the timeline sat frozen for the rest of the session while playback carried on. Reproduced by dragging past the window edge: MPRIS kept ticking, the bar did not. A shared guard now commits the pending drag on pointerup, pointercancel, lostpointercapture, window blur, or the first pointer movement with no button held, and a track change ends a drag outright.
Home toggled ryo-is-scrolling on <main> on each scroll event and again 110 ms after the last one, and the queue/lyrics wheel helper did the same on its scroller. Rules keyed on that class matched every <img> and every promoted .ryo-art-wash layer, so each toggle was a full style recalc plus compositing-layer churn, twice per wheel notch. Scrolling is otherwise paint-bound in WebKitGTK (measured the same 60% of a core with and without the toggle), so the class and its rules go rather than get cheaper.
WebKitGTK 2.42's feature API can flip compositing borders and repaint counters on, which is how to see what a scroll actually repaints; the webkit2gtk crate does not bind it yet, so the five calls are declared here and gated on an env var that is normally unset.
The cold-start reveal failsafe grew to 4000 ms in 531c2b5 but the invariant still asked for 1500; the private-path scan matched the .git file of a git worktree; two files had drifted from rustfmt.
The host calls lastfm::spawn from Tauri's synchronous setup closure, on the main thread with no ambient Tokio context; the tokio::spawn that replaced tauri::async_runtime::spawn panicked there at startup. Take the runtime handle explicitly (the daemon will pass its own) and format the files the extraction left unformatted.
- Romanization never costs the lyrics: a failed or panicking blocking task returns them without a reading, and only the Japanese dictionary path goes to the blocking pool. - A corrupt dictionary is remembered instead of being decompressed for every song; the per-song cache keeps the most recently played songs. - Words join by grammar only, so an interjection's trailing small tsu no longer glues the next word (えっ何 → e nani); da right after a verb is the past tense (迷い込んだ → mayoikonda). - Straight quotes alternate open/close, 々〆〇 are not punctuation, full-width letters read as ASCII, and a syllabic n before a vowel or y is written n'. - Misreadings found in real songs are corrected from context: 如何か/如何に, 前世, 愛して after other text, 手 after a pronoun, and the split compounds 一人/二人 and 苛つく.
Picking a page in the rail while Now Playing was open routed behind the stage, so the user had to close it by hand to see the page. Every rail row and a new playlist now raise `navigated`, also onto the current page, and App closes the stage.
Going from one playlist straight to another (likewise album, artist and list pages) could run onParamsChanged before the id binding saw the new params. load() then fetched the page being left, its reply was dropped as stale, and the new page never got a request, so it sat on "Loading playlist…". The load is now deferred with Qt.callLater, which also folds the repeat calls on open into one.
The first follow ran while the list was still hidden behind the loading state, in a zero-high view, so it stayed at the top until the next line began and it looked as if the song had no synced lyrics. The first jump now waits until the list has lines and a height, then re-centres for 400 ms while the real line heights settle; a manual scroll ends that at once.
The sidebar fix left the other doors open: a title-bar search, its suggestions, Ctrl+K, a menu's go-to-artist or album, the downloads button and back still opened the page behind the stage. App now closes the stage on every route change; the sidebar's `navigated` stays for clicks onto the current page, which change no route.
create_playlist answers with YouTube's bare playlist id (PL…), and the sidebar opened that as the page id, so the browse call failed with 400 Bad Request. The new Ids.playlistBrowseId adds the VL prefix the way the Svelte UI does and leaves device and Spotify ids untouched.
…brary YouTube's library browse answers with the old list for a few seconds after a create or a delete, so a new playlist appeared and a deleted one vanished only after a restart. A small LibraryEdits singleton lays the pending edits over every get_library answer, drops each once YouTube's list reflects it, and reloads the lists every 3 s (up to six times) meanwhile. Every create path notes its playlist: the sidebar, the Library page, Add to playlist and the imports.
…be Music match start_radio passed foreign ids (spotify:track:…) straight to /next as RDAMVMspotify:track:…, which YouTube always answers empty, so every radio on a non-YouTube song failed with "YouTube has no radio for this." Match the track to a YouTube Music song (songs filter, ranked by title and artist), try the radio on up to three matches, then fall back to the matched artist's mix. Spotify's "Unknown" placeholder metadata never matches, and the Spotify metadata lookup is bounded at 10 s. A radio on the playing foreign track still splices in behind it without re-buffering.
Handing the track list a new array reset it to the top, so every lazily loaded page threw the Library back up. The list now keeps its place when rows are appended and still opens a different list at its start.
fix: library lists keep their scroll position when more tracks load
Quantize requested thumbnail sizes to standard buckets so Google FIFE CDN hits standard cached sizes and does not fail with HTTP 500 on dynamic dimensions (such as 708 px in NowPlaying). Add implicitWidth and implicitHeight to Artwork.qml and explicit preferred dimensions in PlayerBar.qml so layouts allocate the correct space for artwork items. Backfill missing thumbnails from player response metadata in the daemon so played album tracks and queue rows show artwork even when the initial shelf or browse parse lacked one. Clean up the music glyph SVG path to remove duplicate sub-paths that caused hatching artifacts in curve rendering. Fixes Ryoku-dev/ryoku#915
Confine album cover extraction in the Innertube browse parser to known cover fields (thumbnail, thumbnailRenderer, foregroundThumbnail) so an artist avatar under straplineThumbnail is never treated as the album cover. Add unit test verifying album headers with an avatar but no cover do not borrow the avatar for the album or its tracks. Add plain-language changelog entry under Unreleased for the artwork fixes.
A YouTube IP ban makes every track fail to resolve. The old skip loop advanced one row at a time at ~1.4s per request, and the lookahead drop path removed a row and re-primed the next on each failure. One 17-minute session produced 585 failures, 10 minutes of CPU, and a wiped queue. A shared resolve_failures counter now spans both paths and resets on any successful resolve. Failures back off 1s, 2s, 4s, 8s (capped), and at five consecutive failures the skip loop stops with a clear error while lookahead keeps the queue intact instead of dropping more rows. resolve_backoff_grows_then_caps pins the schedule — it caught an off-by-one where the first failure waited 2s instead of 1s. The tauri crate's generate_context!() panic on a source checkout is pre-existing (verified by stashing this change); ryotunes-core checks clean, 163 tests pass.
Local tracks only stored the track number, so a two-disc album came out as 1-01, 2-01, 1-02, 2-02 and so on. The scanner now reads the disc tag into a new disc_no column and the album query orders by disc first. SCAN_VERSION goes to 6 so existing libraries pick up disc numbers on the next scan.
…tion, stuck loads, lyrics landing, playlist create/delete)
The Japanese romanization dictionary from #25 is NAIST's mecab-ipadic, which is not under the GPL. Say so in the README and UPSTREAM.md, and where the package installs its COPYING and NOTICE.
…and fill missing art
…ud/Tidal songs via a YouTube Music match
#27 moved Add to queue behind the rest of the playing album or playlist. Keep the order users have today: added tracks play next, after any Play next block and earlier adds, before the context. The network recovery and the per-add block that keeps a walked playlist's pages together stay.
…fixes #30) # Conflicts: # crates/core/src/state.rs
Greptile on #34: a row removed during the backoff does not bump the generation, so the skip could move current past the end and leave Play unable to restart. Re-check the bounds and the current row under the lock. The explicit next-track load at a track end ran start_current and prime_lookahead on the player event loop. With the new backoff a failing resolve held position, pause and track-end events for seconds. Run them off the pump, like the gapless branch.
The client window carried Quickshell's generic org.quickshell class, so docks could not match it to ryotunes.desktop: no icon, and pinning it made a second, generic launcher. Set the AppId pragma and a matching StartupWMClass. Fixes #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
your design was good but it really was causing a lot of ram spikes and issues with audio.. if you want deeper description of what i did let me know.