alfem/telegram-download-daemon

Not working with AVI or MKV files

Closed this issue · 3 comments

In the 1.3 versión, the service does not work with AVI or MKV files. It shows that it is downloading the file but the status indicates that there are no active downloads. It does not show the percentage of progress.

alfem commented

Could you send me the output of the script?

I launch the daemon with

. ~/config.conf
python3 telegram-download-daemon/telegram-download-daemon.py --api-id $api_id --api-hash $api_hash --channel $canal_descargas --dest ~/teledown/files --temp ~/teledown/temp

OK, now it works also with small mkv video files but when I try to download a big mkv video (smaller than 2gb)...

pi@raspberrypi:~/teledown $ ./teledown.sh
Telegram Download Daemon 1.4
NewMessage.Event(original_update=UpdateNewChannelMessage(message=Message(id=479, to_id=PeerChannel(channel_id=1223304367), date=datetime.datetime(2021, 3, 17, 22, 28, tzinfo=datetime.timezone.utc), message='', out=True, mentioned=False, media_unread=False, silent=False, post=True, from_scheduled=False, legacy=False, edit_hide=False, from_id=None, fwd_from=MessageFwdHeader(date=datetime.datetime(2021, 3, 17, 17, 30, 25, tzinfo=datetime.timezone.utc), from_id=None, from_name=None, channel_id=1416186395, channel_post=1525, post_author=None, saved_from_peer=None, saved_from_msg_id=None), via_bot_id=None, reply_to_msg_id=None, media=MessageMediaDocument(document=Document(id=5949308206437107873, access_hash=7180743302361032772, file_reference=b'\x04H\xea$\xaf\x00\x00\x01\xdf`R\x82p\x9f\xeb\x820\xf3T)\xdf+N\xd6\xad\xf3\xedN ', date=datetime.datetime(2021, 3, 17, 17, 20, 59, tzinfo=datetime.timezone.utc), mime_type='video/x-matroska', size=1717999489, dc_id=4, attributes=[DocumentAttributeFilename(file_name='Super Wombat@cinepalomitas.mkv')], thumbs=[]), ttl_seconds=None), reply_markup=None, entities=[], views=1, edit_date=None, post_author=None, grouped_id=None, restriction_reason=[]), pts=11562, pts_count=1), pattern_match=None, message=Message(id=479, to_id=PeerChannel(channel_id=1223304367), date=datetime.datetime(2021, 3, 17, 22, 28, tzinfo=datetime.timezone.utc), message='', out=True, mentioned=False, media_unread=False, silent=False, post=True, from_scheduled=False, legacy=False, edit_hide=False, from_id=None, fwd_from=MessageFwdHeader(date=datetime.datetime(2021, 3, 17, 17, 30, 25, tzinfo=datetime.timezone.utc), from_id=None, from_name=None, channel_id=1416186395, channel_post=1525, post_author=None, saved_from_peer=None, saved_from_msg_id=None), via_bot_id=None, reply_to_msg_id=None, media=MessageMediaDocument(document=Document(id=5949308206437107873, access_hash=7180743302361032772, file_reference=b'\x04H\xea$\xaf\x00\x00\x01\xdf`R\x82p\x9f\xeb\x820\xf3T)\xdf+N\xd6\xad\xf3\xedN ', date=datetime.datetime(2021, 3, 17, 17, 20, 59, tzinfo=datetime.timezone.utc), mime_type='video/x-matroska', size=1717999489, dc_id=4, attributes=[DocumentAttributeFilename(file_name='Super Wombat@cinepalomitas.mkv')], thumbs=[]), ttl_seconds=None), reply_markup=None, entities=[], views=1, edit_date=None, post_author=None, grouped_id=None, restriction_reason=[]))
Downloading file Super Wombat@cinepalomitas.mkv (1717999489 bytes)
Queue worker error:  File size too large
alfem commented

Well, if error shown is "File size too large" it is something Telegram is complaining about. My code does not check the size nor block any attempt of using big files.