-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[StoriesIGBridge] New bridge #1187
Conversation
Finally checks passed... sorry for the commit mess 😅 |
$item['uri'] = $result->find('div.download', 0)->find('a', 0)->href; | ||
$item['author'] = $this->getInput('username'); | ||
$item['uid'] = $result->find('time', 0)->datetime; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should set a timestamp for each item or the current time and date is used.
$item['timestamp'] = strtotime($result->find('time', 0)->datetime);
$this->items[] = $item; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using getName
to set a custom title for each feed instead of always using the bridge name.
public function getName() {
if (!is_null($this->getInput('username'))) {
return $this->getInput('username') . ' - ' . self::NAME;
}
return parent::getName();
}
Thanks for the PR! |
This bridge uses a third-party service (https://storiesig.com) so it's probably best to keep the two separate. |
I see, thanks for the clarification. You are right, it should be kept separated. |
* Create StoriesIGBridge.php
Here is a new bridge to display Instagram stories based on https://storiesig.com service.
You can try with this user for instance : raspberrypifoundation
This can solve #694 #1056 #665