From ec48d6927f450a59f0cf8f9049ab98ea7d16c093 Mon Sep 17 00:00:00 2001 From: rek2 Date: Thu, 10 Nov 2022 17:49:45 +0100 Subject: [PATCH] update readme and one line in the ignore words --- README.md | 6 ++++++ config.ini | 5 +++-- main.go | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index abb1402..624581a 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,12 @@ password = `gopass show -o -f gotootramdonvideo/password` feed_url = https://odysee.com/$/rss/@Hackernol:7 ``` +# To get a RSS feed from Odysee list only +``` +feed_url = https://lbryfeed.melroy.org/playlist/odysee/Hackerñol#1 +``` +for more info: https://lbryfeed.melroy.org/playlist + # To end program ``` kill `cat goTootRamdonVideo.pid` diff --git a/config.ini b/config.ini index a309b64..3a57af3 100644 --- a/config.ini +++ b/config.ini @@ -1,5 +1,6 @@ [general] -interval = 60 +interval = 180 +ignore = "83l15" [mastodon] server = https://hispagatos.space @@ -9,4 +10,4 @@ username = hackersespanol@gmail.com password = `gopass show -o -f gotootramdonvideo/password` [odysee] -feed_url = https://odysee.com/$/rss/@Hackernol:7 +feed_url = https://lbryfeed.melroy.org/playlist/odysee/Hackerñol#1 diff --git a/main.go b/main.go index 45b3a4e..2830bb2 100644 --- a/main.go +++ b/main.go @@ -99,7 +99,7 @@ func mastodonTask(c *mastodon.Client, feedURL string, ignore []string) { for check <= len(ignore) { for _, word := range ignore { lowerCaseToot, lowerWord := strings.ToLower(randToot.Title), strings.ToLower(word) - if strings.EqualFold(lowerCaseToot, lowerWord) { + if strings.Contains(lowerCaseToot, lowerWord) { check = len(ignore) randToot = theFeed{} break -- 2.45.2