FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Search filters dont work properly

Open BeatlesNo1 opened this issue 9 months ago • 8 comments

Guidelines

Describe the bug

Click on Filters button and go to Sort By section. Select Upload Date. Results are not sorted and mostly shows what Most Relevant filter shows. Selecting invidious API doesn't change the behavior.

Image

Thank you for this great app and your work.

Expected Behavior

Expected behavior is to be sorted by upload date.

Issue Labels

feature stopped working

FreeTube Version

0.23.13

Operating System Version

Arch based Cachy OS Linux distro

Installation Method

.AppImage

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

BeatlesNo1 avatar Feb 06 '26 18:02 BeatlesNo1

Probably related to YouTube's changes to the search filters, which we haven't adopted in FreeTube yet: https://support.google.com/youtube/thread/400586735/changes-to-youtube-search-filters-to-improve-content-discovery

absidue avatar Feb 06 '26 20:02 absidue

Thank you for your response and the link. Any suggestions on what sorting option I should use instead?

BeatlesNo1 avatar Feb 06 '26 20:02 BeatlesNo1

Any suggestions on what sorting option I should use instead?

@BeatlesNo1 at this moment there isnt an alternative. YouTube's changes broke the older type of filters we are using so we have to fix that.

If i select upload date and under time i select today or this week, it kind of works. It just doesn't sort them. Should I add a feature request for the filter change?

BeatlesNo1 avatar Feb 08 '26 14:02 BeatlesNo1

No, one GitHub issue is enough.

absidue avatar Feb 08 '26 14:02 absidue

If i select upload date and under time i select today or this week, it kind of works. It just doesn't sort them. Should I add a feature request for the filter change?

I tried that (and before + after pairs). It's not only does not sort, but I observed that 40+% of results are unrelated to my search queries.

BogudanPro avatar Feb 08 '26 20:02 BogudanPro

YouTube removed the upload date sorting option both on the website and on their server (it ignores FreeTube telling it to sort by upload date), so the fix is for us to remove that option in FreeTube. We cannot work around YouTube's server side changes.

absidue avatar Feb 08 '26 22:02 absidue

Bit of a hacky idea, but what about pulling the first X pages of results by hour/day, then sorting the results client side?

BowzasaurusRex avatar Feb 16 '26 22:02 BowzasaurusRex