Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57d39a6bb1 | ||
|
|
f2f8baa6b1 |
No files matched your search
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.10.3] - 2023-07-24
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support for saved playlists. By adding a playlist from a youtube channel to your Invidious profile, you can see the playlist on Playlet.
|
||||||
|
|
||||||
## [0.10.2] - 2023-07-10
|
## [0.10.2] - 2023-07-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.10.2",
|
"version": "0.10.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.10.2",
|
"version": "0.10.3",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bslib": "npm:@rokucommunity/bslib@^0.1.1",
|
"bslib": "npm:@rokucommunity/bslib@^0.1.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.10.2",
|
"version": "0.10.3",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bslib": "npm:@rokucommunity/bslib@^0.1.1",
|
"bslib": "npm:@rokucommunity/bslib@^0.1.1",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title=PlayletLib
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=10
|
minor_version=10
|
||||||
build_version=00002
|
build_version=00003
|
||||||
|
|
||||||
sg_component_libs_provided=PlayletLib
|
sg_component_libs_provided=PlayletLib
|
||||||
hidden=1
|
hidden=1
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ namespace Invidious
|
|||||||
const STATS_ENDPOINT = "/api/v1/stats"
|
const STATS_ENDPOINT = "/api/v1/stats"
|
||||||
|
|
||||||
const VIDEOS_ENDPOINT = "/api/v1/videos"
|
const VIDEOS_ENDPOINT = "/api/v1/videos"
|
||||||
|
const PLAYLISTS_ENDPOINT = "/api/v1/playlists"
|
||||||
const HISTORY_ENDPOINT = "/api/v1/auth/history"
|
const HISTORY_ENDPOINT = "/api/v1/auth/history"
|
||||||
|
|
||||||
const SEARCH_SUGGEST_ENDPOINT = "/api/v1/search/suggestions"
|
const SEARCH_SUGGEST_ENDPOINT = "/api/v1/search/suggestions"
|
||||||
@@ -80,6 +81,18 @@ namespace Invidious
|
|||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function GetPlaylist(playlistId as string) as object
|
||||||
|
instance = InvidiousSettings.GetCurrentInstance()
|
||||||
|
url = `${instance}${Invidious.PLAYLISTS_ENDPOINT}/${playlistId}`
|
||||||
|
|
||||||
|
args = Invidious.DefaultArgs()
|
||||||
|
response = Requests().get(url, args)
|
||||||
|
if not response.ok
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
return response.json
|
||||||
|
end function
|
||||||
|
|
||||||
function MarkVideoWatched(videoId as string) as boolean
|
function MarkVideoWatched(videoId as string) as boolean
|
||||||
authToken = InvidiousSettings.GetAuthToken()
|
authToken = InvidiousSettings.GetAuthToken()
|
||||||
if authToken = invalid
|
if authToken = invalid
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import "pkg:/source/utils/RegistryUtils.bs"
|
|||||||
import "pkg:/source/utils/General.bs"
|
import "pkg:/source/utils/General.bs"
|
||||||
import "pkg:/source/utils/Crypto.bs"
|
import "pkg:/source/utils/Crypto.bs"
|
||||||
import "pkg:/source/services/InvidiousSettings.bs"
|
import "pkg:/source/services/InvidiousSettings.bs"
|
||||||
|
import "pkg:/source/services/Invidious.bs"
|
||||||
|
|
||||||
class InvidiousService
|
class InvidiousService
|
||||||
private endpoints
|
private endpoints
|
||||||
@@ -118,7 +119,14 @@ class InvidiousService
|
|||||||
playlists = response.json
|
playlists = response.json
|
||||||
result = []
|
result = []
|
||||||
for each playlist in playlists
|
for each playlist in playlists
|
||||||
result.push(m.ProcessPlaylist(requestData, playlist))
|
' Saved playlists are not included in the response
|
||||||
|
' https://github.com/iv-org/invidious/issues/3995
|
||||||
|
if playlist.videos.count() = 0 and playlist.authorId = invalid and not playlist.playlistId.StartsWith("IV")
|
||||||
|
playlist = Invidious.GetPlaylist(playlist.playlistId)
|
||||||
|
end if
|
||||||
|
if playlist <> invalid
|
||||||
|
result.push(m.ProcessPlaylist(requestData, playlist))
|
||||||
|
end if
|
||||||
end for
|
end for
|
||||||
return result
|
return result
|
||||||
end if
|
end if
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.10.2",
|
"version": "0.10.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.10.2",
|
"version": "0.10.3",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
||||||
"@tailwindcss/typography": "^0.5.9",
|
"@tailwindcss/typography": "^0.5.9",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.10.2",
|
"version": "0.10.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title=Playlet
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=10
|
minor_version=10
|
||||||
build_version=00002
|
build_version=00003
|
||||||
|
|
||||||
## Channel Assets
|
## Channel Assets
|
||||||
### Main Menu Icons / Channel Poster Artwork
|
### Main Menu Icons / Channel Poster Artwork
|
||||||
|
|||||||
Reference in new issue
Block a user