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

Error in main process #156

Open
Gizmodo opened this issue Dec 25, 2024 · 1 comment
Open

Error in main process #156

Gizmodo opened this issue Dec 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Gizmodo
Copy link

Gizmodo commented Dec 25, 2024

Describe the bug
Ive try to download two videos from YouTube and get an error

Screenshots
image

Additional info (please complete the following information):

  • OS: Win11
  • Application version 2.5.4
  • Application type installer
@Gizmodo Gizmodo added the bug Something isn't working label Dec 25, 2024
@StefanLobbenmeier
Copy link
Owner

this is very curious - apparently instead of getting proper json from yt-dlp we just got 4

I can reproduce the javascript error with this code:

var liveDataObj = JSON.parse("4")
"fragment_count" in liveDataObj

which is what must have happened in this piece of code:

let liveDataObj;
try {
liveDataObj = JSON.parse(liveData.slice(liveData.indexOf('{')));
} catch(e) {
return;
}
let percentage;
if ("fragment_count" in liveDataObj) {

Can you share the video urls so I can attempt to reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants