feat: add CTA after download and mention it in README
This commit is contained in:
@@ -13,6 +13,7 @@ A simple Go tool for downloading music from [Deezer](https://www.deezer.com).
|
|||||||
[Configuration](#configuration) •
|
[Configuration](#configuration) •
|
||||||
[Usage](#usage) •
|
[Usage](#usage) •
|
||||||
[Contributing](#contributing) •
|
[Contributing](#contributing) •
|
||||||
|
[Support](#⭐-support-the-project) •
|
||||||
[License](#license)
|
[License](#license)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -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.
|
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!
|
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
|
## License
|
||||||
|
|
||||||
This project is licensed under the MIT License. See the [LICENSE](https://github.com/mathismqn/godeez/blob/main/LICENSE) file for details.
|
This project is licensed under the MIT License. See the [LICENSE](https://github.com/mathismqn/godeez/blob/main/LICENSE) file for details.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package downloader
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -109,5 +110,15 @@ Files saved to: %s
|
|||||||
elapsed.Round(time.Second),
|
elapsed.Round(time.Second),
|
||||||
outputDir,
|
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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user