Huahuehuahue
Huahuehuahue
Got the trout pen from Grand Illusions last Christmas for my mother, an avid fisher. It was a hit!
Why, it’s the one I’ve hand baked myself of course.
I used to get so many old videos as reruns from Youtube feeds that I got fed up with it and made these changes to init() in classes/feedparser.php (added lines prefixed with ’+’):
foreach ($articles as $article) {
+ $ju_article = new FeedItem_Atom($article, $this->doc, $this->xpath);
+ if ($ju_article->get_date() < strtotime("-14 days")) continue;
+
array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath));
}
(And the same logic for each feed type.)
This seems to work as I like, forcibly dropping everything older than two weeks (I generally don’t care for old content). However, as it is a core change, I’ll have to reimplement it each time TTRSS is updated. Any chance of getting a hook in there somewhere (perhaps operating on $articles prior to that foreach), to do this type of prefiltering in a plugin?
Vastaa viestiin sen kontekstissa (Tiny Tiny RSS Community Forums)
Excellent. Which license would you apply to this? I store many of my small scripts in my personal (but publicly readable) wiki, so I’d like to get the license right for any derivatives I might publish.
I almost get cramps just by looking at this.
I don’t see a J in there, instead there are two L’s. A weird anomaly, almost as if somehow significant…