add-ons / add-ons/plugin.video.vrt.nu

Switching to "Sort by Default" doesn't have effect

Open
#382 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted kodi reported
Dominant language
Python
Stars
125
Forks
27
Avg merge
3h 46m
Merged PRs (30d)
12

Description

Describe the bug

If you switch your view to sort by Default (SORT_METHOD_UNSORTED) it does not have any effect until you refresh your view. For other sort methods this works fine though.

To Reproduce

Steps to reproduce the behavior:

  1. Go to any view
  2. Change the sort order to Default
  3. The ordering hasn't changed
  4. Leave the view and go back so it gets redrawn, now to sort order is Default/Unsorted as expected
Expected behavior

If you enable SORT_METHOD_UNSORTED, it should have effect immediately.

Additional context
  • Operating system: LibreELEC 9.0.2
  • Kodi version: 18.2
  • Addon version: 2.1.0
  • Using a VPN: yno
  • Country you are using the addon from: BE

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the SORT_METHOD_UNSORTED path used when changing the sort order in any view, and compare it with the other sort methods that update immediately. Reproduce the issue by switching a view to Default, then leave and re-enter it; done means the Default/Unsorted ordering takes effect without refreshing or redrawing the view.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.