zzmaster
Forum Replies Created
-
Warnings when saving feed settings.
И еще нашелся баг – Full text extractor URL невозмоно изменить. Плагин печатает
Full article extrator path Updated
Link to source Updatedоднако урл остается прежним.
I saw you answered in russian here before, so I write russian – it’s ok?
И еще момент – если задано получение full content, то плагин запрашивает через fivefilters те урлы, которые уже сохранены на сайте. То есть, если не было новых items в фиде, то все старые будут запрошены функцией csyn_file_get_contents чеез fivefilters. Так и забаниться на сайте-доноре не долго..
yes, shutdown event isn’t fine for cronjobs, but we can tune it:
set_option('syndicating_started_at', time()); if (get_option('syndicating_started_at')+300<time()) syndicate_again();why not?
And can I somehow get source URL for syndicating post? It would be quit at least polite to place backlink and many sites dont allow republish content without it.
Hello, I’ve dived a bit into the code. This hooked to shutdown.
function csyn_update_feeds() { global $csyn_syndicator; $feed_cnt = count($csyn_syndicator->feeds); if ($feed_cnt > 0) { $feed_ids = range(0, $feed_cnt - 1); $csyn_syndicator->show_report = false; $csyn_syndicator->syndicateFeeds($feed_ids, true); } }Doesn’t it mean that syndicating process could be start parallely if we have 2 request in one second? Or 10 (yes, google bot can)?
I have a suggestion – names of image files, downloaded, derive from images’ titles. This produces very long file names. I think it’ll be better to make image name as md5 or even crc32 of image URL.
Oh, that’s very operationally, thank you!
OK, I took a feed with enclosures, this one http://pravosudija.net/new-articles.xml
and again –0 posts were added
since
$this->post['media_thumbnail'][0]in line 1336 is empty.I worked around by adding
$this->post['media_thumbnail'][0] =
before
$this->post['media_thumbnail'][$i]
in line 1306 but this creates parasite dependence from insert_media_attachments option.Waiting for correct solution…
Hello! I figured out why 0 posts added. Actually they added but later were deleted at line 1422 (or about, I inserted and removed debug prints) since post has no thumbnail for example feed url http://pravosudija.net/blog.xml which has no media attachment. I changed “Post thumbnail” to Generate from 1st image, and it works. It would be nice to have an option
“Generate thumbnail from attachment or first image”.