Skip to content

Fixed a bug that prevented the display of multiple empty playlists#9642

Merged
Stypox merged 1 commit intoTeamNewPipe:devfrom
Jared234:8582_empty_playlists_not_shown
Jan 13, 2023
Merged

Fixed a bug that prevented the display of multiple empty playlists#9642
Stypox merged 1 commit intoTeamNewPipe:devfrom
Jared234:8582_empty_playlists_not_shown

Conversation

@Jared234
Copy link
Contributor

@Jared234 Jared234 commented Jan 8, 2023

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • The issue was fixed by changing the faulty query getPlaylistMetadata:
    If a playlist has no streams, there won’t be any rows in the PLAYLIST_STREAM_JOIN_TABLE table that have a foreign key to that playlist. Thus, the JOIN_PLAYLIST_ID will not have a corresponding value in any rows of the join table. So, if you group by the JOIN_PLAYLIST_ID, only playlists that contain videos are grouped and displayed.

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@AudricV AudricV added bug Issue is related to a bug playlist Anything to do with playlists in the app labels Jan 8, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I can confirm it works :-)

@Stypox Stypox merged commit e44d092 into TeamNewPipe:dev Jan 13, 2023
@Stypox Stypox mentioned this pull request Jan 22, 2023
3 tasks
dustdfg added a commit to dustdfg/NewPipe that referenced this pull request Jan 14, 2026
Turned out this bug was already fixed two years ago but unfortunately
it made its way back again. It was solved in TeamNewPipe#9642 but back then another
method was used for querying playlists from db (for add playlist dialog) then in
ef4a623 was introduced another method
which had the same problem as fixed in TeamNewPipe#9642 and which eventually replaced
original method in code for querying playlists from db (for add playlist dialog)
dustdfg added a commit to dustdfg/NewPipe that referenced this pull request Jan 15, 2026
Turned out this bug was already fixed two years ago but unfortunately
it made its way back again. It was solved in TeamNewPipe#9642 but back then another
method was used for querying playlists from db (for add playlist dialog) then in
ef4a623 was introduced another method
which had the same problem as fixed in TeamNewPipe#9642 and which eventually replaced
original method in code for querying playlists from db (for add playlist dialog)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug playlist Anything to do with playlists in the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty playlist are not showed in playlist bookmarks when are more than one empty

3 participants