Commit Graph

46 Commits (59f5335f56a85c428740a9cd6ded75ecc51d31fa)

Author SHA1 Message Date
Andrew Dolgov 3ad9944d5e fix missing sprintf() argument 6 years ago
Andrew Dolgov c10a43069e debug logging system rework:
* support various logging levels per-message
 * remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
 * _debug() is kept as a compatibility shim for plugins
6 years ago
Andrew Dolgov 2d54eb1a87 remove cache/simplepie 6 years ago
Andrew Dolgov 2c940c4861 better handle PDOExceptions during open transaction in feed update 6 years ago
Andrew Dolgov 665495b94b cache_media: only touch() local file if it's writable 6 years ago
Andrew Dolgov 62d0060aa1 update_daemon_common: do not abort entire batch if PDOException happens when processing individual feeds 6 years ago
fox 8ab77d19ef Merge branch 'pullreq-enclosure-content-type' of tkappe/tt-rss into master 6 years ago
Tobias Kappé ac8a0e7dc6 Differentiate enclosures based on content type.
Some RSS feeds contain multiple enclosures with the same URL. When the first of
these is not recognized as an image, later entries are not added to the
database as rows in ttrss_enclosures. This change differentiates enclosures
based on their content type, so an entry can have multiple enclosure types with
the same URL (but possibly a different content type).
6 years ago
Andrew Dolgov 163b50b15f cache_media: only show downloading debug message when actually downloading 6 years ago
Andrew Dolgov 069aea5989 remove FEED_CRYPT_KEY and everything related to it
always assume auth_pass_encrypted is false
6 years ago
Tobias Kappé 3bbaf902ab Sanitize language obtained for an entry. 6 years ago
Tobias Kappé 22a866edb5 Store language of entries as indicated by the feed. 6 years ago
BtbN 2b8afd4942 Only strip utf8mb4 if mysql_charset != utf8mb4
If a user has fixed their database properly utf8mb4 works just fine allowing emoji and other 4 byte unicode characters to work.
6 years ago
Andrew Dolgov 6e6c3a878d update_rss_feed: limit maximum length of tsvector data because of pgsql limitations 6 years ago
Andrew Dolgov 66fe33e769 bump date_updated when updated article data is saved to exclude it from purging (because it is still present in the originating feed) 7 years ago
Andrew Dolgov 963c22646b pass tsvector data as a named parameter on article update, remove escaping hacks 7 years ago
Andrew Dolgov 5edf4b73a4 add a workaround to support numeric tags 7 years ago
Andrew Dolgov 7f4a404566 include: convert some spaces to tabs 7 years ago
Andrew Dolgov 102a01354b strip utf8mb4 characters in enclosures on mysql 7 years ago
jsoares 26ad257de5 Fixed time stamping of new unmarked/unpublished articles 7 years ago
Andrew Dolgov d4c05d0be2 update_rss_feed: don't try to use quoted NOW() in query 7 years ago
Richard Mortimer aa16334f1f Include NOW() in prepared SQL for rssutils.php 7 years ago
Andrew Dolgov e6532439d6 force strip_tags() on all user input unless explicitly allowed 7 years ago
Andrew Dolgov 7c6f7bb0aa fix some minor issues found by code analyzer 7 years ago
Andrew Dolgov 342e8a9eeb move feeds cache directory to cache/feeds 7 years ago
Andrew Dolgov 93e70e36c2 force article content/etc to string when updating to avoid failing null constraint check 7 years ago
Andrew Dolgov 49a888ecce rssutils: forbid question marks in tsvector data, PDO gets confused sometimes even by quoted ?s 7 years ago
Andrew Dolgov 187abfe732 main classes: remove sql_bool_to_bool() kludge 7 years ago
Andrew Dolgov 0500e14cc2 update_rss_feed: transaction lock article processing 7 years ago
Andrew Dolgov 0567016b40 rssutils: PDO 7 years ago
Andrew Dolgov afcb105f4e rssutils: start PDO switch 7 years ago
Andrew Dolgov e50c8eaa4e enforce unconditional requests every 6 hours even if server claims data is not modified 7 years ago
Andrew Dolgov 9d930af9e1 fetch_file_contents: improve error handling
1. if request fails get error string from http  response status line
2. do not override http error with possible CURL/php specific last error
3. fix silent php error generated while processing response headers to get last modified value
7 years ago
Gilles Grandou f9ad33c2d8 allows favicons to be in Windows PC BMP format 7 years ago
wn_ 3476690cbf Only require an array of basic info from 'HOOK_FEED_BASIC_INFO'.
Removes the need for the plugin to provide feed content.

Gives plugins a chance to provide 'title' and 'site_url' basic info.
Falls back to attempting retrieval+parsing of the fetch URL if needed.
7 years ago
wn_ bec5ba93e2 Add 'HOOK_FEED_BASIC_INFO' to enable plugins to provide basic feed info.
It's expected the plugin will return content parsable by FeedParser, which
will act as an interface to the basic feed info.  In the case of a plugin
that also uses 'HOOK_FETCH_FEED', both might return the same content.

The hook signature was made somewhat similar to 'HOOK_FETCH_FEED'.
7 years ago
Andrew Dolgov 153cb6d305 add support for http 304 not modified (no timestamp calculation bullshit like last time) 7 years ago
Andrew Dolgov 20d2195f13 rssutils: include comment count when calculating article hash 7 years ago
Andrew Dolgov 02f3992a5a Revert "Revert "filters: support matching on multiple feeds/categories""
This reverts commit f5d174bda9.
8 years ago
Andrew Dolgov f5d174bda9 Revert "filters: support matching on multiple feeds/categories"
This reverts commit 0bf7e007bb.
8 years ago
Andrew Dolgov 0bf7e007bb filters: support matching on multiple feeds/categories
opml: update filter export/import for new format
8 years ago
Andrew Dolgov 93af11cb7a update_daemon_common: do not escape feed_url twice, remove some comments and stuff 8 years ago
Andrew Dolgov 6fd0399694 tunables:
* add CACHE_MAX_DAYS as a tunable generic expiry interval for various cached files
* add some comments to tunables in functions.php
* rename _MIN_CACHE_FILE_SIZE to MIN_CACHE_FILE_SIZE
* respect MIN_CACHE_FILE_SIZE setting in a few more places where content is cached
8 years ago
Andrew Dolgov 5b6ea1ef91 remove pubsubhubbub: dead 8 years ago
Andrew Dolgov 4fd0790804 fix DAEMON_SLEEP_INTERVAL not being defined when used
enforce minimum 60 sec spawn/sleep interval in update processes
8 years ago
Andrew Dolgov e6c886bf66 wrap rssfuncs into rssutils class 8 years ago