Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Display video duration #159

Open
ghost opened this issue Dec 6, 2020 · 5 comments
Open

Display video duration #159

ghost opened this issue Dec 6, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request feature request Request a feature for Yotter youtube Youtube-related issue
Milestone

Comments

@ghost
Copy link

ghost commented Dec 6, 2020

Sorry if this sounds like a silly question, but I couldn't find it in any video on the search page. I also couldn't find a setting to activate this on the public instances.

11

@ghost ghost added the feature request Request a feature for Yotter label Dec 6, 2020
@pluja
Copy link
Member

pluja commented Dec 7, 2020

I'll take a look to see if this could be added on the search page, but on the youtube feed can't be added as we use RSS feed which does not contain such information.

I want to make an update an start using PubHubSubbub (#126) which I think would solve this.

@FireMasterK
Copy link
Member

I want to make an update an start using PubHubSubbub (#126) which I think would solve this.

Unfortunately, it does not solve the problem, the example response I provided does not contain the duration either.

It should be possible to display this on the search page.

However, for the feed page, a different approach must be used as such details are not provided.

I've thought about handling this in my project like this:

  • Have a database/table for feed videos
  • When you receive a message through PubHubSubbub, fetch the video details (everything you need to display them in the feed)
  • When you need to display them in the feed, just query the database instead of requesting data from YouTube.
  • Automatically prune old videos. (Important to not blow the database up)

@pluja
Copy link
Member

pluja commented Dec 7, 2020

I see. I think that maybe the duration info is not such a relevant info to have on the feed as you can already access the video itself and see it. Plus usually you choose the videos that interest you the most from the feed regardless of the duration. Well, at least this is my own case. So I think that it's not worth the effort, if we find an easy and convenient solution I will implement it. However, for now, I will not work on this...

As always, if anyone wants to take this and work on it go ahead! :D

@ghost
Copy link
Author

ghost commented Dec 7, 2020

i think the most important place to display this information is really the search page. this would already be a big improvement.

Plus usually you choose the videos that interest you the most from the feed regardless of the duration.

Well, there is not always time available to watch a large video, so I think this information is something important.

@pluja
Copy link
Member

pluja commented Dec 7, 2020

I'll work on it for the search page! :D

@pluja pluja added enhancement New feature or request youtube Youtube-related issue labels Dec 7, 2020
@pluja pluja self-assigned this Dec 7, 2020
@pluja pluja added this to the MVP milestone Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feature request Request a feature for Yotter youtube Youtube-related issue
Projects
None yet
Development

No branches or pull requests

2 participants