FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Sorting on channnel pages isnt working

Open efb4f5ff-1298-471a-8973-3d47447115dc opened this issue 9 months ago • 9 comments

Guidelines

Describe the bug

YouTube probably made some changes which is why we are experiencing this.

Case A:

  1. Navigate to the Video/Shorts/Live tab on a channel page
  2. Click an option in the dropdown to sort videos
  3. See that videos arent getting sorted and dropdown disappears

Case B:

  1. Navigate to the Video/Shorts/Live tab on a channel page
  2. There is no dropdown to sort videos

Expected Behavior

Dropdown to sort videos should always be present and working as expected

Issue Labels

feature stopped working

FreeTube Version

v0.23.13-nightly-6941 Beta

Operating System Version

Windows 11 IoT Enterprise LTSC 24H2

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

I have also encountered this in v0.23.13 Beta, but it is inconsistant on shorts. Sometimes it shows up and works and sometimes it does not.

Seeker-of-Novelty avatar Feb 09 '26 01:02 Seeker-of-Novelty

I can confirm I'm also experiencing this. Went to the "videos" tab, sort by "oldest." Fails to change the sort, drop down disappears.

MrDaisyBates avatar Feb 09 '26 10:02 MrDaisyBates

I've also experienced case B (using v0.23.13). I've attached what I believe to be relevant console logs from the channel page (example channel where the error occurred).

Dev Console Logs

renderer.js:2 [YOUTUBEJS][Parser]: tD: Something went wrong at ChannelSubMenu!
This is a bug, please report it at https://github.com/LuanRT/YouTube.js/issues
    at qL (app://bundle/renderer.js:2:1642825)
    at tM (app://bundle/renderer.js:2:1651932)
    at new LS (app://bundle/renderer.js:2:1445398)
    at tM (app://bundle/renderer.js:2:1651803)
    at new cA (app://bundle/renderer.js:2:1606857)
    at tM (app://bundle/renderer.js:2:1651803)
    at nM (app://bundle/renderer.js:2:1652087)
    at new NA (app://bundle/renderer.js:2:1612080)
    at tM (app://bundle/renderer.js:2:1651803)
    at iM (app://bundle/renderer.js:2:1652417)
2 @ renderer.js:2

It seems to be an upstream problem and was already reported in the Youtube.js repo (https://github.com/LuanRT/YouTube.js/issues/1140).

artkapl avatar Feb 16 '26 10:02 artkapl

I've tried the fix, not the root cause, it's https://github.com/LuanRT/YouTube.js/issues/1142

PikachuEXE avatar Feb 26 '26 00:02 PikachuEXE

Seems to still not be working, even with the most recent nightly build (7104), with updated youtube.js and search filters fix (https://github.com/FreeTubeApp/FreeTube/pull/8812)

BitSynKed avatar Mar 20 '26 18:03 BitSynKed

@BitSynKed that is because it addressed Search filters not Channel sorting

Hi @efb4f5ff-1298-471a-8973-3d47447115dc, do you have any update on this ? Thanks again for your work.

cdnia avatar Apr 26 '26 15:04 cdnia

@cdnia its a bit complicated. Like mentioned in the issue this is due to YouTube changing stuff but they didnt fully roll it out yet which means we need to support the new way of handling the sorting but also the old way. Doing that makes a huge spaghetti mess in the code which we would rather avoid because that would lead to breaking this on our side more often.

@efb4f5ff-1298-471a-8973-3d47447115dc, thank you very much for taking the time to explain it to me in detail. Have a great day.

cdnia avatar Apr 26 '26 15:04 cdnia