V2rayCollector icon indicating copy to clipboard operation
V2rayCollector copied to clipboard

How can I limit servers for each channel?

Open ghost1372 opened this issue 1 year ago • 2 comments

First of all, thank you for the useful script, I am not very familiar with Go, that's why I have to ask my question. How can I limit channel posts so that old servers are not added?

i tried to change:

if messages < 100 && exist { to if messages < 1 && exist {

and also: doc = GetMessages(100

to

doc = GetMessages(1

But every time I get the previous results. For example, for a specific channel, I get about 18 different servers, which about 16 servers are old and inactive, so i need to limit servers or channel posts. for example i need just 2 ~ 4 servers from this channel.

Also, is it possible to receive only the posts that have been published in the last 3 days instead of receiving the entire server? Most channels either change servers daily or every 2~3 days.

ghost1372 avatar Feb 29 '24 16:02 ghost1372

I tried to keep only the first 4 items and delete the rest, but it seems that the data is not stored in order. I expected the new servers to be in the first rows...

ghost1372 avatar Feb 29 '24 16:02 ghost1372

hello , actually I wrote this script last year and I did not expect this project would get more stars ! :D and unfortunately after that time I did not have time to optimize the script . I will update the script soon and I will also add those features you mentioned.

thanks for the feedback and opening a issue

mrvcoder avatar Mar 01 '24 21:03 mrvcoder