Bookmarks (#153)

* Empty bookmarks screen

* Bookmarks object

* Long press support

* Lint fix

* Context menu v1

* A working context menu

* Basic bookmarks in context menu

* Use a root content node for bookmarks

* context menu animation

* small tweak

* move logger around, adjust animation

* Lint fix

* Restore logger fix

* Cache channel info

* Bookmarks v1

* Added comment

* Adjust "popular" feed error handling

* Progress with bookmarks

* Add todo

* add todo

* handle roDateTime logging

* logger adjustment

* Use yaml for api and layout

* rename requestData to feedSource

* Restructure things

* Lint fix

* remove comment

* introduce feedSource id

* small cleanup

* playlist context menu

* Context menu for the channel view

* changelog

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-10-19 19:16:27 -04:00
1 parent 620a8a6e2b
commit c740d5e0a0
63 files changed
+1889 -510

No files matched your search

@@ -1,64 +0,0 @@
[
{
title: "Subscriptions",
apiType: "Invidious",
endpoint: "auth_feed",
},
{
title: "Trending",
apiType: "Invidious",
endpoint: "trending",
},
{
title: "Trending - Music",
apiType: "Invidious",
endpoint: "trending",
queryParams: {
type: "Music",
},
},
{
title: "Trending - Gaming",
apiType: "Invidious",
endpoint: "trending",
queryParams: {
type: "Gaming",
},
},
{
title: "Trending - Movies",
apiType: "Invidious",
endpoint: "trending",
queryParams: {
type: "Movies",
},
},
{
title: "Popular",
apiType: "Invidious",
endpoint: "popular",
},
{
title: "Funny",
apiType: "Invidious",
endpoint: "search",
queryParams: {
q: "Funny",
sort_by: "upload_date",
},
},
{
title: "News",
apiType: "Invidious",
endpoint: "search",
queryParams: {
q: "News",
sort_by: "upload_date",
},
},
{
title: "Playlists",
apiType: "Invidious",
endpoint: "playlists",
},
]
@@ -0,0 +1,74 @@
- title: Subscriptions
feedSources:
- id: inv_auth_feed
title: Subscriptions
apiType: Invidious
endpoint: auth_feed
- title: Trending
feedSources:
- id: inv_trending
title: Trending
apiType: Invidious
endpoint: trending
- title: Trending - Music
feedSources:
- id: inv_trending_music
title: Trending - Music
apiType: Invidious
endpoint: trending
queryParams:
type: Music
- title: Trending - Gaming
feedSources:
- id: inv_trending_gaming
title: Trending - Gaming
apiType: Invidious
endpoint: trending
queryParams:
type: Gaming
- title: Trending - Movies
feedSources:
- id: inv_trending_movies
title: Trending - Movies
apiType: Invidious
endpoint: trending
queryParams:
type: Movies
- title: Popular
feedSources:
- id: inv_popular
title: Popular
apiType: Invidious
endpoint: popular
- title: Funny
feedSources:
- id: inv_search_funny
title: Search - Funny
apiType: Invidious
endpoint: search
queryParams:
q: Funny
sort_by: upload_date
- title: News
feedSources:
- id: inv_search_news
title: Search - News
apiType: Invidious
endpoint: search
queryParams:
q: News
sort_by: upload_date
- title: Playlists
feedSources:
- id: inv_auth_playlists
title: Playlists
apiType: Invidious
endpoint: auth_playlists
@@ -1,195 +0,0 @@
{
endpoints: [
{
name: "trending",
displayName: "Trending",
url: "/api/v1/trending",
queryParams: {
type: {
required: false,
type: ["Music", "Gaming", "Movies"],
},
region: {
required: false,
type: "#ISO3166",
default: "GetUserCountryCode",
},
fields: {
required: false,
type: [],
arrayType: "comma-separated",
default: [
"title",
"videoId",
"videoThumbnails",
"lengthSeconds",
"viewCount",
"author",
"publishedText",
"liveNow",
"isUpcoming",
"premiereTimestamp",
],
},
},
cacheSeconds: 21600, // 6 hours
},
{
name: "popular",
displayName: "Popular",
url: "/api/v1/popular",
queryParams: {
fields: {
required: false,
type: [],
arrayType: "comma-separated",
default: [
"title",
"videoId",
"videoThumbnails",
"lengthSeconds",
"viewCount",
"author",
"publishedText",
"liveNow",
"isUpcoming",
"premiereTimestamp",
],
},
},
},
{
name: "search",
displayName: "Search",
url: "/api/v1/search",
paginationType: "Pages",
queryParams: {
q: {
required: true,
type: "string",
},
sort_by: {
required: false,
type: ["relevance", "rating", "upload_date", "view_count"],
},
date: {
required: false,
type: ["hour", "today", "week", "month", "year"],
},
duration: {
required: false,
type: ["short", "long"],
},
type: {
required: false,
type: ["video", "playlist", "channel", "all"],
arrayType: "comma-separated",
default: ["video", "playlist", "channel"],
},
features: {
required: false,
type: [
"hd",
"subtitles",
"creative_commons",
"3d",
"live",
"purchased",
"4k",
"360",
"location",
"hdr",
],
},
region: {
required: false,
type: "#ISO3166",
default: "GetUserCountryCode",
},
},
cacheSeconds: 900, // 15 minutes
},
{
name: "auth_feed",
displayName: "User Feed",
url: "/api/v1/auth/feed",
authenticated: true,
responseHandler: "AuthFeedHandler",
queryParams: {
max_results: {
required: false,
type: "number",
default: 20,
},
},
paginationType: "Pages",
},
{
name: "playlists",
displayName: "Playlists",
url: "/api/v1/auth/playlists",
authenticated: true,
},
{
name: "playlist",
displayName: "Playlist",
url: "/api/v1/playlists/{plid}",
responseHandler: "PlaylistHandler",
paginationType: "Pages",
},
{
name: "channel_videos",
displayName: "Channel videos",
url: "/api/v1/channels/{ucid}/videos",
responseHandler: "ChannelVideosHandler",
paginationType: "Continuation",
queryParams: {
sort_by: {
required: false,
type: ["newest", "oldest", "popular"],
},
},
},
{
name: "channel_playlists",
displayName: "Channel playlists",
url: "/api/v1/channels/{ucid}/playlists",
responseHandler: "ChannelPlaylistsHandler",
paginationType: "Continuation",
queryParams: {
sort_by: {
required: false,
type: ["newest", "oldest", "last"],
},
},
},
{
name: "channel_shorts",
displayName: "Channel shorts",
url: "/api/v1/channels/{ucid}/shorts",
responseHandler: "ChannelVideosHandler",
paginationType: "Continuation",
},
{
name: "channel_streams",
displayName: "Channel livestreams",
url: "/api/v1/channels/{ucid}/streams",
responseHandler: "ChannelVideosHandler",
paginationType: "Continuation",
},
{
name: "channel_podcasts",
displayName: "Channel podcasts",
url: "/api/v1/channels/{ucid}/podcasts",
responseHandler: "ChannelPlaylistsHandler",
paginationType: "Continuation",
},
{
name: "channel_channels",
displayName: "Related channels",
url: "/api/v1/channels/{ucid}/channels",
responseHandler: "ChannelRelatedChannelsHandler",
paginationType: "Continuation",
},
],
}
@@ -0,0 +1,195 @@
trending:
title: Trending
url: /api/v1/trending
cacheSeconds: 21600 # 6 hours
queryParams:
type:
type:
- Music
- Gaming
- Movies
region:
type: "#ISO3166"
default: GetUserCountryCode
fields:
type: []
arrayType: "comma-separated"
default:
- title
- videoId
- videoThumbnails
- lengthSeconds
- viewCount
- author
- authorId
- publishedText
- liveNow
- isUpcoming
- premiereTimestamp
popular:
title: Popular
url: /api/v1/popular
queryParams:
fields:
type: []
arrayType: "comma-separated"
default:
- title
- videoId
- videoThumbnails
- lengthSeconds
- viewCount
- author
- authorId
- publishedText
- liveNow
- isUpcoming
- premiereTimestamp
search:
title: Search
url: /api/v1/search
paginationType: Pages
queryParams:
q:
type: string
sort_by:
type:
- relevance
- rating
- upload_date
- view_count
date:
type:
- hour
- today
- week
- month
- year
duration:
type:
- short
- long
type:
type:
- video
- playlist
- channel
- all
arrayType: comma-separated
default:
- video
- playlist
- channel
features:
type:
- hd
- subtitles
- creative_commons
- 3d
- live
- purchased
- 4k
- 360
- location
- hdr
arrayType: comma-separated
region:
type: "#ISO3166"
default: GetUserCountryCode
cacheSeconds: 900 # 15 minutes
# Auth endpoints
auth_feed:
title: Subscriptions
url: /api/v1/auth/feed
authenticated: true
queryParams:
max_results:
type: number
default: 20
paginationType: Pages
responseHandler: AuthFeedHandler
auth_playlists:
title: Playlists
url: /api/v1/auth/playlists
authenticated: true
playlist:
title: Playlist
url: /api/v1/playlists/{plid}
responseHandler: PlaylistHandler
paginationType: Pages
# video_info, playlist_info and channel_info are used by the
# Bookmarks, so they are cached for longer
video_info:
title: Video
url: /api/v1/videos/{id}
responseHandler: VideoInfoHandler
cacheSeconds: 259200 # 3 days
playlist_info:
title: Playlist
url: /api/v1/playlists/{plid}
responseHandler: PlaylistInfoHandler
cacheSeconds: 259200 # 3 days
channel_info:
title: Channel
url: /api/v1/channels/{ucid}
responseHandler: ChannelInfoHandler
cacheSeconds: 259200 # 3 days
# Channel endpoints
channel_videos:
title: Channel videos
url: /api/v1/channels/{ucid}/videos
responseHandler: ChannelVideosHandler
paginationType: Continuation
queryParams:
sort_by:
# defaults to newest
type:
- newest
- oldest
- popular
channel_playlists:
title: Channel playlists
url: /api/v1/channels/{ucid}/playlists
responseHandler: ChannelPlaylistsHandler
paginationType: Continuation
queryParams:
sort_by:
required: false
type:
- newest
- oldest
- last
channel_shorts:
title: Channel shorts
url: /api/v1/channels/{ucid}/shorts
responseHandler: ChannelVideosHandler
paginationType: Continuation
channel_streams:
title: Channel streams
url: /api/v1/channels/{ucid}/streams
responseHandler: ChannelVideosHandler
paginationType: Continuation
channel_podcasts:
title: Channel podcasts
url: /api/v1/channels/{ucid}/podcasts
responseHandler: ChannelPlaylistsHandler
paginationType: Continuation
channel_channels:
title: Related channels
url: /api/v1/channels/{ucid}/channels
responseHandler: ChannelRelatedChannelsHandler
paginationType: Continuation