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

Use poster.jpg file as the poster image if available. #558

Merged
merged 1 commit into from
May 22, 2016
Merged

Use poster.jpg file as the poster image if available. #558

merged 1 commit into from
May 22, 2016

Conversation

bnjmnt4n
Copy link
Member

Closes #501.

// First, try to use the largest video file
// First, try to use a poster image if available.
var posterFile = torrent.files.filter(function (file) {
return file.name === 'poster.jpg'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too sure if this should accept different image formats?

@dcposch
Copy link
Contributor

dcposch commented May 21, 2016

Otherwise LGTM. thanks!

@grunjol
Copy link
Contributor

grunjol commented May 22, 2016

LGTM too with the png/gif/jpg change.

@dcposch dcposch merged commit b22c228 into webtorrent:master May 22, 2016
@bnjmnt4n bnjmnt4n deleted the poster-image branch May 22, 2016 09:31
@feross
Copy link
Member

feross commented May 23, 2016

LGTM

mathiasvr pushed a commit to mathiasvr/webtorrent-desktop that referenced this pull request May 26, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants