tangyoha / telegram_media_downloader

基于Dineshkarthik的项目, 电报视频下载,电报资源下载,跨平台,支持web查看下载进度 ,支持bot下发指令下载,支持下载已经加入的私有群但是限制下载的资源, telegram media download,Download media files from a telegram conversation/chat/channel up to 2GiB per file
MIT License
2.6k stars 311 forks source link

[Bug]: KeyError: 'tag_name' #189

Open biubiushaka opened 3 months ago

biubiushaka commented 3 months ago

telegram_media_downloader version or commit

v2.2.4

What OS are you seeing the problem on?

Other Linux Distro

Python Version

No response

What happened?

使用的容器镜像为 tangyoha/telegram_media_downloader:latest 初次使用docker start -i启动容器后正常下载了很多资源,后来发现容器不停重启,停止容器再次使用docker start -i发现KeyError: 'tag_name' 的提示,然后容器就应该又自动重启了。

Expected Behavior

不清楚这是否正常

Current Behavior

canfig.yaml配置如下: `api_hash: XXXXXXXXXXXXXXXXXX api_id: XXXXXX chat:

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

docker start -i结果如下(截取了停止回显时的片段):
2024-08-09 07:40:02.901 | INFO     | __main__:download_media:409 - id=801 /app/downloads/me/2024_08/801 - video_2024-07-08_13-18-38_7390730416732241952.mp4 already download,download skipped.

2024-08-09 07:40:03.138 | INFO     | __main__:main:678 - Stopped!
Traceback (most recent call last):
  File "/app/media_downloader.py", line 692, in <module>
    main()
  File "/app/media_downloader.py", line 679, in main
    check_for_updates(app.proxy)
  File "/app/utils/updates.py", line 70, in check_for_updates
    latest_release = get_latest_release(proxy_config)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/utils/updates.py", line 58, in get_latest_release
    if f"v{__version__}" != latest_release["tag_name"]:
                            ~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'tag_name'
devhub126 commented 1 week ago

同上

opisreal commented 1 day ago

可能环境有问题,我这终端启用报相同错误,用pycharm创建新的python虚拟环境跑起来没问题。