Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

new update not working #17

Open
Romntic opened this issue Dec 8, 2022 · 10 comments
Open

new update not working #17

Romntic opened this issue Dec 8, 2022 · 10 comments
Labels
good first issue Good for newcomers

Comments

@Romntic
Copy link

Romntic commented Dec 8, 2022

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
Copy link
Owner

tangyoha commented Dec 8, 2022

@Romntic hi, you should run:

pip3 uninstall pyrogram
pip3 install -r requirements.txt

@tangyoha tangyoha added the good first issue Good for newcomers label Dec 8, 2022
@Romntic
Copy link
Author

Romntic commented Dec 8, 2022

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:

  • INFO
    file_formats:
    video:
    • all
      file_path_prefix:
  • chat_title
  • media_datetime
  • media_types:
  • video

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
Copy link
Author

Romntic commented Dec 8, 2022

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
Copy link
Author

Romntic commented Dec 8, 2022

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

@tangyoha
Copy link
Owner

tangyoha commented Dec 9, 2022

@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
Copy link
Author

Romntic commented Dec 9, 2022

But in another project make file name as on group

@tangyoha
Copy link
Owner

tangyoha commented Dec 9, 2022

@Romntic hi, what is meanning?

@Romntic
Copy link
Author

Romntic commented Dec 9, 2022

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
Copy link
Author

Romntic commented Dec 9, 2022

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

@tangyoha
Copy link
Owner

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants