Skip to content

add YoutubeProvider#35

Open
KaifTaufiq wants to merge 4 commits intorecloudstream:masterfrom
KaifTaufiq:master
Open

add YoutubeProvider#35
KaifTaufiq wants to merge 4 commits intorecloudstream:masterfrom
KaifTaufiq:master

Conversation

@KaifTaufiq
Copy link

@KaifTaufiq KaifTaufiq commented Feb 13, 2026

bumps gradle plugin version from 2.1.0 to 2.3.0
Adds Youtube Provider

1, we can delete/ disable invidios app api's are locked
2, will implement channel, playlist as TvSeries Later
4, login and personalisation to be done later
3, rest all other functionality works fine

@KaifTaufiq
Copy link
Author

1659
Is there a possibility to handle either click or long press of Actor?
Since i show channel name and profile picture
Can i do like on click open channel page

Copy link
Contributor

@fire-light42 fire-light42 left a comment

Choose a reason for hiding this comment

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

Looks good but needs a few minor fixes 👍

)
}

private fun extractVideoId(url: String): String? {
Copy link
Contributor

Choose a reason for hiding this comment

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

The Youtube extractor already has this logic, but much better support for various links.
I suggest you remove extractVideoId and let the extractor handle the ID logic.

return newHomePageResponse(
listOf(
HomePageList(
request.name.ifEmpty { "Trending" },
Copy link
Contributor

Choose a reason for hiding this comment

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

This isEmpty should never be true, you can remove it.


extractor.forceContentCountry(ContentCountry(Locale.getDefault().country))

val pageData = if (page == 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a comment explaining the 'linked list logic' briefly. It is good practice to make it easy to maintain.

Something like: "To fetch the next page we must have a reference to the current page. To do that we store a cache of the current page." would work well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants