Text File when downloading
#1
Hi Guys

this is just for my own curiosity ...

I have noticed that during downloads, a text file is generated in the downloads folder containing a series of numbers, comma separated, the first 9 displayed below...

#b08wvsl7,original,hvfxhigh,0,0
1,1633720,7.68,1633720,7.68,1501314610
2,2229680,15.36,595960,7.68,1501314610
3,2711336,23.04,481656,7.68,1501314610
4,3899872,30.72,1188536,7.68,1501314610
5,5169624,38.4,1269752,7.68,1501314610
6,5720464,46.08,550840,7.68,1501314610
7,6689416,53.76,968952,7.68,1501314610
8,7628288,61.44,938872,7.68,1501314610
9,8497976,69.12,869688,7.68,1501314610

The numbers change during download and I was just curious as to what each of the numbers represents in relation to the download in progress.

The file is automatically deleted after download is completed.

Any help would be appreciated

Cheers Wobblybob
#2
My guess is the numbers document the segments that get sent for the download stream.
I guess the program uses that info to join the segments back into order.
#3
(05-08-2017, 05:12 PM)forget.it Wrote: My guess is the numbers document the segments that get sent for the download stream.
I guess the program uses that info to join the segments back into order.

Yes - this from the 2.98 release notes:

Quote:get_iplayer 2.98 Release Notes
New/Changed

...
6. HLS/DASH downloads resumable across sessions

The HLS/DASH downloader can now resume downloads interrupted by dropped connections or other problems. You only need to re-run the exact same get_iplayer command and it will attempt to pick up where the previous download left off. This is accomplished through the use of a temporary file that stores download parameters and a log of already-downloaded segments.

The temporary file is created in the programme's output directory and has the same file prefix with a .txt extension.
The temporary .txt file is retained in the event of a complete download failure, but it can safely be deleted. The download will restart from the beginning in that case.
The requested PID, version, mode and start/stop times must be the same for a partial download to be resumed
If any problems are encountered in attempting to resume a download, get_iplayer will automatically restart the download from the beginning.
The resume functionality can be suppressed with the --no-resume option.

https://github.com/get-iplayer/get_iplay...release298

An excellent feature that I've made use of sometimes.