-
Notifications
You must be signed in to change notification settings - Fork 433
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(client): Randomly slow youtube download speed #229
Conversation
Signed-off-by: Billaids <jimmy.nelle@hsw-stud.de>
Signed-off-by: Billaids <jimmy.nelle@hsw-stud.de>
Thanks a lot for you contribution! Unfortunately one test fails because the changed user agent leads to a missing creation timestamp. I could not find a solution yet. |
Thanks for your help! I'll have a closer look this evening |
* we can't get the publishdate from the android response, have to add maybe another http request for it Signed-off-by: Billaids <jimmy.nelle@hsw-stud.de>
Signed-off-by: Billaids <jimmy.nelle@hsw-stud.de>
if str := prData.Microformat.PlayerMicroformatRenderer.PublishDate; str != "" { | ||
v.PublishDate, _ = time.Parse(dateFormat, str) | ||
} | ||
// couldn't find any publishdate for now, have to add an another request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@corny could you check this please?
|
||
// Assign Streams | ||
v.Formats = append(prData.StreamingData.Formats, prData.StreamingData.AdaptiveFormats...) | ||
v.Formats = append(prData.StreamingData.Formats, prData.StreamingData.Formats...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you duplicating the StreamingData.Formats
slice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to change it from AdaptiveFormats to Format like you did in your solution
I ran into the issue with slow downloads and tried this patch out and noticed some issues. |
I think your solution in this commit is the best for now! |
Please rebase on top of master and then let's check the integration tests. |
I tried to rebase your branch on top of master. Unfortuntely test |
6ef3171
to
bc29310
Compare
Any update on this? |
should be solved by #244 |
Description
This PR fixes the randomly slow youtube download speed that caused from web client.
Issues to fix
Please link issues this PR will fix:
#[230]
Reminding
Something you can do before PR to reduce time to merge