You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started to use this script today and found everything is pretty good except download speed. I'm happy to improve this part and submit PR after this conceptual san-check.
After taking a quick look into implementation, I found that the script curls each packet whose size is decided by Telegram server, like every fetchNextPart. So, I wonder if it's possible & safe to request larger chunk size per packet to speed up download?
Also, sometimes, web Telegram crashes after a few download attempts. Is it also relevant to script? It seems not, but I'm not sure.
The text was updated successfully, but these errors were encountered:
Thank you for the interest of contributing. The idea of the script was actually very simple that we are basically simulating the video streaming process of the webapp. We request the video data using HLS protocol just like how the Telegram webapp does it while user playing the videos, then use script to concatenate the data and save it locally.
You are right that the package size is decided by the serve this way. As a result, the download speed is limited and we got issues with large files and sometimes the server rejects the requests with 404 for unknown reasons.
To be honest, I do not know whether requesting larger package size will cause any issue or is there a better approach or APIs we can use. It will be great if you want to experiment and let me know your findings.
Hi dev,
I just started to use this script today and found everything is pretty good except download speed. I'm happy to improve this part and submit PR after this conceptual san-check.
After taking a quick look into implementation, I found that the script curls each packet whose size is decided by Telegram server, like every
fetchNextPart
. So, I wonder if it's possible & safe to request larger chunk size per packet to speed up download?Also, sometimes, web Telegram crashes after a few download attempts. Is it also relevant to script? It seems not, but I'm not sure.
The text was updated successfully, but these errors were encountered: