FreshRSS icon indicating copy to clipboard operation
FreshRSS copied to clipboard

Add ability to filter for video/content duration [Feature]

Open Venkman42 opened this issue 1 year ago • 10 comments

Hi there, it would be great if there was an option to filter YouTube Videofeeds by Video duration.

In FeedMe Reader on Android, when switched to podcast view, the duration is being displayed, so the information should be there i guess

Venkman42 avatar May 25 '24 16:05 Venkman42

See https://github.com/FreshRSS/Extensions/issues/234 https://github.com/cn-tools/cntools_FreshRssExtensions

Alkarex avatar May 25 '24 19:05 Alkarex

I added a new feature, so you can filter out videos by duration. It's a first version so check out the branch YT-shorts and give me a feedback, please.

After that i will merge it into the master branch

cn-tools avatar May 31 '24 06:05 cn-tools

I imported it and enabled it, but I can't switch it from "standard" to "block" in the extension settings. I mean I can, but it doesn't get saved and there is no save button

Venkman42 avatar May 31 '24 09:05 Venkman42

@Venkman42 could you post a screenshot of the settings page of this extension please

i tried it a few seconds ago, i have a save button and my settings are saved right

cn-tools avatar May 31 '24 11:05 cn-tools

@cn-tools Sure. I took it from my phone in desktop mode, but it looks the same on my laptop. I also tried restarting FreshRSS and using another skin, but no difference

Screenshot_20240531_131942_Brave

Venkman42 avatar May 31 '24 11:05 Venkman42

I also can't enter anything in the duration in seconds field

Venkman42 avatar May 31 '24 11:05 Venkman42

sh*t ... sorry, but i can reproduce it ... give me a few hours

cn-tools avatar May 31 '24 11:05 cn-tools

@Venkman42 update the extension to the latest version from this branch please

i'm waiting for your feedback

cn-tools avatar May 31 '24 13:05 cn-tools

@cn-tools okay, now I can enter seconds and save. I set it to "block" and the duration to 300 seconds, but shorts are still being displayed in my feeds after updating them. I also tried adding a new Channel, but shorts were still being displayed

Here another screenshot Screenshot_20240531_182504_Brave

Venkman42 avatar May 31 '24 16:05 Venkman42

you need a URL to an active instance of youtube-operational-api too. Without this third-party-software it's not able to detect shorts and i haven't the duration of the video.

You can host your own instance of it or maybe the owner of youtube-operational-api provide an instance. Please look on there website.

cn-tools avatar May 31 '24 17:05 cn-tools