ytsm icon indicating copy to clipboard operation
ytsm copied to clipboard

FR: Rss for latest videos

Open gerroon opened this issue 7 years ago • 13 comments

Hi

It would be nice if Ytsm provides constructed Rss feeds for the most recent videos of the channels with playable videos. So I can subscribe top my own instance to see the latest vidoes without opening the web viw. The web view mosytly irrelevant now outside of subscribing and organizing, since one cant play videos in there at the moment, and it is a bit of heavy page, I cant keep it open more than 5 min on my laptop, turns my browser into a slug :(

gerroon avatar Nov 06 '18 01:11 gerroon

Soon, the web view will have the possibility of viewing the videos, there is a feature related to this. The only reason the web view could be heavy is because pagination is not yet implemented. Other than that, I can assure you that it's very lightweight, it only uses jquery and bootstrap as dependencies (and jstree for the tree view).

YouTube already has RSS feeds, both for channels and playlists. So what exactly should the RSS feed contain? Please try to be as detailed as possible.

chibicitiberiu avatar Nov 07 '18 10:11 chibicitiberiu

The RSS feed will be created and offered by Ytsm and will contain the names of either downloaded videos or recent videos, and will provide link to playable videos, also will include thumbnails of the videos.

The reason I am asking for RSS by Ytsm instead of Youtube is that so that the user does not maintain separate lists like that. Ytsm is already grabbing videos and all that so why not rely on Youtube one more time instead of directly getting all that from my own manager. The whole reason one is using Ytsm to replace Google stuff and create central place for this on her own server.

Another reason is that I cant get thumbnails with youtube rss, at least the apps I used did not, like TinyTInyRss.

Btw the page load is insanely slow I cant keep my Firefox open more than 5 seconds after opening Ytsm, so if I can add a subscription in that first 5 sec I am good, if not I have to kill it and restart Firefox. thanks

gerroon avatar Nov 07 '18 16:11 gerroon

Okay, thank you.

Related to the second issue, do you have a large number of videos? I think the problem is the lack of pagination, which means it's trying to pull all the videos in the database

chibicitiberiu avatar Nov 07 '18 16:11 chibicitiberiu

I am not sure what you would call large number of videos? Is there a way to count that without counting all that in the interface ?

gerroon avatar Nov 07 '18 16:11 gerroon

In the home page, it loads all the videos from all the subscriptions, until you click on a subscription and it only shows the videos in that subscription. If you have 10 subs, with 50-100 videos each, that results in over 500 videos which are all shown. That's why most websites limit pagination to maximum 200 items per page, because it really slows the browser down.

I'll put a higher priority for that task, multiple people have reported it.

On Wed, Nov 7, 2018, 18:21 gerroon <[email protected] wrote:

I am not sure what you would call large number of videos? Is there a way to count that without counting all that in the interface ?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/chibicitiberiu/ytsm/issues/34#issuecomment-436682574, or mute the thread https://github.com/notifications/unsubscribe-auth/AE8dkYeS5eFAEP9PbY_K9ZzDjTV7mblAks5uswh4gaJpZM4YPlYw .

chibicitiberiu avatar Nov 07 '18 16:11 chibicitiberiu

Yeah my subs can total over 500 easily probably

gerroon avatar Nov 07 '18 16:11 gerroon

Ok, that's probably the problem. I actually managed to crash firefox by importing all my subs from YouTube, which was around 10k videos. I definitely need to implement pagination.

chibicitiberiu avatar Nov 07 '18 16:11 chibicitiberiu

Thanks for considering it, I love it already!

gerroon avatar Nov 07 '18 16:11 gerroon

Btw is there a way to add subscriptions from the command line?

gerroon avatar Nov 07 '18 16:11 gerroon

No problem. From command line, no, but you can make a list in a plain text file, and then import the file.

On Wed, Nov 7, 2018, 18:59 gerroon <[email protected] wrote:

Btw is there a way to add subscriptions from the command line?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/chibicitiberiu/ytsm/issues/34#issuecomment-436697253, or mute the thread https://github.com/notifications/unsubscribe-auth/AE8dkYiW-uWIT98tVmBHz32jxuLtSmrWks5usxFagaJpZM4YPlYw .

chibicitiberiu avatar Nov 07 '18 17:11 chibicitiberiu

Ok I will try the txt method

gerroon avatar Nov 07 '18 17:11 gerroon

Any word on pagination thing? It is impossibe to use it atm :(

gerroon avatar Dec 03 '18 18:12 gerroon

I just implemented it. Check out PR #42. Will merge it in a day or so.

chibicitiberiu avatar Dec 04 '18 00:12 chibicitiberiu