Skip to content

Conversation

@absidue
Copy link
Member

@absidue absidue commented Mar 27, 2025

Remove author and authorId from the required list of video keys for playlists

Pull Request Type

  • Bugfix

Related issue

closes #7023

Description

Shorts only playlists don't have any uploader information, so the playlist copy validation code complains about the author and authorId properties being missing. This pull request removes those two properties from the required keys allowing those playlists to be copied and imported into FreeTube.

Testing

  1. Open https://youtube.com/playlist?list=PLnN2bBxGARv7fRxsCcWaxvGE6sn5Ypp1H
  2. Try to copy the playlist
  3. There should be no validation error in the devtools console.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: f31f8a2

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) March 27, 2025 22:14
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 27, 2025
PikachuEXE
PikachuEXE previously approved these changes Mar 28, 2025
@efb4f5ff-1298-471a-8973-3d47447115dc

I exported playlists -> deleted all playlists -> imported and noticed that the short playlist was included but had no content in it. Should i create a separate issue?

@PikachuEXE
Copy link
Collaborator

Might as will fix it in this PR...
Just search for const requiredVideoKeys

Also since a change is needed I suggest making it commented with explanation like other attributes

// These keys are absent in shorts
// 'author',
// 'authorId',

@ChunkyProgrammer ChunkyProgrammer added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Apr 8, 2025
@absidue absidue force-pushed the fix-shorts-playlist-copy branch from a7499bf to f8d61af Compare April 9, 2025 21:03
@absidue absidue changed the title Remove authorId and author from the required properties for copying playlists Remove author and authorId from the required list of video keys for playlists Apr 9, 2025
@absidue absidue added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Apr 9, 2025
@absidue absidue requested a review from PikachuEXE April 9, 2025 21:04
@FreeTubeBot FreeTubeBot merged commit faf0610 into FreeTubeApp:development Apr 20, 2025
5 checks passed
@absidue absidue deleted the fix-shorts-playlist-copy branch April 20, 2025 19:09
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 20, 2025
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Apr 20, 2025
* development: (25 commits)
  Remove author and authorId from the required list of video keys for playlists (FreeTubeApp#7083)
  Translated using Weblate (Odia)
  Translated using Weblate (Nepali)
  Translated using Weblate (Hindi)
  Translated using Weblate (Sinhala)
  Translated using Weblate (Slovenian)
  Translated using Weblate (Catalan)
  Translated using Weblate (Assamese)
  Translated using Weblate (German)
  replace icns mac icon with hq one (FreeTubeApp#7212)
  Fix user-agent and referer for Innertube requests (FreeTubeApp#7213)
  Use new images (FreeTubeApp#7236)
  Fix the channel name and ID missing on the channel home tab (FreeTubeApp#7232)
  Translated using Weblate (Odia)
  Translated using Weblate (Georgian)
  Translated using Weblate (Bosnian)
  Translated using Weblate (Sinhala)
  Translated using Weblate (English (United Kingdom))
  Translated using Weblate (Assamese)
  Fix live streams not working on the local API (FreeTubeApp#7233)
  ...

# Conflicts:
#	src/renderer/views/Hashtag/Hashtag.vue
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Apr 20, 2025
…rent

* feature/hide-member-only-videos: (25 commits)
  Remove author and authorId from the required list of video keys for playlists (FreeTubeApp#7083)
  Translated using Weblate (Odia)
  Translated using Weblate (Nepali)
  Translated using Weblate (Hindi)
  Translated using Weblate (Sinhala)
  Translated using Weblate (Slovenian)
  Translated using Weblate (Catalan)
  Translated using Weblate (Assamese)
  Translated using Weblate (German)
  replace icns mac icon with hq one (FreeTubeApp#7212)
  Fix user-agent and referer for Innertube requests (FreeTubeApp#7213)
  Use new images (FreeTubeApp#7236)
  Fix the channel name and ID missing on the channel home tab (FreeTubeApp#7232)
  Translated using Weblate (Odia)
  Translated using Weblate (Georgian)
  Translated using Weblate (Bosnian)
  Translated using Weblate (Sinhala)
  Translated using Weblate (English (United Kingdom))
  Translated using Weblate (Assamese)
  Fix live streams not working on the local API (FreeTubeApp#7233)
  ...
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]: Shorts Playlist without timestamps cant be copied

5 participants