tangyoha / telegram_media_downloader_bak

基于Dineshkarthik的项目, 电报视频下载,电报资源下载,跨平台,支持web查看下载进度,支持下载已经加入的私有群但是限制下载的资源, telegram media download,Download media files from a telegram conversation/chat/channel up to 2GiB per file,项目已经永久移动到 https://github.com/tangyoha/telegram_media_downloader
MIT License
55 stars 10 forks source link

new update not working #17

Open Romntic opened 1 year ago

Romntic commented 1 year ago

File
"/Users/xxxxxxx/Downloads/t
elegram_media_downloader/media_downl
oader.py", line 370, in begin_import
messages_iter =
client.get_chat_history(
^^^^^^^^^^^^^^^^
^^^^^^^^
File
"/Library/Frameworks/Python.framewor
k/Versions/3.11/lib/python3.11/site-
packages/pyrogram/sync.py", line 53,
in async_to_sync_wrap
coroutine = function(*args,
**kwargs)
^^^^^^^^^^^^^^^^^^^^
^^^^^
TypeError:
GetChatHistory.get_chat_history()
got an unexpected keyword argument
'reverse'
Level 777 update config...... media_downloader.py:445 Level 777 Updated last read message_id to media_downloader.py:452 config file, total download 0

tangyoha commented 1 year ago

@Romntic hi, you should run:

pip3 uninstall pyrogram
pip3 install -r requirements.txt
Romntic commented 1 year ago

ok i like ur update put message id front of file download on spesfic folder name of group but i have some notice ... download speed its very slowly some file not downloaded i make specific download for video only disable_syslog:

also in defult download folder in config.yaml coming save_path: E:\github\telegram_media_downloader but i change to save_path: /Users/xxxxx/Downloads/telegram_media_downloader

and some error like this

for example [21:38:33] ERROR client.py:983 Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/cl
ient.py", line 852, in get_file
r = await session.invoke(
^^^^^^^^^^^^^^^^^^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 381, in invoke
return await self.invoke(query, retries -
1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 381, in invoke
return await self.invoke(query, retries -
1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 381, in invoke
return await self.invoke(query, retries -
1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
[Previous line repeated 2 more times]
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 374, in invoke
raise e from None
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 361, in invoke
return await self.send(query,
timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^
File
"/Library/Frameworks/Python.framework/Versions
/3.11/lib/python3.11/site-packages/pyrogram/se
ssion/session.py", line 326, in send
raise TimeoutError
TimeoutError
Level 777 Media downloaded with wrong size - media_downloader.py:61 /Users/xxxxx/Downloads/te
egram_media_downloader/sahjt/2022_12/25202 -
IMG_9606.MP4
WARNING Timeout Error occurred when media_downloader.py:278 downloading Message[25202], retrying
after 5 seconds
[21:39:18] ERROR Message[25187]: Timing out after 3 media_downloader.py:284 reties, download skipped.

now in terminal stop on this [21:39:18] ERROR Message[25187]: Timing out after 3 media_downloader.py:284 reties, download skipped.
[21:39:27] ERROR Message[25203]: Timing out after 3 media_downloader.py:284 reties, download skipped.
[21:39:33] ERROR Message[25202]: Timing out after 3 media_downloader.py:284 reties, download skipped.

Romntic commented 1 year ago

see from start Successfully started (Press Ctrl+C to stop) [21:45:22] Level 777 Downloading files failed during media_downloader.py:376 last run...
[21:45:43] ERROR
21:54:26] Level 777 Stopped! media_downloader.py:441 Level 777 update config...... media_downloader.py:445 Level 777 Updated last read message_id to media_downloader.py:452 config file, total download 0

11 minute no downloaded

Romntic commented 1 year ago

Screen Shot 1444-05-14 at 10 15 04 PM many of file name coming None.mp4 i dont know why

tangyoha commented 1 year ago

@Romntic hi, if the file name with None,because the server does not storage file name, so we can not get the file name.

Romntic commented 1 year ago

But in another project make file name as on group

tangyoha commented 1 year ago

@Romntic hi, what is meanning?

Romntic commented 1 year ago

this https://github.com/Dineshkarthik/telegram_media_downloader its write name of file full name if u can add for that id msg its great

Romntic commented 1 year ago

and i have question how i can select download for example start download on msg id 15 to msg id 50

tangyoha commented 1 year ago

and i have question how i can select download for example

start download on msg id 15 to msg id 50

Download only messages with ids of 10 to 50?