FreshRSS/FreshRSS

[Feature] XPath, date: Possibility to specify the language

Offen

#6.209 geöffnet am 17.03.2024

 (5 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)PHP (1.171 Forks)batch import
Feature RequestI18n :earth_africa:Web Scrapinghelp wanted

Repository-Metriken

Stars
 (15.022 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11T 12h) (36 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem? Please describe. Not every site has RSS. I am very grateful that since 2022 there is the feature that with XPath every website is readable as a feed. I invest a lot of time in understanding XPath better and building complex structures :)

I mainly read in German and therefore the date of the articles is also in German. The problem is the written out month. The date is not recognized by the PHP function strtotime. The problem has already been mentioned by Alkarex.

Describe the solution you’d like The best option would be to specify the language when creating an XPath feed. The date string would be searched for the full and shortened month and replaced with the English variant.

Alternatively, a replace function could be useful to automatically replace individual words (in this case months).

Describe alternatives you’ve considered So far I leave the field for the date blank if there is no other indication of the date in the DOM. Sometimes there is still a datetime attribute.

Thank you very much for this project!

Contributor Guide