FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Shorts Playlist without timestamps cant be copied

Open efb4f5ff-1298-471a-8973-3d47447115dc opened this issue 10 months ago • 5 comments

Guidelines

Describe the bug

  1. Go to https://youtube.com/playlist?list=PLnN2bBxGARv7fRxsCcWaxvGE6sn5Ypp1H
  2. Try to copy the playlist
  3. See error

Image

Expected Behavior

Users are able to copy these types of playlists

Issue Labels

inconsistent behavior, feature stopped working

FreeTube Version

v0.23.2-nightly-5735 Beta

Operating System Version

Windows 11 IoT Enterprise LTSC 24H2

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

in my case when i tried to copy the playlist , there is no error displayed

mohamed-aziz-chamakh avatar Mar 18 '25 14:03 mohamed-aziz-chamakh

I switched to the version of the bug reported by the original author to replicate the problem. However in my case when i tried to copy the playlist , there is no error displayed

akrem023 avatar Mar 18 '25 14:03 akrem023

Me to i encountered the same bug , it's coming from showAddToPlaylistPromptForManyVideos function in "/store/modules/utils.js" , as the required video keys are :'videoId', 'title', 'author', 'authorId', 'lengthSeconds'

for this playlist there are some missed keys(author and authorId), so for that " videoDataValid" is set to false, and the error shown in the console is because of this function : if (!videoDataValid) { // Print error and abort const errorMsgText = 'Incorrect videos data passed when opening playlist prompt' console.error(errorMsgText) console.error({ videoObjectArray, missingKeys, }) throw new Error(errorMsgText) }

this issue doesn't appear for all shorts playlists, My operating systems is Windows 10 Professionnel 22H2 and the freetube version is v0.23.2-nightly-5735 Beta

aziztouhami avatar Mar 19 '25 22:03 aziztouhami

I was able to reproduce this issue.

System Info:

  • OS: Windows 11
  • FreeTube version: v0.23.3 Beta
  • Installed via: yarn install

Steps I followed:

  1. Opened the playlist using the link https://youtube.com/playlist?list=PLnN2bBxGARv7fRxsCcWaxvGE6sn5Ypp1H
  2. Pressed on the copy button to copy the playlist
  3. The error was shown in the console I saw the following errors:
    utils.js:361 Incorrect videos data passed when opening playlist prompt utils.js:362 {videoObjectArray: Array(100), missingKeys: Array(2)} vue.runtime.esm.js:4664 [Vue warn]: Error in v-on handler: "Error: Incorrect videos data passed when opening playlist prompt"

found in

---> <FtIconButton> at src/renderer/components/ft-icon-button/ft-icon-button.vue <PlaylistInfo> at src/renderer/components/playlist-info/playlist-info.vue <Playlist> at src/renderer/views/Playlist/Playlist.vue <FtFlexBox> at src/renderer/components/ft-flex-box/ft-flex-box.vue <App> at src/renderer/App.vue <Root> vue.runtime.esm.js:3106 Error: Incorrect videos data passed when opening playlist prompt at Store.showAddToPlaylistPromptForManyVideos (utils.js:366:1)

recording:

https://github.com/user-attachments/assets/8b33194a-5b2e-4f78-bfc1-726c3c9367c2

mahdrebai avatar Apr 17 '25 20:04 mahdrebai