~rek2/goTootRamdonVideo

ec48d6927f450a59f0cf8f9049ab98ea7d16c093 — rek2 1 year, 8 months ago 4134289
update readme and one line in the ignore words
3 files changed, 10 insertions(+), 3 deletions(-)

M README.md
M config.ini
M main.go
M README.md => README.md +6 -0
@@ 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`

M config.ini => config.ini +3 -2
@@ 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 

M main.go => main.go +1 -1
@@ 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