Skip to content

Commit

Permalink
Add additional print
Browse files Browse the repository at this point in the history
  • Loading branch information
arimatakao committed Jul 10, 2024
1 parent 6cacbaa commit 1fd9040
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/meta.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app

const (
VERSION = "v1.10.3"
VERSION = "v1.10.4"

API_VERSION = "v5.10.2"

Expand Down
4 changes: 4 additions & 0 deletions internal/mdx/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ func (p dlParam) downloadProcess(outputFile filekit.Container,
return ErrEmptyChapters
}

if p.language == "ru" {
printUaNotification()
}

files := chapter.PngFiles
imgExt := "png"
if p.isJpg {
Expand Down
26 changes: 26 additions & 0 deletions internal/mdx/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,29 @@ func printChapterInfo(c mangadexapi.ChapterFullInfo) {
}
pterm.DefaultTable.WithData(tableData).Render()
}

func printUaNotification() {
y := pterm.NewStyle(pterm.FgYellow)
b := pterm.NewStyle(pterm.FgBlue)

b.Println("ПОМОГИ УКРАИНЦАМ В БОРЬБЕ")
y.Println("ПРОТИВ РОССИЙСКОЙ АГРЕССИИ")

field.Println("\n===ПОЛЕЗНЫЕ ССЫЛКИ===")
field.Println("Как война касается тебя лично?:")
dp.Println("https://war.ukraine.ua/ru/kak-vojna-kasaetsya-tebya-lychno")
field.Println("(СМИ) BBC Русская служба:")
dp.Println("https://www.bbc.com/russian\n" +
"https://t.me/bbcrussian")
field.Println("(СМИ) Радио Свобода:")
dp.Println("https://www.svoboda.org\n" +
"https://www.svoboda.org/block\n" +
"https://t.me/radiosvoboda")
field.Println("(СМИ) Голос Америки:")
dp.Println("https://www.golosameriki.com\n" +
"https://t.me/GolosAmeriki")
field.Print("Используй VPN для своей безопасности!\n\n")

b.Println("ПОМОГИ УКРАИНЕ В БОРЬБЕ")
y.Println("ПРОТИВ РОССИЙСКОЙ АГРЕССИИ")
}

0 comments on commit 1fd9040

Please sign in to comment.