Commit graph

363 commits

Author SHA1 Message Date
ThisGuyCodes
b8d90756bd
Merge pull request #376 from Avaneesh-Inamdar/fixes-1.0.3
Some checks failed
Linux build / linux (push) Has been cancelled
Windows build / windows (push) Has been cancelled
Release 1.0.3: autoplay, SponsorBlock mute, mini player fixes and lighter playback
2026-12-01 21:12:56 +05:30
ThisGuyCodes
7cd4595048
Merge pull request #270 from Egor251/network-proxy-resilience
network: retry delayed CDN handshakes and fall back to mpv instead of 502
2026-12-01 20:58:22 +05:30
Avaneesh Inamdar
30f9dbe520 Release 1.0.3 2026-12-01 20:58:00 +05:30
Avaneesh Inamdar
c16445a404 Fix autoplay, SponsorBlock mute, mini player and lower playback load
- Autoplay goes on to the next video while the window is minimized, in the
  tray or behind another window (#316, #349): it used the active window,
  which is None then.
- SponsorBlock mute segments unmute again (#322): mpv's mute echo was taken
  for the user muting.
- The mini player keeps the video picked from "Up next" instead of going
  back to the first one (#321).
- 1440p/4K streams render above 1080p when the player is that large (#370).
- Ambient colour changes no longer re-render the whole watch page several
  times a second, and not at all when the glow isn't shown (#307, #332).
- With the window minimized or in the tray, video decoding stops while the
  audio goes on (Windows).
2026-12-01 20:58:00 +05:30
ThisGuyCodes
b5c5b190ec
Merge pull request #372 from SlashXIV/fix/paused-history-rewind
Prevent history sync from rewinding paused playback (#351, #366)
2026-12-01 20:45:46 +05:30
ThisGuyCodes
38eb567148
Merge pull request #318 from bastiman85/fix/retry-bot-check-other-ip-family
Retry a bot-checked video over the other IP family
2026-12-01 20:28:44 +05:30
ThisGuyCodes
c0c463ff07
Merge pull request #312 from Ki0taka/fix/linux-rtl-video-titles
Fix clipped RTL video titles on Linux
2026-12-01 20:28:37 +05:30
ThisGuyCodes
8453bc05c0
Merge pull request #341 from Zulranty/codex/restore-window-placement
Restore window position and size across restarts
2026-12-01 20:28:30 +05:30
ThisGuyCodes
cedaafefa7
Merge pull request #340 from Zulranty/codex/hide-finished-miniplayer
Hide the mini player when playback ends
2026-12-01 20:28:23 +05:30
ThisGuyCodes
a0c706977d
Merge pull request #353 from r9xapps/fix/346-watch-history-not-reported
Send watch-history pings to www with the live client version (#346)
2026-12-01 20:28:16 +05:30
ThisGuyCodes
4c861763cd
Merge pull request #363 from alperen317/fix/seek-bar-jump
Keep window rem_size synced with ui_scale across cached frames (#337)
2026-12-01 20:28:10 +05:30
SlashXIV
70a00be59b Ignore delayed local watchtime echoes when syncing history 2026-11-30 19:56:59 +01:00
alialperena
cc7835c937 Keep window rem_size synced with ui_scale across cached frames (#337) 2026-11-30 10:29:33 +03:00
r9xapps
a291ae4e1c Send watch-history pings to www with the live client version (#346)
Watch history synced one way: reads from the account worked, but nothing
watched in Stream Tube reached YouTube's history. The stats pings went to
s.youtube.com exactly as the player response hands them out, carrying a
client version pinned a year ago. The one implementation known to still
record watch history (youtube.js) does two things differently: it sends
the pings to www.youtube.com, and it keeps its WEB client version within
a few months of the deployed one. Pings also disable redirects (they
carry the sign-in cookies), so an s. that redirects is a silent dead
end; and the stats endpoints answer 204 to everything, so none of this
ever showed as an error.

The pings now go to www.youtube.com, and the client version is scraped
live from any video's embed page (kept for an hour, the pin - bumped -
as fallback) for both the pings and the browser session's innertube
calls, so the whole session claims a current client.
2026-11-29 16:04:17 -05:00
Zulranty
fd3b4ccf99 Restore window position and size across restarts 2026-11-29 12:25:16 +03:00
Zulranty
45de638dbf Hide the mini player when playback ends 2026-11-29 12:03:08 +03:00
Egor251
3ecdf89c4e network: keep 302 fallback with idle timeout and quick retries
Address review feedback on the proxy change. Rebase onto main at 59fad98
(1.0.2) at the same time.

- Replace the 10 s `timeout_recv_body` override with a 10 s
  `timeout_per_read`. The former is a budget for the entire response body and
  cuts off large segments on slow lines; the latter restarts on every read, so
  it only fires when a connection actually stalls. The upstream total-body
  default (30 s) is left in place.
- Reduce retries from 12 to 3 (initial attempt plus two retries) with a flat
  200 ms backoff, so a real failure surfaces quickly instead of looking like
  a frozen player.
- Keep the 302 fallback to the original CDN URL for both playlists and
  segments; it is the part that actually recovers DPI-shaped links.

Verified with cargo build --release on v1.0.2.
2026-11-28 22:58:29 +03:00
bastiman85
29c0a8039a Retry a bot-checked video over the other IP family
YouTube's bot check is per address: on some networks it refuses a video over
IPv6 and plays it over IPv4, or the other way round. On "Sign in to confirm
you're not a bot", resolve once more over the other family; when that plays,
new requests stay on it for the session. googlevideo URLs only play from the
address they were handed out to, so the proxy fetches each one over the family
in its ip= / /ip/ part, which keeps a playing video working across a switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:20:30 +01:00
Ki0taka
84c7644a53 Fix clipped RTL video titles on Linux 2026-11-28 14:41:28 +01:00
Avaneesh Inamdar
59fad98695 Release 1.0.2
Some checks failed
Linux build / linux (push) Has been cancelled
Windows build / windows (push) Has been cancelled
2026-11-28 12:54:13 +05:30
ThisGuyCodes
77c0b8f1dc
Merge pull request #303 from Avaneesh-Inamdar/player-speed-and-menu
Faster video start, lighter playback, youtube.com's video menu, account-switch subscriptions
2026-11-28 12:48:36 +05:30
Avaneesh Inamdar
5ed80f0b21 Faster video start, lighter playback, youtube.com's video menu, account-switch subscriptions
Playback start
- The proxy fetches what mpv opens first (rendition playlists, init
  segments and the first segments, or those at the resume position) in
  parallel as soon as a video loads, instead of mpv fetching them one at a
  time. A 1080p video starts in about 2.3-2.5 s instead of 2.8 s.
- Signed in, Auto played through the TV client, whose stream URLs YouTube
  refuses with 403 for about 3 s after handing them out (6.4 s to start).
  visionOS goes first now and the TV client takes over when it fails (bot
  check, age-restricted). Views still reach the account.
- A fresh stream URL answering 403 is asked again every 200 ms for a few
  seconds instead of backing off, for when the TV client is used.

Playback cost
- Frames are rendered at the size the player shows them (in steps of an
  eighth, never above the video's own size or 1080p) instead of always at
  full size. Watch page at 1080p: 29% -> 12% of a core, 493 -> 361 MB of
  memory, 300 -> 210 MB of GPU memory. Fullscreen still renders 1080p.

Video right-click menu
- youtube.com's items in its order: Loop, Miniplayer, Copy video URL, Copy
  video URL at current time, Copy embed code, Copy debug info,
  Troubleshoot playback issue (reloads the streams at the same position),
  Stats for nerds; the app's own actions follow below a divider.
- Drawn like youtube.com's player menu, with on/off switches for Loop,
  Stats for nerds and Music mode. Live streams get no Loop, no URL at the
  current time and no frame stepping.
- Loop no longer applies to live streams, where it stopped the player from
  rejoining a stalled stream.

Subscriptions
- The app records which local subscriptions came from the signed-in
  account. Signing in with another account removes the previous account's
  channels that the new one doesn't follow; channels followed while signed
  out stay. Sync subscriptions reports how many it removed.

Translations for the new strings and for player and settings strings that
had none, in all ten languages.
2026-11-28 12:28:07 +05:30
ThisGuyCodes
3018208558
Merge pull request #298 from Avaneesh-Inamdar/release/1.0.1
Release 1.0.1
2026-11-28 09:59:08 +05:30
Avaneesh Inamdar
5e7cdb5d6c Release 1.0.1 2026-11-28 09:42:05 +05:30
Avaneesh Inamdar
ab315cfec0 Fix 1.0 regressions and match youtube.com's player more closely
- Window drag and caption buttons keep working while a video plays (#286, #292)
- SponsorBlock segments sit under the played part of the seek bar (#285)
- Shorts like and dislike toggle and are saved (#284)
- Signed-in TV stream lookup gives up after 4 s and falls back (#289)
- Live videos show a LIVE badge: red at the live edge, grey behind it,
  and a click goes back to live (#281)
- Controls and pointer hide after the delay even with the pointer resting
  on the control bar, as on youtube.com
- Captions move up above the controls while they show
- Gear menu: Equalizer has an Off option; Audio only, Ambient mode and
  Annotations open On/Off choices instead of toggling
- Subtitles/CC > Options changes caption font, color, size, opacity,
  background and edge style while a video plays, saved with the settings
- Quality reads "Auto (1080p)" while Auto picks
- Video card menu follows youtube.com's order, app extras last
2026-11-28 09:42:04 +05:30
ThisGuyCodes
7da65e55ae
Merge pull request #276 from Avaneesh-Inamdar/release/1.0.0
Some checks are pending
Linux build / linux (push) Waiting to run
Windows build / windows (push) Waiting to run
Release 1.0.0: youtube.com-matching player, live/kids/download fixes
2026-11-28 00:33:05 +05:30
Avaneesh Inamdar
dc6e36fcb2 Linux packages: rename only when fpm's file name differs 2026-11-28 00:18:56 +05:30
Avaneesh Inamdar
40694185cb Release 1.0.0 2026-11-28 00:13:32 +05:30
Avaneesh Inamdar
a39888d0cf Match youtube.com player and pages, fix live, kids and download playback
Player
- Remove the speed and quality pills from the video; controls stay up while
  the pointer is on the bar
- Bar right side follows youtube.com: Autoplay switch, CC, Settings,
  Miniplayer, Theater, Fullscreen
- Settings menu and right-click menu in youtube.com's order; Quality gains Auto
- Esc closes the settings menu first; the miniplayer no longer passes clicks
  to cards beneath it
- A live stream that ends early rejoins the broadcast (#264)

Playback and downloads
- Signed-in live streams without HLS fall back to visionOS / iOS (#268)
- Videos made for kids play through the Android client again
- yt-dlp gets the JS runtime, UTF-8 output and, when YouTube asks for a
  signed-in viewer, the browser sign-in's cookies (#260)
- Cookie files are removed after use and swept at start after a crash

Pages
- Titles end with an ellipsis when cut
- Channel videos get Latest / Popular / Oldest chips
- Save dialog toggles YouTube playlists and has a close button (#268)
- Return YouTube Dislike counts of 0 for unknown videos are ignored
- Home keeps its feed when returning; search box clears on Home
- Settings search hides sections with no match
2026-11-28 00:13:28 +05:30
ThisGuyCodes
6223dbcc4d
Merge pull request #265 from Avaneesh-Inamdar/fix/db-repair
Some checks are pending
Linux build / linux (push) Waiting to run
Windows build / windows (push) Waiting to run
Make the startup database repair safer
2026-11-27 22:40:21 +05:30
Avaneesh Inamdar
5a5aec514d Keep a second launch away from the database and make the startup repair safer
- A second launch hands over to the running app before it opens the database,
  so it no longer checks (and may try to rebuild) a file another copy is using.
- The repair is skipped while another copy is running, and a check that could
  not run (busy or locked) no longer counts as damage.
- If the damaged file, its journal or the rebuilt file can't be moved, the
  files are put back as they were instead of leaving a rebuilt database next to
  a stale journal, or no database at all. Each failure is logged.
2026-11-27 22:15:34 +05:30
ThisGuyCodes
aff79eb94b
Merge pull request #259 from Avaneesh-Inamdar/fix/google-sign-in 2026-11-27 21:38:42 +05:30
Avaneesh Inamdar
141a1d6a6e 0.7.7-alpha 2026-11-27 21:24:52 +05:30
Avaneesh Inamdar
2e609eeeb3 Sign in for watch history in a browser window Google accepts
Google rejects sign-in in a browser controlled over DevTools ("This browser
or app may not be secure"). The window the user signs in to now has nothing
attached; the app notices the sign-in from the profile's cookie names, closes
the window so the browser saves its cookies, and reads them and the picked
channel from a headless copy of the browser on the same temporary profile.
2026-11-27 21:24:45 +05:30
ThisGuyCodes
502f27231a
Merge pull request #257 from Avaneesh-Inamdar/integrate-pr252-fixes 2026-11-27 20:39:03 +05:30
Avaneesh Inamdar
4985837906 Fix the Linux installer path, FreeTube one-line import, PiP window keys; add download file names and a cookies.txt hint
- install.sh: resolve its own folder even when CDPATH is set (#255)
- Import: a one-line FreeTube profiles.db is no longer taken for NewPipe,
  and a file with nothing to import reports it instead of success (#253)
- The PiP window takes the player's keys: Space/K, J/L, arrows, M,
  speed keys, Esc closes it (#228)
- Settings > Downloads > File name with {title}, {channel} and {id} (#246)
- The browser sign-in explains the cookies.txt route when Google calls
  the browser not secure (#233)
- README: remove the performance comparison
2026-11-27 20:26:23 +05:30
Avaneesh Inamdar
c6f1c13b82 Merge pull request #252 from Katarn/main 2026-11-27 20:08:46 +05:30
Katarn
19e796f91d fix: improve caption normalization and line wrapping
- Adapt SmartTube's WebVTT caption processing
- Remove duplicated text and unwanted line breaks
- Handle overlapping cues and repeated phrases correctly
- Limit lines to 40 characters with Unicode-aware word wrapping
- Preserve caption timing and prevent long words from being clipped
2026-11-27 13:27:36 +03:00
ThisGuyCodes
ae25300829
Merge 0.7.6-alpha (#251)
Some checks are pending
Linux build / linux (push) Waiting to run
Windows build / windows (push) Waiting to run
2026-11-27 15:49:42 +05:30
Avaneesh Inamdar
aaff7068b5 0.7.6-alpha 2026-11-27 15:36:49 +05:30
ThisGuyCodes
e286ffbf91
Merge reviewed pull requests for 0.7.6 (#249) 2026-11-27 15:20:09 +05:30
Avaneesh Inamdar
35e951d1b6 Linux: don't crash when an input method sends non-UTF-8 text
GPUI's XIM client panics when xim-ctext can't decode compound text, and
xim-ctext 0.3 only decodes UTF-8 and Japanese, so typing Russian with some
input methods closed the app. A patched xim-ctext 0.3.1 decodes the ISO 8859
sets (Cyrillic, Greek, Latin-2 and others) and turns unknown sets into U+FFFD
instead of failing. Fixes #248.
2026-11-27 15:06:25 +05:30
Avaneesh Inamdar
deba33273f Let the watch page's main column grow on large monitors
The player and comments stopped at 1280 px, leaving empty space beside
Up next on wide windows. The column now grows with the window, as long as
the player still fits below the top bar. Fixes #230.
2026-11-27 15:06:24 +05:30
Zulranty
7cd7b1029f Add full-height theater mode (#239) 2026-11-27 14:49:09 +05:30
mkrtc
5477b1ce17 Music mode: a player bar and "Now playing" like YouTube Music (#225)
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.

Signed in, Explore → Music shows the Music tab of YouTube's TV app, which
is built for the account, instead of the same Music channel page for
everyone. A song opens with its YouTube Mix queued after it, so it plays
on into similar songs, and next / previous move through the mix. Signed
out the page stays as it was.

Listening to songs one after another in a page built for watching videos
means a floating video, comments and a column of thumbnails. Music mode
lays the app out like YouTube Music instead:

- a player bar along the bottom of every page in place of the mini
  player: previous / play / next and the time, the cover, title and
  channel with like and dislike, repeat, shuffle, mute, an arrow to open
  or close "Now playing", and a progress strip to click along;
- the watch page becomes "Now playing": the cover art or the video (a
  Song / Video switch) beside "Up next", the queue the song plays from,
  or YouTube's suggestions when there is no queue.

It is offered once a session when a mix starts, and can be turned on and
off from the note button in the player's controls or on the Music page,
and left from the bar or "Now playing". Fullscreen still shows the video;
Shorts keep their own player. The queue panel's title is now cut short so
a long mix name no longer pushes its buttons out of the panel.
2026-11-27 14:48:58 +05:30
mkrtc
8af3c0ece9 Personal music picks on the Music page, each playing as a mix (#224)
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.

Signed in, Explore → Music shows the Music tab of YouTube's TV app, which
is built for the account, instead of the same Music channel page for
everyone. A song opens with its YouTube Mix queued after it, so it plays
on into similar songs, and next / previous move through the mix. Signed
out the page stays as it was.
2026-11-27 14:48:57 +05:30
mkrtc
44ddfd1269 Show the playing video in Linux desktop media controls (MPRIS) (#220)
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.

GNOME's and KDE's media widgets, the lock screen, playerctl and the
keyboard's media keys talk to players over MPRIS on D-Bus, and Stream Tube
wasn't there, so on Linux the video never showed up in them.

src/mpris.rs puts org.mpris.MediaPlayer2.streamtube on the session bus with
the MediaPlayer2 and Player interfaces: title, channel, thumbnail (kept as
a file in the cache directory, which the widgets read more reliably than
URLs), length, position, rate and play state, and Play, Pause, PlayPause,
Stop, Next, Previous, Seek, SetPosition and Raise. Changes are announced
with PropertiesChanged and position jumps with Seeked. Next and previous
work like the player's own buttons: the queue, else "Up next", and back
through the videos watched before.

src/media_session.rs holds the platform-neutral part (the snapshot of the
active player, following the active tab, carrying out commands), so the
macOS counterpart can share it.

zbus was already in the tree through GPUI (ashpd) with the same async-io
backend; it is now listed directly, so Cargo.lock only gains that edge.

Tested in a Debian container: builds, and the ignored test
serves_mpris_on_the_session_bus passes under dbus-run-session.
2026-11-27 14:48:57 +05:30
mkrtc
037af18332 Go back to the previously watched video with "previous" (#219)
Without a queue, "previous" (Shift+P) did nothing, so after moving on to
"Up next" or opening another video there was no way back but the page
history. The player now remembers the videos watched before the current
one in this session (up to 50, Shorts left out), and "previous" steps
through the queue first, then this history, then restarts the video.
2026-11-27 14:48:56 +05:30
bogdanMerkulow
17d563ef1b Let viewers choose the Up next thumbnail size (#222) 2026-11-27 14:48:55 +05:30
bastiman85
e8138a1cb3 Show "Remove from Watch later" in place of "Save to Watch later" (#231)
In Watch later (the account's WL or the local list) a video's menu now has
"Remove from Watch later" where "Save to Watch later" was, since saving to
the list you are looking at does nothing. Other editable lists keep
"Save to Watch later" and "Remove from playlist" as before.

The account's Favorites playlist (found the way #192 finds it) also gets
"Remove from playlist" when it was loaded without the account, as public
playlists are. Removal reuses remove_video / remove_many_from_playlist.

Refs #68
2026-11-27 14:48:41 +05:30