From e4c421ff003f26c3698611c55c4ea4f3fcf670b0 Mon Sep 17 00:00:00 2001 From: Mathis Maquenne <124215603+mathismqn@users.noreply.github.com> Date: Thu, 11 Sep 2025 00:32:42 +0200 Subject: [PATCH] feat: add CTA after download and mention it in README --- README.md | 10 ++++++++++ internal/downloader/progress.go | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 2b50fff..8064e99 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ A simple Go tool for downloading music from [Deezer](https://www.deezer.com). [Configuration](#configuration) • [Usage](#usage) • [Contributing](#contributing) • +[Support](#⭐-support-the-project) • [License](#license) @@ -164,6 +165,15 @@ Whether it’s a bug fix, a new feature, or improving documentation, your input If you have an idea for improvement, feel free to fork the repository and submit a pull request. You can also open an issue if you spot a bug or have a feature suggestion. Every bit of support counts, so don’t forget to give the project a star if you enjoy using it. Thank you for helping make this project better! +## ⭐ Support the Project + +If **GoDeez** helps you enjoy your music collection, please consider giving it a star! + +**Why star us?** +- Helps more music lovers discover the project +- Shows appreciation for the work and motivates development +- Takes just one click but means the world to us! + ## License This project is licensed under the MIT License. See the [LICENSE](https://github.com/mathismqn/godeez/blob/main/LICENSE) file for details. diff --git a/internal/downloader/progress.go b/internal/downloader/progress.go index cc48a72..dfc565d 100644 --- a/internal/downloader/progress.go +++ b/internal/downloader/progress.go @@ -2,6 +2,7 @@ package downloader import ( "fmt" + "math/rand" "os" "time" @@ -109,5 +110,15 @@ Files saved to: %s elapsed.Round(time.Second), outputDir, ) + + if pt.stats.downloaded > 0 { + pt.showSupportMessage() + } + } +} + +func (pt *progressTracker) showSupportMessage() { + if rand.Float64() < 0.1 { + fmt.Printf("\n💖 Enjoying GoDeez? Give us a ⭐ on GitHub: https://github.com/mathismqn/godeez\n") } }