Dineshkarthik/telegram_media_downloader

about some downloaded file size is 0bit

Richman881 opened this issue · 16 comments

Because of the network error, it is 0bit after some files are downloaded, which is actually not. Therefore, if the downloaded file size is 0bit, it is defined as a re -download?

@Richman881 hi,what is meaning network error?can you show me the error log or more info about that.

My network is not very stable because I use a VPN, so when I download, some random files appear with 0bit, but the file is not 0bit in telegram.i'll push some pics bout that later

My network is not very stable because I use a VPN, so when I download, some random files appear with 0bit, but the file is not 0bit in telegram.i'll push some pics bout that later

@Richman881 hi,i know it,that is a bug. You can use the beta ver if you not care about stable.

I have the same problem. Few files have zero size.
It's not network error. it's the program download method error.

How can I redowload zero size files?

i'll try,,,ths

try this https://github.com/tangyoha/telegram_media_downloader

The logic of this version is much better,

It check if the file download then skipped, else redownload it.

       INFO     Start creating a new auth key on DC4             auth.py:82
       INFO     Using proxy 127.0.0.1                             tcp.py:72
       INFO     Connecting...                              connection.py:56
       Level 777 F:\te_download\telegram_media_down media_downloader.py:242
                 loader-2.0.2\BIOS ARCHIVE                                 
                 💻💻\2018_01\3489 - Dell Optiplex                         
                 755  25X32VSIG-A01.bin.rar alreay                         
                 download,download skipped. 

try this https://github.com/tangyoha/telegram_media_downloader
The logic of this version is much better,
It check if the file download then skipped, else redownload it.

The same error. Try to do that steps:
Step 1. Open any file in text editor, delete all data into the file.
Step 2. Change back the option "last_read_message_id: 0".
Step 3. Start "python media_downloader.py".
Step 4. Set that message "file alreay download,download skipped.".

try this https://github.com/tangyoha/telegram_media_downloader

The logic of this version is much better,

It check if the file download then skipped, else redownload it.

The same error. Try to do that steps:

Step 1. Open any file in text editor, delete all data into the file.

Step 2. Change back the option "last_read_message_id: 0".

Step 3. Start "python media_downloader.py".

Step 4. Set that message "file alreay download,download skipped.".

In step 1 you need to delete the downloaded file itself not just the data of the file.

I describe the simulate of situation.
The original problem is the same - the some files have 0 size of bytes.
And i think, the program must to redownload that files in auto mode.

My network is not very stable because I use a VPN, so when I download, some random files appear with 0bit, but the file is not 0bit in telegram.i'll push some pics bout that later
I also encountered the same situation. Downloaded file, 0 bytes. I'm sure it's not a problem with the VPN. Since I use several VPSs deployed around the world, this happens randomly.
Currently, I am using the one recommended by the boss below:
https://github.com/tangyoha/telegram_media_downloader
this version. It cannot avoid the error of downloading 0-byte files, but you can manually delete the 0-byte file, modify the config and restart the download, download repeatedly, and finally get the complete channel and group media files.
Don't worry, when downloading repeatedly, it will skip the files that have been downloaded and have not been deleted, so there will be no waste of traffic.

Try the TgDownloader to solve that problem.

stale commented

This issue has been automatically marked as stale because it has not had recent activity in the past 45 days. It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.