[Bug]: Shorts Playlist without timestamps cant be copied
Guidelines
- [x] I have encountered this bug in the latest release of FreeTube.
- [x] I have encountered this bug in the official downloads of FreeTube.
- [x] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
- [x] I have searched the documentation for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
Describe the bug
- Go to https://youtube.com/playlist?list=PLnN2bBxGARv7fRxsCcWaxvGE6sn5Ypp1H
- Try to copy the playlist
- See error
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
- [x] I have encountered this bug in the latest nightly build.
in my case when i tried to copy the playlist , there is no error displayed
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
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
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:
- Opened the playlist using the link https://youtube.com/playlist?list=PLnN2bBxGARv7fRxsCcWaxvGE6sn5Ypp1H
- Pressed on the copy button to copy the playlist
- 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