chibicitiberiu / ytsm

Self-hosted tool which manages your YouTube subscriptions, and downloads files automatically.
MIT License
316 stars 19 forks source link

FR: Rss for latest videos #34

Open gerroon opened 5 years ago

gerroon commented 5 years ago

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 :(

chibicitiberiu commented 5 years ago

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.

gerroon commented 5 years ago

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

chibicitiberiu commented 5 years ago

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

gerroon commented 5 years ago

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 ?

chibicitiberiu commented 5 years ago

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 <notifications@github.com 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 .

gerroon commented 5 years ago

Yeah my subs can total over 500 easily probably

chibicitiberiu commented 5 years ago

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.

gerroon commented 5 years ago

Thanks for considering it, I love it already!

gerroon commented 5 years ago

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

chibicitiberiu commented 5 years ago

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 <notifications@github.com 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 .

gerroon commented 5 years ago

Ok I will try the txt method

gerroon commented 5 years ago

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

chibicitiberiu commented 5 years ago

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