Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some undesired attributes being saved to playlists.db #5900

Conversation

TheodorSmall
Copy link
Contributor

Fix some undesired attributes being saved to playlists.db

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #5601

Description

With Invidious API, certain undesired attributes of videos are fetched when copying playlists. There's already an implementation to get rid of those (in src/renderer/store/modules/playlists.js:actions.getVideos), but the list of those attributes is currently incomplete. The following attributes are missing in the list (relying on the fact that they are not saved when adding videos one by one):

  • authorUrl
  • index
  • liveNow
  • videoThumbnails

Testing

Tested for both development mode and production mode.

With Invidious API enabled, add a playlist from YT to a local playlist, and add some videos one by one to another local playlist.
Then check that the attribute names of the videos are the same in both playlists.
There is no need to close FT before reading playlists.db if you make sure you are looking at the most up-to-date version of the playlist (which is the last line with the playlist with that name).

Desktop

  • OS: Artix Linux x86_64
  • Kernel Version: 6.6.51-1-lts
  • FreeTube version: dev at f57b436

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 20, 2024 12:15
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 20, 2024
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the DO NOT MERGE UNTIL AFTER RELEASE Do not merge before the next release as this is not a bug fix label Oct 24, 2024
@ChunkyProgrammer ChunkyProgrammer removed the DO NOT MERGE UNTIL AFTER RELEASE Do not merge before the next release as this is not a bug fix label Oct 27, 2024
auto-merge was automatically disabled October 27, 2024 08:34

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 27, 2024 08:35
Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

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

I exported playlist DB to compare
Copied
image
Manually add video
image

@FreeTubeBot FreeTubeBot merged commit a051f02 into FreeTubeApp:development Oct 29, 2024
6 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 29, 2024
@TheodorSmall TheodorSmall deleted the playlist-undesired-attributes branch October 29, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Thumbnail links are sometimes saved to playlists.db
7 participants