1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-28 18:40:15 +02:00

[PepperBridge] fix and discussion (#2383)

* [PepperBridge] Fix some Notice for expired items

Some expired iteams are not identical to normal items for the title and
URI, so they got a special handling to remove PHP Notice.

The "most commented" sorting option was removed and show now some forum.
So it was removed.

With DealabsBridge, MydealsBridge and HotUKDealsBridge, you can monitor
a discussion for new comments, excluding or not post without URL
This commit is contained in:
sysadminstory
2022-01-10 11:46:26 +01:00
committed by GitHub
parent 590fdd9f9b
commit 368a198321
3 changed files with 282 additions and 22 deletions

View File

@@ -3243,11 +3243,27 @@ class HotUKDealsBridge extends PepperBridgeAbstract {
'title' => 'Sort order of deals',
'values' => array(
'From the most to the least hot deal' => '-hot',
'From the most recent deal to the oldest' => '',
'From the most commented deal to the least commented deal' => '-discussed'
'From the most recent deal to the oldest' => '-new',
)
)
)
),
'Discussion Monitoring' => array(
'url' => array(
'name' => 'Discussion URL',
'type' => 'text',
'required' => true,
'title' => 'Discussion URL to monitor. Ex: https://www.hotukdeals.com/discussions/the-hukd-lego-thread-3599357',
'exampleValue' => 'https://www.hotukdeals.com/discussions/the-hukd-lego-thread-3599357',
),
'only_with_url' => array(
'name' => 'Exclude comments without URL',
'type' => 'checkbox',
'title' => 'Exclude comments that does not contains URL in the feed',
'defaultValue' => false,
)
)
);
public $lang = array(
@@ -3255,8 +3271,10 @@ class HotUKDealsBridge extends PepperBridgeAbstract {
'bridge-name' => SELF::NAME,
'context-keyword' => 'Search by keyword(s))',
'context-group' => 'Deals per group',
'context-talk' => 'Discussion Monitoring',
'uri-group' => 'tag/',
'request-error' => 'Could not request HotUKDeals',
'thread-error' => 'Unable to determine the thread ID. Check the URL you entered',
'no-results' => 'Ooops, looks like we could',
'relative-date-indicator' => array(
'ago',
@@ -3267,6 +3285,7 @@ class HotUKDealsBridge extends PepperBridgeAbstract {
'discount' => 'Discount',
'title-keyword' => 'Search',
'title-group' => 'Group',
'title-talk' => 'Discussion Monitoring',
'local-months' => array(
'Jan',
'Feb',