Giter Club home page Giter Club logo

Comments (8)

loeveo avatar loeveo commented on August 12, 2024 1

是的,文件将被覆盖。
只有具有相同名称的最新文件将存在,而具有相同名称的旧文件将被删除。这样就不会有重复的文件。

But this can’t work, because the name is the same, but it doesn’t mean the content is the same. This can only be verified by md 5.Hope to fix this feature

from telegram_media_downloader.

issue-label-bot avatar issue-label-bot commented on August 12, 2024

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from telegram_media_downloader.

Dineshkarthik avatar Dineshkarthik commented on August 12, 2024

Did you include all the media_types as well as file_formats in your config.yaml

from telegram_media_downloader.

loeveo avatar loeveo commented on August 12, 2024

Excuse me, the author, the file with the same name, do you adopt the method of overwriting and downloading?

from telegram_media_downloader.

Dineshkarthik avatar Dineshkarthik commented on August 12, 2024

Did your config.yaml looked similar to below

api_hash: your_api_hash
api_id: your_api_id
chat_id: telegram_chat_id
last_read_message_id: 0 <-- 0 when you started the script
media_types: 
- audio
- photo
- video
- document
- voice
file_formats:
  audio:
  - all
  document:
  - all
  video:
  - all

Whether all media types - audio, photo, video, document, voice are present?

from telegram_media_downloader.

loeveo avatar loeveo commented on August 12, 2024

是的,我只修改了API ID和组ID。因为我认为有些文件具有重复的名称,但是下载的文件只有一个,所以我想问一问,对于具有相同名称的文件,您是否采用覆盖战略?

您的config.yaml外观是否与下面相似

api_hash: your_api_hash
api_id: your_api_id
chat_id: telegram_chat_id
last_read_message_id: 0 <-- 0 when you started the script
media_types: 
- audio
- photo
- video
- document
- voice
file_formats:
  audio:
  - all
  document:
  - all
  video:
  - all

是否存在所有媒体类型audio, photo, video, document, voice

Yes, I only modified the API ID and group ID.Because I think there are some files with duplicate names, but there is only one downloaded file, so I would like to ask, for files with the same name, do you adopt an overwriting strategy?

from telegram_media_downloader.

Dineshkarthik avatar Dineshkarthik commented on August 12, 2024

Yes, the files will be overwritten.
Only latest file with the same name will exists old files with the same name will be removed. Thus there will be no duplicate files.

from telegram_media_downloader.

Dineshkarthik avatar Dineshkarthik commented on August 12, 2024

The above discussed file management strategy is implemented. Reset the last_read_message_id to 0 in your config.yaml and re-run the script.

from telegram_media_downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.