Andrew Dolgov
3dd4169b5f
clarify some URL validation-related error messages
4 years ago
Andrew Dolgov
4785f21316
update_rss_feed: log effective URL after fetching
...
validate_url: treat scheme as case-insensitive
4 years ago
Andrew Dolgov
a4525d31b2
replace FALSE with false so that static analyzer shuts up about it
4 years ago
Andrew Dolgov
afa0023c51
don't try to update manually disabled feeds even if they haven't been updated before or are marked for a manual update
4 years ago
Andrew Dolgov
c352e872e9
core: pass found enclosures to HOOK_ARTICLE_FILTER
...
af_redditimgur: remove enclosures if we found something to embed because it's going to be a low-res thumbnail
4 years ago
Andrew Dolgov
6eb94f1e13
better support for image srcset attributes as discussed in https://community.tt-rss.org/t/problem-with-img-srcset/3519
5 years ago
Andrew Dolgov
06d2c65193
calculate_article_hash: don't die() on previous, woops
5 years ago
Andrew Dolgov
3a142cbf58
calculate_article_hash: ignore some useless or read-only fields (i.e. GUID) when calculating hash
5 years ago
Andrew Dolgov
cd1f3cb8cc
* store UID in article hashed GUID separately so it could be migrated cleanly to a different instance
...
* store resulting GUID as a JSON object so it could be extended easier if needed
5 years ago
Andrew Dolgov
3a4b9249a9
DiskCache: properly deal with srcset attributes
5 years ago
Andrew Dolgov
4a00f96733
remove unneeded var_dump()
5 years ago
Andrew Dolgov
6573541873
* add HOOK_ENCLOSURE_IMPORTED
...
* pass feed id to HOOK_FEED_PARSED
5 years ago
lllusion3418
ec1b0befc7
add support for video[@src] in media cache
...
it's a valid alternative to a source[@src] child element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
5 years ago
lllusion3418
cdde23b4dc
actually download <video> posters to media cache
...
video[@poster] is already supported in the rewriting logic but never
actually downloaded
5 years ago
Andrew Dolgov
f24ece85a6
add validationtextarea control, use it for filter match editor
5 years ago
Andrew Dolgov
6080cca9ca
scrap counter cache system; rework counters to sum() booleans instead
5 years ago
Andrew Dolgov
e5b7b145e5
cache media: set referrer to source URL when fetching images
5 years ago
Andrew Dolgov
304d3a0b88
tag-related fixes
...
1. move tag sanitization to feedparser common item class
2. enforce length limit on tags when parsing
3. support multiple tags passed via one dc:subject and other such elements, parse them as a comma-separated list
4. sort resulting tag list to prevent different order between feed updates
5. remove some duplicate code related to tag validation
6. allow + symbol in tags
5 years ago
Andrew Dolgov
8c3efd51ec
reset domain hit quota on feed update start
5 years ago
Andrew Dolgov
0d7b10469b
update_rss_feed: add specific logging for HOOK_FETCH_FEED, HOOK_FEED_FETCHED, HOOK_FEED_PARSED handlers
5 years ago
Andrew Dolgov
5bb8dad631
is_gzipped: don't try to strpos() over entire buffer
5 years ago
Andrew Dolgov
647c7c45eb
allow article filters to modify num_comments
5 years ago
Andrew Dolgov
4e05008aac
update_rss_feed: force cast initial timestamp value to integer
5 years ago
Andrew Dolgov
b0d67cd3d0
rework previous to pass unformatted timestamp to plugin, and deal with formatting later
...
also, move timestamp-related debugging output after plugin handler
5 years ago
Andrew Dolgov
94a12b9674
pass formatted entry timestamp to article filters and allow them to modify it
5 years ago
Andrew Dolgov
6914ad1f74
retire MIN_CACHE_FILE_SIZE
5 years ago
Andrew Dolgov
84974c60a7
RSSUtils::cache_media, cache_enclosures: use DiskCache
5 years ago
Andrew Dolgov
fdb6066bf6
* HOOK_ENCLOSURE_ENTRY: pass article_id to handler
...
* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send()
* public/cached_url: allow selecting files from sub-caches other than images
* plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
5 years ago
Andrew Dolgov
19b9b27662
expire_cached_files to DiskCache::expire()
5 years ago
Andrew Dolgov
088fcf8131
move more globals to more appropriate places
...
set libxml to always use internal errors
6 years ago
Andrew Dolgov
4fa9aee4e7
move several more global functions to more appropriate classes
6 years ago
Andrew Dolgov
9423d72f6c
parser: force libxml error messages to valid utf8
6 years ago
Andrew Dolgov
c936cc3a1f
use DEFAULT_SEARCH_LANGUAGE to generate tsvector index if per-feed language is not specified, also use it as default value on search form for convenience
6 years ago
Andrew Dolgov
671f4cee65
domdocument: remove old meta charset unicode hacks, replace with shorter xml preamble utf8 hack (on loadhtml where it makes sense)
...
af_readability: better (?) charset hack for non-unicode pages
6 years ago
Andrew Dolgov
33a2d5f8e4
update_rss_feed: set basic feed info if site_url is blank
6 years ago
Andrew Dolgov
69a691f4e1
cleanup old feed browser cache
6 years ago
Andrew Dolgov
0b74db5ad7
remove feedbrowser (other feeds)
6 years ago
Andrew Dolgov
38e01270d8
archived feeds: expire old entries (schema bump)
6 years ago
Andrew Dolgov
13e7e775a3
update_rss_feed: mark_unread_on_update should take into account catchup filter action and entry_force_catchup
6 years ago
Andrew Dolgov
949bfa3457
add minor clean()-ing on some rss feed values
6 years ago
Andrew Dolgov
eedd402807
rssutils: don't gzdecode() stuff
6 years ago
Andrew Dolgov
a5517fe857
fetch_file_contents: decompress gzipped data
...
af_readability: remove utf8 preamble hack
6 years ago
Andrew Dolgov
958fbfedb6
rssutils: check if returned data is in gzip format before trying to decode it
6 years ago
JustAMacUser
4b2f3039d2
Properly report filter plugin time (re-fixes PR 98).
6 years ago
JustAMacUser
53602096b9
Fixed misplaced bracket.
6 years ago
Andrew Dolgov
f3737c0b24
update_rss_feed: add log message if article is filtered out
...
combine filters: fix crash on missing global function
6 years ago
Andrew Dolgov
1e3a53c037
do not try to update filter triggers if nothing was triggered (properly this time)
6 years ago
Andrew Dolgov
5780a5d501
do not try to update filter triggers if nothing was triggered
6 years ago
Andrew Dolgov
3e4326e34d
add ttrss_filters2.last_triggered (bump schema version)
6 years ago
Andrew Dolgov
a01c33d654
add HOOK_FILTER_TRIGGERED (for filter debugging)
6 years ago