Skip to content
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

Merged
merged 4 commits into from
Sep 7, 2019
Merged

Conversation

AntoineTurmel
Copy link
Contributor

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

@AntoineTurmel
Copy link
Contributor Author

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;

Copy link
Contributor

@VerifiedJoseph VerifiedJoseph Jun 25, 2019

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;
}
}

Copy link
Contributor

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();
}

@logmanoriginal
Copy link
Contributor

Thanks for the PR!
Should this be added to the existing Instagram Bridge or is it a separate service?

@VerifiedJoseph
Copy link
Contributor

This bridge uses a third-party service (https://storiesig.com) so it's probably best to keep the two separate.

@logmanoriginal
Copy link
Contributor

I see, thanks for the clarification. You are right, it should be kept separated.

@teromene teromene merged commit dd5da99 into RSS-Bridge:master Sep 7, 2019
infominer33 pushed a commit to web-work-tools/rss-bridge that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants