Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fddd40ff3 | ||
|
|
b489735af9 | ||
|
|
508306c6f4 | ||
|
|
7818f778ea | ||
|
|
6abd18ab85 | ||
|
|
e8fd7ee35d | ||
|
|
deeed05383 | ||
|
|
518409cb3f | ||
|
|
a9d7de971b | ||
|
|
324543684d | ||
|
|
a6f8cb59ee | ||
|
|
e2822baac1 | ||
|
|
256fc22bd9 | ||
|
|
cb877f9415 | ||
|
|
acce520752 | ||
|
|
5d81f025ad | ||
|
|
c5680f7b06 | ||
|
|
dab6dc5bc4 | ||
|
|
e2df0b524a |
No files matched your search
@@ -5,6 +5,37 @@ 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.13.1] - 2023-10-08
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support to pause/play while picture-in-picture
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- (potentionally) a bug where many dialogs could cause an execution timeout
|
||||||
|
- Mutltiple rare crashes when component content is set before component initialization
|
||||||
|
- Error dialog for loading "Popular" when "Popular" is disabled
|
||||||
|
|
||||||
|
## [0.13.0] - 2023-10-02
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Playlists, streams, podcasts and related channels to Channel UI
|
||||||
|
- Pagination supported
|
||||||
|
- Channels show up in web app (but no UI for channel details yet)
|
||||||
|
- Support for `Etag` header on the web server to improve performance with caching
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Another bug where the app crashes if an error happens loading channel info
|
||||||
|
- Issue with default instance (by changing default instance)
|
||||||
|
- Cropped text in a couple of buttons
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- Partial content (`Range` header) from the web server, since we never serve very big files
|
||||||
|
|
||||||
## [0.12.1] - 2023-09-19
|
## [0.12.1] - 2023-09-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
"source/**",
|
"source/**",
|
||||||
"components/**",
|
"components/**",
|
||||||
"images/**",
|
"images/**",
|
||||||
"!images/vector/**",
|
"!**/*.svg",
|
||||||
|
"!**/*.svg.meta.json5",
|
||||||
"fonts/**",
|
"fonts/**",
|
||||||
"config/**",
|
"config/**",
|
||||||
"lib/**",
|
"lib/**",
|
||||||
@@ -48,7 +49,8 @@
|
|||||||
"../tools/bs-plugins/track-transpiled-plugin.ts",
|
"../tools/bs-plugins/track-transpiled-plugin.ts",
|
||||||
"../tools/bs-plugins/json-yaml-plugin.ts",
|
"../tools/bs-plugins/json-yaml-plugin.ts",
|
||||||
"../tools/bs-plugins/validation-plugin.ts",
|
"../tools/bs-plugins/validation-plugin.ts",
|
||||||
"../tools/bs-plugins/logger-plugin.ts"
|
"../tools/bs-plugins/logger-plugin.ts",
|
||||||
|
"../tools/bs-plugins/image-gen-plugin.ts"
|
||||||
],
|
],
|
||||||
"retainStagingDir": true,
|
"retainStagingDir": true,
|
||||||
"require": [
|
"require": [
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
"source/**",
|
"source/**",
|
||||||
"components/**",
|
"components/**",
|
||||||
"images/**",
|
"images/**",
|
||||||
"!images/vector/**",
|
"!**/*.svg",
|
||||||
|
"!**/*.svg.meta.json5",
|
||||||
"fonts/**",
|
"fonts/**",
|
||||||
"config/**",
|
"config/**",
|
||||||
"lib/**",
|
"lib/**",
|
||||||
@@ -24,7 +25,8 @@
|
|||||||
"../tools/bs-plugins/track-transpiled-plugin.ts",
|
"../tools/bs-plugins/track-transpiled-plugin.ts",
|
||||||
"../tools/bs-plugins/json-yaml-plugin.ts",
|
"../tools/bs-plugins/json-yaml-plugin.ts",
|
||||||
"../tools/bs-plugins/validation-plugin.ts",
|
"../tools/bs-plugins/validation-plugin.ts",
|
||||||
"../tools/bs-plugins/logger-plugin.ts"
|
"../tools/bs-plugins/logger-plugin.ts",
|
||||||
|
"../tools/bs-plugins/image-gen-plugin.ts"
|
||||||
],
|
],
|
||||||
"rooibos": {
|
"rooibos": {
|
||||||
"logLevel": 2,
|
"logLevel": 2,
|
||||||
|
|||||||
+3
-1
@@ -17,5 +17,7 @@
|
|||||||
// Enforces all keywords and types to be lowercase.
|
// Enforces all keywords and types to be lowercase.
|
||||||
"keywordCase": "lower",
|
"keywordCase": "lower",
|
||||||
// Remove trailing whitespace at the end of each line.
|
// Remove trailing whitespace at the end of each line.
|
||||||
"removeTrailingWhiteSpace": true
|
"removeTrailingWhiteSpace": true,
|
||||||
|
// Sort imports alphabetically.
|
||||||
|
"sortImports": true
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
|||||||
|
|
||||||
info:
|
info:
|
||||||
title: Playlet Web API
|
title: Playlet Web API
|
||||||
version: 0.12.1
|
version: 0.13.1
|
||||||
description:
|
description:
|
||||||
Playlet Web API is a RESTful API for controlling the Playlet app on
|
Playlet Web API is a RESTful API for controlling the Playlet app on
|
||||||
Roku devices. The API is intended to be used by the Playlet web app, but can
|
Roku devices. The API is intended to be used by the Playlet web app, but can
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Playlet Brighterscript Plugins
|
# Playlet Brighterscript Plugins
|
||||||
|
|
||||||
- [Json5/Yaml support](#json5yaml-support)
|
- [Json5/Yaml support](#json5yaml-support)
|
||||||
|
- [Convert images](#convert-images)
|
||||||
- [Manifest editing](#manifest-editing)
|
- [Manifest editing](#manifest-editing)
|
||||||
- [Validation](#validation)
|
- [Validation](#validation)
|
||||||
- [Includes](#includes)
|
- [Includes](#includes)
|
||||||
@@ -27,6 +28,21 @@ Brightscript can only parse json natively using [ParseJson](https://developer.ro
|
|||||||
|
|
||||||
At the end of the build, the plugin scans for certain files (`jsonc`, `json`, `json5` and `yaml`), and converts them to plain json, while keeping the original file name. That way they are all parsable by the [ParseJson](https://developer.roku.com/en-ca/docs/references/brightscript/language/global-utility-functions.md#parsejsonjsonstring-as-string-flags---as-string-as-object) function, even though their original format is not compatible.
|
At the end of the build, the plugin scans for certain files (`jsonc`, `json`, `json5` and `yaml`), and converts them to plain json, while keeping the original file name. That way they are all parsable by the [ParseJson](https://developer.roku.com/en-ca/docs/references/brightscript/language/global-utility-functions.md#parsejsonjsonstring-as-string-flags---as-string-as-object) function, even though their original format is not compatible.
|
||||||
|
|
||||||
|
## Convert images
|
||||||
|
|
||||||
|
**[Source](/tools/bs-plugins/image-gen-plugin.ts)**
|
||||||
|
|
||||||
|
This plugin allows us to convert svg files to png files.
|
||||||
|
|
||||||
|
### Why
|
||||||
|
|
||||||
|
This is used to convert splash screen, app poster, as well as icons in the app. Having svg images (or vector images in general) as the source of truth is better, in case images need to be modified or resized. Since Roku can't load them, we convert them to png.
|
||||||
|
|
||||||
|
### How
|
||||||
|
|
||||||
|
Each `.svg` file found will have an associated `.svg.meta.json5` file, which will contain the hash (MD5) of the svg, conversion paramters, and the hash of the output files. This allows us to hash existing files and see if a conversion is needed.
|
||||||
|
Notice how each `.svg` file can be configured to generate multiple png files. This is especially the case to generate the app artwork (splash screen/poster) with different sizes from the same logo `.svg` file.
|
||||||
|
|
||||||
## Manifest editing
|
## Manifest editing
|
||||||
|
|
||||||
**[Source](/tools/bs-plugins/manifest-edit-plugin.ts)**
|
**[Source](/tools/bs-plugins/manifest-edit-plugin.ts)**
|
||||||
|
|||||||
Generated
+46
-32
@@ -1,27 +1,29 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.9",
|
"@rokucommunity/bslint": "^0.8.10",
|
||||||
"@types/fs-extra": "^11.0.1",
|
"@types/crypto-js": "^4.1.2",
|
||||||
"@types/node": "^20.5.9",
|
"@types/fs-extra": "^11.0.2",
|
||||||
|
"@types/node": "^20.7.2",
|
||||||
"@types/xml2js": "^0.4.12",
|
"@types/xml2js": "^0.4.12",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "^0.65.5",
|
"brighterscript": "^0.65.7",
|
||||||
"brighterscript-formatter": "^1.6.31",
|
"brighterscript-formatter": "^1.6.33",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
|
"crypto-js": "^4.1.1",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"fs-extra": "^11.1.1",
|
"fs-extra": "^11.1.1",
|
||||||
"glob": "^10.3.4",
|
"glob": "^10.3.10",
|
||||||
"ip": "^1.1.8",
|
"ip": "^1.1.8",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"roku-deploy": "^3.10.3",
|
"roku-deploy": "^3.10.3",
|
||||||
@@ -272,9 +274,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@rokucommunity/bslint": {
|
"node_modules/@rokucommunity/bslint": {
|
||||||
"version": "0.8.9",
|
"version": "0.8.10",
|
||||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.9.tgz",
|
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.10.tgz",
|
||||||
"integrity": "sha512-7rXHcGL8XVguqzjKtsUoRvnm/g6ySJwV+xGO9n8Mc1r1zNIvjMi9Spfz1Kh8zJTXwfxOkG1X68lMAtp9bk/gxA==",
|
"integrity": "sha512-2aaWPtt5xACm7sIaKR5ctF7f3HrjKGfTVSAT6ZGdojDsXPQanHK2+XyYX20fQVdjJFVn414UCfVkUiaO0PTtog==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
@@ -327,10 +329,16 @@
|
|||||||
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/crypto-js": {
|
||||||
|
"version": "4.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-4.1.2.tgz",
|
||||||
|
"integrity": "sha512-t33RNmTu5ufG/sorROIafiCVJMx3jz95bXUMoPAZcUD14fxMXnuTzqzXZoxpR0tNx2xpw11Dlmem9vGCsrSOfA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@types/fs-extra": {
|
"node_modules/@types/fs-extra": {
|
||||||
"version": "11.0.1",
|
"version": "11.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.2.tgz",
|
||||||
"integrity": "sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==",
|
"integrity": "sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/jsonfile": "*",
|
"@types/jsonfile": "*",
|
||||||
@@ -347,9 +355,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "20.5.9",
|
"version": "20.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.9.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.7.2.tgz",
|
||||||
"integrity": "sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==",
|
"integrity": "sha512-RcdC3hOBOauLP+r/kRt27NrByYtDjsXyAuSbR87O6xpsvi763WI+5fbSIvYJrXnt9w4RuxhV6eAXfIs7aaf/FQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/xml2js": {
|
"node_modules/@types/xml2js": {
|
||||||
@@ -702,9 +710,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript": {
|
"node_modules/brighterscript": {
|
||||||
"version": "0.65.5",
|
"version": "0.65.7",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.5.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.7.tgz",
|
||||||
"integrity": "sha512-xDkWIZhjTLhp6dVZ6lX7zWRyNvjdiAwZncJRnErSbqRhteNJFL7ic2UDJew9zCOYTQDrG7B85lpPpXc/1JlV+Q==",
|
"integrity": "sha512-cmV0JzlYuKIKkMsbHR2FyaD2YugHeHESdMmUOtK61EsEUS895Y6yXftDVnFUwij7beLiZR6s1oRpMfiS7MJ40g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rokucommunity/bslib": "^0.1.1",
|
"@rokucommunity/bslib": "^0.1.1",
|
||||||
@@ -745,12 +753,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter": {
|
"node_modules/brighterscript-formatter": {
|
||||||
"version": "1.6.31",
|
"version": "1.6.33",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.31.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.33.tgz",
|
||||||
"integrity": "sha512-XOc1LVAUXrWtCwAZeOUS/7gH5TbiEqZ0IwyAJcM7J5CxrFpMrw6NKg/Yox1oKaH1m11kcLR7KgckK5CTha0eYQ==",
|
"integrity": "sha512-XmirSAOBBHsprJvLOuh8nzXNiPQJXQa2NJ581OZdQrofFdBNPGH+yFhV6XXUZ+pA6fVLSxMxXA0toF83jtKjrA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brighterscript": "^0.65.4",
|
"brighterscript": "^0.65.7",
|
||||||
"glob-all": "^3.3.0",
|
"glob-all": "^3.3.0",
|
||||||
"jsonc-parser": "^3.0.0",
|
"jsonc-parser": "^3.0.0",
|
||||||
"source-map": "^0.7.3",
|
"source-map": "^0.7.3",
|
||||||
@@ -1507,6 +1515,12 @@
|
|||||||
"node": ">= 8"
|
"node": ">= 8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/crypto-js": {
|
||||||
|
"version": "4.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
|
||||||
|
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/css-select": {
|
"node_modules/css-select": {
|
||||||
"version": "5.1.0",
|
"version": "5.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz",
|
||||||
@@ -2192,19 +2206,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/glob": {
|
"node_modules/glob": {
|
||||||
"version": "10.3.4",
|
"version": "10.3.10",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
||||||
"integrity": "sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==",
|
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"foreground-child": "^3.1.0",
|
"foreground-child": "^3.1.0",
|
||||||
"jackspeak": "^2.0.3",
|
"jackspeak": "^2.3.5",
|
||||||
"minimatch": "^9.0.1",
|
"minimatch": "^9.0.1",
|
||||||
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
|
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
|
||||||
"path-scurry": "^1.10.1"
|
"path-scurry": "^1.10.1"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"glob": "dist/cjs/src/bin.js"
|
"glob": "dist/esm/bin.mjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.17"
|
||||||
@@ -2616,9 +2630,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/jackspeak": {
|
"node_modules/jackspeak": {
|
||||||
"version": "2.2.1",
|
"version": "2.3.6",
|
||||||
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz",
|
||||||
"integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==",
|
"integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@isaacs/cliui": "^8.0.2"
|
"@isaacs/cliui": "^8.0.2"
|
||||||
|
|||||||
+9
-8
@@ -1,21 +1,23 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.9",
|
"@rokucommunity/bslint": "^0.8.10",
|
||||||
"@types/fs-extra": "^11.0.1",
|
"@types/crypto-js": "^4.1.2",
|
||||||
"@types/node": "^20.5.9",
|
"@types/fs-extra": "^11.0.2",
|
||||||
|
"@types/node": "^20.7.2",
|
||||||
"@types/xml2js": "^0.4.12",
|
"@types/xml2js": "^0.4.12",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "^0.65.5",
|
"brighterscript": "^0.65.7",
|
||||||
"brighterscript-formatter": "^1.6.31",
|
"brighterscript-formatter": "^1.6.33",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
|
"crypto-js": "^4.1.1",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"fs-extra": "^11.1.1",
|
"fs-extra": "^11.1.1",
|
||||||
"glob": "^10.3.4",
|
"glob": "^10.3.10",
|
||||||
"ip": "^1.1.8",
|
"ip": "^1.1.8",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"roku-deploy": "^3.10.3",
|
"roku-deploy": "^3.10.3",
|
||||||
@@ -52,7 +54,6 @@
|
|||||||
"test:build:app": "cd playlet-app && npm run test:build",
|
"test:build:app": "cd playlet-app && npm run test:build",
|
||||||
"test:lib": "cd playlet-lib && npm run test",
|
"test:lib": "cd playlet-lib && npm run test",
|
||||||
"test:build:lib": "cd playlet-lib && npm run test:build",
|
"test:build:lib": "cd playlet-lib && npm run test:build",
|
||||||
"generate-images": "node tools/generate-images.js",
|
|
||||||
"version-sync": "node tools/version-sync.js",
|
"version-sync": "node tools/version-sync.js",
|
||||||
"manifest-git-hash": "node tools/update-manifest-git-hash.js",
|
"manifest-git-hash": "node tools/update-manifest-git-hash.js",
|
||||||
"sign-package": "node tools/sign-package.js",
|
"sign-package": "node tools/sign-package.js",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.12.1"
|
"version": "0.13.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "rm -rf build/playlet-app",
|
"prebuild": "rm -rf build/playlet-app",
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="BootstrapScene" extends="Scene">
|
<component name="BootstrapScene" extends="Scene">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="exitChannel" type="bool" alwaysNotify="true" />
|
<field id="exitChannel" type="bool" alwaysNotify="true" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="LoadingIndicator" extends="Group">
|
<component name="LoadingIndicator" extends="Group">
|
||||||
<children>
|
<children>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
inputHash: '0536f51fa72c2e4e368ea0e901aadfc1',
|
||||||
|
outputs: [
|
||||||
|
{
|
||||||
|
outputFilePath: 'src/images/splash-screen_fhd.jpg',
|
||||||
|
outputHash: 'b15f3a3f1ccc459cbca12cb828b78d16',
|
||||||
|
width: 1920,
|
||||||
|
height: 1080,
|
||||||
|
background: '#242424',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
outputFilePath: 'src/images/splash-screen_hd.jpg',
|
||||||
|
outputHash: '25e9c4220f8a42101d6333e548e33aa8',
|
||||||
|
width: 1280,
|
||||||
|
height: 720,
|
||||||
|
background: '#242424',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
outputFilePath: 'src/images/splash-screen_sd.jpg',
|
||||||
|
outputHash: 'c54a2f7fa65f443263806962450f2c04',
|
||||||
|
width: 720,
|
||||||
|
height: 480,
|
||||||
|
background: '#242424',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
inputHash: "d61131ccc714d8df0b4514ca76883494",
|
||||||
|
outputs: [],
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
inputHash: '3452c6ea1c84f59aedf5530bf86a7a51',
|
||||||
|
outputs: [
|
||||||
|
{
|
||||||
|
outputFilePath: 'src/images/channel-poster_fhd.png',
|
||||||
|
outputHash: 'd644a0db84deed0bcc41a41d08a4ef75',
|
||||||
|
width: 540,
|
||||||
|
height: 405,
|
||||||
|
background: '#FFFFFF',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
outputFilePath: 'src/images/channel-poster_hd.png',
|
||||||
|
outputHash: 'd07a4ffaa021b55528bee91710f4e9d2',
|
||||||
|
width: 290,
|
||||||
|
height: 218,
|
||||||
|
background: '#FFFFFF',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
outputFilePath: 'src/images/channel-poster_sd.png',
|
||||||
|
outputHash: '66a311c639f89ff009e4624468282b2f',
|
||||||
|
width: 246,
|
||||||
|
height: 140,
|
||||||
|
background: '#FFFFFF',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -2,14 +2,14 @@ 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=12
|
minor_version=13
|
||||||
build_version=00001
|
build_version=00001
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
|
|
||||||
## Channel Assets
|
## Channel Assets
|
||||||
### Main Menu Icons / Channel Poster Artwork
|
### Main Menu Icons / Channel Poster Artwork
|
||||||
#### Image sizes are FHD: 540x405px | HD: 290x218px | SD: 214x144px
|
#### Image sizes are FHD: 540x405px | HD: 290x218px | SD: 246x140px
|
||||||
mm_icon_focus_fhd=pkg:/images/channel-poster_fhd.png
|
mm_icon_focus_fhd=pkg:/images/channel-poster_fhd.png
|
||||||
mm_icon_focus_hd=pkg:/images/channel-poster_hd.png
|
mm_icon_focus_hd=pkg:/images/channel-poster_hd.png
|
||||||
mm_icon_focus_sd=pkg:/images/channel-poster_sd.png
|
mm_icon_focus_sd=pkg:/images/channel-poster_sd.png
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.12.1"
|
"version": "0.13.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.12.1",
|
"version": "0.13.1",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "rm -rf build/playlet-lib",
|
"prebuild": "rm -rf build/playlet-lib",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
||||||
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.screens = {}
|
m.screens = {}
|
||||||
@@ -83,7 +83,22 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
|||||||
end if
|
end if
|
||||||
if key = "options"
|
if key = "options"
|
||||||
VideoUtils.ToggleVideoPictureInPicture()
|
VideoUtils.ToggleVideoPictureInPicture()
|
||||||
else if key = "back"
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "play"
|
||||||
|
VideoUtils.TogglePause()
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "pause"
|
||||||
|
VideoUtils.PauseVideo()
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "playonly"
|
||||||
|
VideoUtils.ResumeVideo()
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "back"
|
||||||
dialog = DialogUtils.ShowDialogButtons("Do you want to exit Playlet?", "Exit", ["Exit", "Cancel"])
|
dialog = DialogUtils.ShowDialogButtons("Do you want to exit Playlet?", "Exit", ["Exit", "Cancel"])
|
||||||
dialog.observeField("buttonSelected", FuncName(OnExitDialog), ["buttonSelected"])
|
dialog.observeField("buttonSelected", FuncName(OnExitDialog), ["buttonSelected"])
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="AppController" extends="Group" includes="AutoBind">
|
<component name="AppController" extends="Group" includes="AutoBind">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="root" type="node" />
|
<field id="root" type="node" />
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="AppRoot" extends="Group" includes="Focus">
|
<component name="AppRoot" extends="Group" includes="Focus">
|
||||||
</component>
|
</component>
|
||||||
@@ -1,14 +1,21 @@
|
|||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
|
m.container = m.top.findNode("container")
|
||||||
|
m.scrollAnimation = m.top.findNode("scrollAnimation")
|
||||||
|
m.scrollAnimationInterpolator = m.scrollAnimation.findNode("scrollAnimationInterpolator")
|
||||||
|
|
||||||
m.banner = m.top.findNode("banner")
|
m.banner = m.top.findNode("banner")
|
||||||
m.thumbnail = m.top.findNode("thumbnail")
|
m.thumbnail = m.top.findNode("thumbnail")
|
||||||
m.authorLabel = m.top.findNode("authorLabel")
|
m.authorLabel = m.top.findNode("authorLabel")
|
||||||
m.rowList = m.top.FindNode("rowList")
|
m.rowList = m.top.FindNode("rowList")
|
||||||
|
|
||||||
m.banner.ObserveField("loadStatus", FuncName(OnBannerLoadStatus))
|
m.banner.ObserveField("loadStatus", FuncName(OnBannerLoadStatus))
|
||||||
|
m.authorId = ""
|
||||||
|
|
||||||
|
InitializeTabs()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeready()
|
function OnNodeready()
|
||||||
@@ -42,9 +49,28 @@ function OnContentSet() as void
|
|||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.rowList.content = content
|
|
||||||
|
|
||||||
content@.LoadChannel(m.invidious)
|
content@.LoadChannel(m.invidious)
|
||||||
|
|
||||||
|
authorId = ValidString(content.authorId)
|
||||||
|
if authorId <> m.authorId and IsArray(content.tabs)
|
||||||
|
m.authorId = authorId
|
||||||
|
m.rowList.contentData = CreateChannelFeeds(m.authorId, content.tabs)
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function CreateChannelFeeds(authorId as string, tabs as object) as object
|
||||||
|
if authorId = ""
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
feeds = []
|
||||||
|
for i = 0 to tabs.count() - 1
|
||||||
|
tabName = tabs[i]
|
||||||
|
if m.tabs.DoesExist(tabName)
|
||||||
|
feeds.Push(m.tabs[tabName](authorId))
|
||||||
|
end if
|
||||||
|
end for
|
||||||
|
return feeds
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnkeyEvent(key as string, press as boolean) as boolean
|
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||||
@@ -71,4 +97,47 @@ function OnBannerLoadStatus() as void
|
|||||||
|
|
||||||
aspect = m.banner.bitmapWidth / m.banner.bitmapHeight
|
aspect = m.banner.bitmapWidth / m.banner.bitmapHeight
|
||||||
m.banner.height = m.banner.width / aspect
|
m.banner.height = m.banner.width / aspect
|
||||||
|
m.banner.translation = [0, -m.banner.height]
|
||||||
|
m.banner.visible = true
|
||||||
|
|
||||||
|
startPos = [0, 0]
|
||||||
|
endPos = [0, m.banner.height]
|
||||||
|
midPos = [0, m.banner.height / 2]
|
||||||
|
|
||||||
|
m.scrollAnimationInterpolator.keyValue = [startPos, midPos, endPos]
|
||||||
|
m.scrollAnimation.control = "start"
|
||||||
|
end function
|
||||||
|
|
||||||
|
function InitializeTabs()
|
||||||
|
m.tabs = {
|
||||||
|
videos: function(authorId as string) as object
|
||||||
|
return CreateChannelFeed("Latest videos", "channel_videos", authorId)
|
||||||
|
end function,
|
||||||
|
shorts: function(authorId as string) as object
|
||||||
|
return CreateChannelFeed("Shorts", "channel_shorts", authorId)
|
||||||
|
end function,
|
||||||
|
streams: function(authorId as string) as object
|
||||||
|
return CreateChannelFeed("Live", "channel_streams", authorId)
|
||||||
|
end function,
|
||||||
|
podcasts: function(authorId as string) as object
|
||||||
|
return CreateChannelFeed("Podcasts", "channel_podcasts", authorId)
|
||||||
|
end function,
|
||||||
|
playlists: function(authorId as string) as object
|
||||||
|
return CreateChannelFeed("Playlists", "channel_playlists", authorId)
|
||||||
|
end function,
|
||||||
|
channels: function(authorId as string) as object
|
||||||
|
return CreateChannelFeed("Channels", "channel_channels", authorId)
|
||||||
|
end function
|
||||||
|
}
|
||||||
|
end function
|
||||||
|
|
||||||
|
function CreateChannelFeed(title as string, endpoint as string, ucid as string) as object
|
||||||
|
return {
|
||||||
|
title: title,
|
||||||
|
apiType: "Invidious",
|
||||||
|
endpoint: endpoint,
|
||||||
|
pathParams: {
|
||||||
|
ucid: ucid
|
||||||
|
}
|
||||||
|
}
|
||||||
end function
|
end function
|
||||||
@@ -11,44 +11,58 @@
|
|||||||
color="0x242424">
|
color="0x242424">
|
||||||
</Rectangle>
|
</Rectangle>
|
||||||
|
|
||||||
<Poster
|
<Group id="container">
|
||||||
id="banner"
|
<Poster
|
||||||
translation="[0,0]"
|
id="banner"
|
||||||
width="1280" />
|
width="1280"
|
||||||
|
visible="false" />
|
||||||
|
|
||||||
<Poster
|
<Poster
|
||||||
translation="[115,180]"
|
translation="[115,20]"
|
||||||
width="104"
|
width="104"
|
||||||
height="104"
|
height="104"
|
||||||
uri="pkg:/images/circle-mask-500.png">
|
uri="pkg:/images/circle-mask-500.png">
|
||||||
|
|
||||||
<CirclePoster
|
<CirclePoster
|
||||||
id="thumbnail"
|
id="thumbnail"
|
||||||
width="100"
|
width="100"
|
||||||
height="100"
|
height="100"
|
||||||
translation="[2,2]" />
|
translation="[2,2]"
|
||||||
</Poster>
|
failedBitmapUri="pkg:/images/thumbnail-missing.jpg" />
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
id="authorLabel"
|
id="authorLabel"
|
||||||
translation="[228,226]"
|
translation="[115,40]"
|
||||||
font="font:MediumBoldSystemFont" />
|
font="font:MediumBoldSystemFont" />
|
||||||
|
</Poster>
|
||||||
|
|
||||||
<VideoRowList
|
<VideoRowList
|
||||||
itemComponentName="RowCell"
|
itemComponentName="RowCell"
|
||||||
id="rowList"
|
id="rowList"
|
||||||
focusable="false"
|
focusable="false"
|
||||||
translation="[0,320]"
|
translation="[0,160]"
|
||||||
numRows="1"
|
numRows="2"
|
||||||
rowitemSize="[[350,196]]"
|
rowitemSize="[[350,196]]"
|
||||||
rowItemSpacing="[[25,0]]"
|
rowItemSpacing="[[25,0]]"
|
||||||
itemSize="[1280,326]"
|
itemSize="[1280,326]"
|
||||||
itemSpacing="[0,65]"
|
itemSpacing="[0,65]"
|
||||||
rowLabelOffset="[[115,20]]"
|
rowLabelOffset="[[115,20]]"
|
||||||
focusXOffset="[115]"
|
focusXOffset="[115]"
|
||||||
showRowLabel="[true]"
|
showRowLabel="[true]"
|
||||||
rowFocusAnimationStyle="floatingfocus"
|
rowFocusAnimationStyle="floatingfocus"
|
||||||
variableWidthItems="true"
|
variableWidthItems="true"
|
||||||
focusBitmapUri="pkg:/images/focus_grid.9.png" />
|
focusBitmapUri="pkg:/images/focus_grid.9.png" />
|
||||||
|
|
||||||
|
<Animation
|
||||||
|
id="scrollAnimation"
|
||||||
|
delay="0.3"
|
||||||
|
duration="0.6">
|
||||||
|
<Vector2DFieldInterpolator
|
||||||
|
id="scrollAnimationInterpolator"
|
||||||
|
key="[ 0.0, 0.5, 1.0 ]"
|
||||||
|
fieldToInterp="container.translation" />
|
||||||
|
</Animation>
|
||||||
|
|
||||||
|
</Group>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
@@ -4,11 +4,10 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function UpdateMaskSize()
|
function UpdateMaskSize()
|
||||||
width = m.top.poster.width
|
width = m.top.width
|
||||||
height = m.top.poster.height
|
height = m.top.height
|
||||||
|
|
||||||
maskSize = [width * GetScaleFactor(), height * GetScaleFactor()]
|
m.top.maskSize = [width * GetScaleFactor(), height * GetScaleFactor()]
|
||||||
m.top.maskGroup.maskSize = maskSize
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' MaskGroup component do not scale with with UI resolution
|
' MaskGroup component do not scale with with UI resolution
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<field id="loadStatus" type="string" alias="Poster.loadStatus" />
|
<field id="loadStatus" type="string" alias="Poster.loadStatus" />
|
||||||
|
|
||||||
<field id="maskUri" type="uri" value="pkg:/images/circle-mask-500.png" alias="MaskGroup.maskuri" />
|
<field id="maskUri" type="uri" value="pkg:/images/circle-mask-500.png" alias="MaskGroup.maskuri" />
|
||||||
|
<field id="maskSize" type="vector2d" alias="MaskGroup.maskSize" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<MaskGroup
|
<MaskGroup
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "pkg:/components/ContentNode/ChannelContentTask.bs"
|
import "pkg:/components/ContentNode/ChannelContentTask.bs"
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.top.latestVideos = m.top.findNode("latestVideos")
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function LoadChannel(invidiousNode as object) as void
|
function LoadChannel(invidiousNode as object) as void
|
||||||
@@ -40,9 +39,9 @@ function OnChannelContentTaskResult(output as object) as void
|
|||||||
end if
|
end if
|
||||||
error = ErrorUtils.Format(error)
|
error = ErrorUtils.Format(error)
|
||||||
LogError(error)
|
LogError(error)
|
||||||
playlistId = output.task.input.content.playlistId
|
authorId = output.task.input.content.authorId
|
||||||
message = `Failed to load playlist ${playlistId}\n${error}`
|
message = `Failed to load channel ${authorId}\n${error}`
|
||||||
DialogUtils.ShowDialog(message, "Playlist load fail", true)
|
DialogUtils.ShowDialog(message, "Channel load fail", true)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
@@ -14,15 +14,8 @@
|
|||||||
<field id="videoCountText" type="string" />
|
<field id="videoCountText" type="string" />
|
||||||
<field id="thumbnail" type="string" />
|
<field id="thumbnail" type="string" />
|
||||||
<field id="banner" type="string" />
|
<field id="banner" type="string" />
|
||||||
|
<field id="tabs" type="array" />
|
||||||
<field id="latestVideos" type="node" />
|
|
||||||
|
|
||||||
<field id="HDItemWidth" type="float" value="196" />
|
<field id="HDItemWidth" type="float" value="196" />
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
<children>
|
|
||||||
<ContentNode id="latestVideos" title="Latest Videos">
|
|
||||||
|
|
||||||
</ContentNode>
|
|
||||||
</children>
|
|
||||||
</component>
|
</component>
|
||||||
@@ -2,7 +2,8 @@
|
|||||||
<interface>
|
<interface>
|
||||||
<field id="feed" type="assocarray" />
|
<field id="feed" type="assocarray" />
|
||||||
<field id="loadState" type="string" />
|
<field id="loadState" type="string" />
|
||||||
<field id="pagination" type="boolean" />
|
<field id="paginationType" type="string" />
|
||||||
<field id="page" type="integer" value="0" />
|
<field id="page" type="integer" value="0" />
|
||||||
|
<field id="continuation" type="string" />
|
||||||
</interface>
|
</interface>
|
||||||
</component>
|
</component>
|
||||||
@@ -12,9 +12,12 @@ namespace DialogUtils
|
|||||||
dialog.title = title
|
dialog.title = title
|
||||||
dialog.buttons = buttons
|
dialog.buttons = buttons
|
||||||
if large
|
if large
|
||||||
deviceInfo = CreateObject("roDeviceInfo")
|
if m._deviceDisplayWidth = invalid
|
||||||
displaySize = deviceInfo.GetDisplaySize()
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
dialog.width = displaySize.w - 100
|
displaySize = deviceInfo.GetDisplaySize()
|
||||||
|
m._deviceDisplayWidth = displaySize.w
|
||||||
|
end if
|
||||||
|
dialog.width = m._deviceDisplayWidth - 100
|
||||||
end if
|
end if
|
||||||
m.top.getScene().dialog = dialog
|
m.top.getScene().dialog = dialog
|
||||||
return dialog
|
return dialog
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs"
|
import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.urlLabel = m.top.findNode("urlLabel")
|
m.urlLabel = m.top.findNode("urlLabel")
|
||||||
|
|||||||
@@ -26,11 +26,11 @@
|
|||||||
<Font role="font" uri="font:SystemFontFile" size="24" />
|
<Font role="font" uri="font:SystemFontFile" size="24" />
|
||||||
</Label>
|
</Label>
|
||||||
<Poster
|
<Poster
|
||||||
id='QrCodePoster'
|
id="QrCodePoster"
|
||||||
width='300'
|
width="300"
|
||||||
height='300'
|
height="300"
|
||||||
loadWidth='300'
|
loadWidth="300"
|
||||||
loadHeight='300'
|
loadHeight="300"
|
||||||
translation="[50, 50]" />
|
translation="[50, 50]" />
|
||||||
<Label
|
<Label
|
||||||
id="urlLabel"
|
id="urlLabel"
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="SimpleDialog" extends="StandardMessageDialog">
|
<component name="SimpleDialog" extends="StandardMessageDialog">
|
||||||
</component>
|
</component>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/utils/StringUtils.bs"
|
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function InitEcpArgs()
|
function InitEcpArgs()
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<component name="Logger" extends="Task">
|
||||||
<component name='Logger' extends='Task'>
|
|
||||||
<interface>
|
<interface>
|
||||||
<field id='logLevel' type='int' value='2' />
|
<field id="logLevel" type="int" value="2" />
|
||||||
<field id='logLine' type='string' />
|
<field id="logLine" type="string" />
|
||||||
<field id='folder' type='string' value='cachefs:/logs' />
|
<field id="folder" type="string" value="cachefs:/logs" />
|
||||||
<field id='filename' type='string' value='app_logs.txt' />
|
<field id="filename" type="string" value="app_logs.txt" />
|
||||||
<field id='filenamePrevious' type='string' value='app_logs_previous.txt' />
|
<field id="filenamePrevious" type="string" value="app_logs_previous.txt" />
|
||||||
</interface>
|
</interface>
|
||||||
</component>
|
</component>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import "pkg:/components/EcpArgs.bs"
|
||||||
import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
|
import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
|
||||||
import "pkg:/source/utils/LoadingScreen.bs"
|
import "pkg:/source/utils/LoadingScreen.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
import "pkg:/components/EcpArgs.bs"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
InitializeLogger()
|
InitializeLogger()
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
'import "pkg:/components/EcpArgs.bs"
|
||||||
'import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
|
'import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
|
||||||
'import "pkg:/source/utils/LoadingScreen.bs"
|
'import "pkg:/source/utils/LoadingScreen.bs"
|
||||||
'import "pkg:/source/utils/Logging.bs"
|
'import "pkg:/source/utils/Logging.bs"
|
||||||
'import "pkg:/components/EcpArgs.bs"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
InitializeBindings() ' auto-generated!
|
InitializeBindings() ' auto-generated!
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<component name="MainScene" extends="Group">
|
<component name="MainScene" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="bindings" type="assocarray" onChange="OnBindingSetRegisterAutoBind" />
|
<field id="bindings" type="assocarray" onChange="OnBindingSetRegisterAutoBind" />
|
||||||
@@ -17,6 +16,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/source/utils/StringUtils.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/StringUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/VideoPlayer/VideoUtils.brs" />
|
<script type="text/brightscript" uri="pkg:/components/VideoPlayer/VideoUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/FocusManagement.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/FocusManagement.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/components/Dialog/DialogUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
<children>
|
<children>
|
||||||
<AppController id="AppController">
|
<AppController id="AppController">
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="MainScene" extends="Group" includes="AutoBind">
|
<component name="MainScene" extends="Group" includes="AutoBind">
|
||||||
<children>
|
<children>
|
||||||
<AppController id="AppController" root="bind:./AppRoot" stack="bind:./Stack">
|
<AppController id="AppController" root="bind:./AppRoot" stack="bind:./Stack">
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<component name="IconButton" extends="Group" includes="Focus">
|
<component name="IconButton" extends="Group" includes="Focus">
|
||||||
<children>
|
<children>
|
||||||
<Poster id="buttonBackground" uri="pkg:/images/white.9.png" visible="false" />
|
<Poster id="buttonBackground" uri="pkg:/images/white.9.png" visible="false" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="NavBar" extends="Group" includes="AutoBind">
|
<component name="NavBar" extends="Group" includes="AutoBind">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="appController" type="node" />
|
<field id="appController" type="node" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="NavBarItem" extends="ContentNode">
|
<component name="NavBarItem" extends="ContentNode">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="screen" type="string" />
|
<field id="screen" type="string" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="NavigationTestNode" extends="Node">
|
<component name="NavigationTestNode" extends="Node">
|
||||||
<interface>
|
<interface>
|
||||||
<function name="SetNavigation" />
|
<function name="SetNavigation" />
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
|
import "pkg:/components/PlaylistView/PlaylistContentTask.bs"
|
||||||
|
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
|
||||||
import "pkg:/components/PlaylistView/PlaylistContentTask.bs"
|
|
||||||
import "pkg:/source/utils/Logging.bs"
|
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
import "pkg:/source/utils/ArrayUtils.bs"
|
import "pkg:/source/utils/ArrayUtils.bs"
|
||||||
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.pendingLoadTasks = {}
|
m.pendingLoadTasks = {}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="PlayQueue" extends="Node">
|
<component name="PlayQueue" extends="Node">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="queue" type="array" />
|
<field id="queue" type="array" />
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
|
||||||
import "pkg:/source/utils/Logging.bs"
|
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "pkg:/components/PlaylistView/PlaylistContentTask.bs"
|
import "pkg:/components/PlaylistView/PlaylistContentTask.bs"
|
||||||
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
||||||
|
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.background = m.top.findNode("background")
|
m.background = m.top.findNode("background")
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/utils/TimeUtils.bs"
|
import "pkg:/source/utils/TimeUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
|
FindChildren()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function FindChildren()
|
||||||
m.titleLabel = m.top.findNode("titleLabel")
|
m.titleLabel = m.top.findNode("titleLabel")
|
||||||
m.authorLabel = m.top.findNode("authorLabel")
|
m.authorLabel = m.top.findNode("authorLabel")
|
||||||
m.thumbnail = m.top.findNode("thumbnail")
|
m.thumbnail = m.top.findNode("thumbnail")
|
||||||
m.durationRect = m.top.FindNode("durationRect")
|
m.durationRect = m.top.FindNode("durationRect")
|
||||||
m.durationLabel = m.top.FindNode("durationLabel")
|
m.durationLabel = m.top.FindNode("durationLabel")
|
||||||
|
|
||||||
m.thumbnail.failedBitmapUri = "pkg:/images/thumbnail-missing.jpg"
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnContentSet() as void
|
function OnContentSet() as void
|
||||||
@@ -18,6 +20,10 @@ function OnContentSet() as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m.titleLabel = invalid
|
||||||
|
FindChildren()
|
||||||
|
end if
|
||||||
|
|
||||||
m.titleLabel.text = content.title
|
m.titleLabel.text = content.title
|
||||||
m.authorLabel.text = content.author
|
m.authorLabel.text = content.author
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
id="thumbnail"
|
id="thumbnail"
|
||||||
loadDisplayMode="scaleToZoom"
|
loadDisplayMode="scaleToZoom"
|
||||||
width="190"
|
width="190"
|
||||||
height="106">
|
height="106"
|
||||||
|
failedBitmapUri="pkg:/images/thumbnail-missing.jpg">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
id="durationRect"
|
id="durationRect"
|
||||||
width="60"
|
width="60"
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="AppInfoScreen" extends="Group" includes="AutoBind">
|
<component name="AppInfoScreen" extends="Group" includes="AutoBind">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="applicationInfo" type="node" bind="/ApplicationInfo" />
|
<field id="applicationInfo" type="node" bind="/ApplicationInfo" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/utils/FocusManagement.bs"
|
|
||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.rowList = m.top.FindNode("rowList")
|
m.rowList = m.top.FindNode("rowList")
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="HomeScreen" extends="Group" includes="AutoBind,Focus">
|
<component name="HomeScreen" extends="Group" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="navBar" type="node" bind="/NavBar" />
|
<field id="navBar" type="node" bind="/NavBar" />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/utils/ArrayUtils.bs"
|
import "pkg:/source/utils/ArrayUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="SearchFilters" extends="Group" includes="AutoBind,Focus">
|
<component name="SearchFilters" extends="Group" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="searchScreen" type="node" />
|
<field id="searchScreen" type="node" />
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ import "pkg:/components/Navigation/Navigation.bs"
|
|||||||
import "pkg:/components/Screens/SearchScreen/SearchSuggestionsTask.bs"
|
import "pkg:/components/Screens/SearchScreen/SearchSuggestionsTask.bs"
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/source/services/SearchHistory.bs"
|
import "pkg:/source/services/SearchHistory.bs"
|
||||||
import "pkg:/source/utils/LoadingScreen.bs"
|
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
|
||||||
import "pkg:/source/utils/Logging.bs"
|
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/LoadingScreen.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.container = m.top.FindNode("container")
|
m.container = m.top.FindNode("container")
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="SearchScreen" extends="Group" includes="AutoBind,Focus">
|
<component name="SearchScreen" extends="Group" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="navBar" type="node" bind="/NavBar" />
|
<field id="navBar" type="node" bind="/NavBar" />
|
||||||
@@ -12,7 +10,7 @@
|
|||||||
<Button
|
<Button
|
||||||
id="filtersButton"
|
id="filtersButton"
|
||||||
translation="[160,40]"
|
translation="[160,40]"
|
||||||
minWidth="0"
|
minWidth="240"
|
||||||
height="48"
|
height="48"
|
||||||
showFocusFootprint="true"
|
showFocusFootprint="true"
|
||||||
iconUri="pkg:/images/icons/filters-white.png"
|
iconUri="pkg:/images/icons/filters-white.png"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/services/SearchHistory.bs"
|
|
||||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||||
|
import "pkg:/source/services/SearchHistory.bs"
|
||||||
|
|
||||||
@asynctask
|
@asynctask
|
||||||
function SearchSuggestionsTask(input as object) as object
|
function SearchSuggestionsTask(input as object) as object
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="BooleanControl" extends="LayoutGroup" includes="Focus">
|
<component name="BooleanControl" extends="LayoutGroup" includes="Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="displayText" type="string" alias="Checkbox.title" />
|
<field id="displayText" type="string" alias="Checkbox.title" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="Checkbox" extends="CheckList">
|
<component name="Checkbox" extends="CheckList">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="title" type="string" alias="checkboxNode.title" />
|
<field id="title" type="string" alias="checkboxNode.title" />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/source/services/SearchHistory.bs"
|
import "pkg:/source/services/SearchHistory.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.top.focusable = true
|
m.top.focusable = true
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="ClearSearchHistoryControl" extends="LayoutGroup" includes="Focus">
|
<component name="ClearSearchHistoryControl" extends="LayoutGroup" includes="Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="displayText" type="string" alias="Button.text" />
|
<field id="displayText" type="string" alias="Button.text" />
|
||||||
@@ -9,6 +7,7 @@
|
|||||||
<children>
|
<children>
|
||||||
<Button
|
<Button
|
||||||
id="Button"
|
id="Button"
|
||||||
|
minWidth="340"
|
||||||
showFocusFootprint="true" />
|
showFocusFootprint="true" />
|
||||||
<Label id="DescriptionLabel"
|
<Label id="DescriptionLabel"
|
||||||
width="450"
|
width="450"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.top.focusable = true
|
m.top.focusable = true
|
||||||
|
|||||||
-2
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousInstanceControl" extends="LayoutGroup" includes="AutoBind,Focus">
|
<component name="InvidiousInstanceControl" extends="LayoutGroup" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,5 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
|
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
@@ -29,6 +30,7 @@ function Init()
|
|||||||
SetNavigation(m.testButton, "right", m.saveButton)
|
SetNavigation(m.testButton, "right", m.saveButton)
|
||||||
|
|
||||||
m.currentNavigtionNode = m.editButton
|
m.currentNavigtionNode = m.editButton
|
||||||
|
m.textEditBox.hintText = `e.g. ${Invidious.DEFAULT_INSTANCE}`
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnFocusChange() as void
|
function OnFocusChange() as void
|
||||||
@@ -76,7 +78,7 @@ end function
|
|||||||
function OnEditButtonSelected()
|
function OnEditButtonSelected()
|
||||||
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
|
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
|
||||||
keyboardDialog.title = "Edit Instance"
|
keyboardDialog.title = "Edit Instance"
|
||||||
keyboardDialog.message = ["Enter the instance url (e.g. https://vid.puffyan.us)"]
|
keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`]
|
||||||
keyboardDialog.text = m.top.text
|
keyboardDialog.text = m.top.text
|
||||||
keyboardDialog.buttons = ["OK", "Cancel"]
|
keyboardDialog.buttons = ["OK", "Cancel"]
|
||||||
keyboardDialog.observeField("buttonSelected", FuncName(OnKeyboardButton))
|
keyboardDialog.observeField("buttonSelected", FuncName(OnKeyboardButton))
|
||||||
|
|||||||
-3
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousInstanceSettings" extends="Group" includes="AutoBind,Focus">
|
<component name="InvidiousInstanceSettings" extends="Group" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="text" type="string" alias="textEditBox.text" />
|
<field id="text" type="string" alias="textEditBox.text" />
|
||||||
@@ -23,7 +21,6 @@
|
|||||||
translation="[326,13]" />
|
translation="[326,13]" />
|
||||||
<TextEditBox
|
<TextEditBox
|
||||||
id="textEditBox"
|
id="textEditBox"
|
||||||
hintText="e.g. https://https://vid.puffyan.us"
|
|
||||||
width="480"
|
width="480"
|
||||||
height="50"
|
height="50"
|
||||||
translation="[200,50]" />
|
translation="[200,50]" />
|
||||||
|
|||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
|
import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs"
|
|
||||||
import "pkg:/components/Navigation/Navigation.bs"
|
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.titleLabel = m.top.findNode("titleLabel")
|
m.titleLabel = m.top.findNode("titleLabel")
|
||||||
|
|||||||
+2
-4
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousInstanceTesting" extends="Group" includes="AutoBind,Focus">
|
<component name="InvidiousInstanceTesting" extends="Group" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="instance" type="string" />
|
<field id="instance" type="string" />
|
||||||
@@ -37,9 +35,9 @@
|
|||||||
<Button
|
<Button
|
||||||
id="closeButton"
|
id="closeButton"
|
||||||
text="Close"
|
text="Close"
|
||||||
minWidth="0"
|
minWidth="160"
|
||||||
showFocusFootprint="true"
|
showFocusFootprint="true"
|
||||||
translation="[404,506]" />
|
translation="[400,506]" />
|
||||||
</Rectangle>
|
</Rectangle>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
-2
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousInstanceTestingItem" extends="Group">
|
<component name="InvidiousInstanceTestingItem" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
|||||||
+6
@@ -22,6 +22,8 @@ end function
|
|||||||
|
|
||||||
function PrepareTests() as object
|
function PrepareTests() as object
|
||||||
content = CreateObject("roSGNode", "ContentNode")
|
content = CreateObject("roSGNode", "ContentNode")
|
||||||
|
' TODO:P2 test if video data is reachable (head?)
|
||||||
|
' TODO:P2 test if video data is reachable in proxy mode (local=true)
|
||||||
content.AppendChild(CreateTestNode("Valid url", IsValidUrl))
|
content.AppendChild(CreateTestNode("Valid url", IsValidUrl))
|
||||||
content.AppendChild(CreateTestNode("Instance reachable", IsReachable))
|
content.AppendChild(CreateTestNode("Instance reachable", IsReachable))
|
||||||
content.AppendChild(CreateTestNode("Fetch video details", CanFetchVideoDetails))
|
content.AppendChild(CreateTestNode("Fetch video details", CanFetchVideoDetails))
|
||||||
@@ -53,6 +55,10 @@ function RunTests(instance as string, content as object) as void
|
|||||||
m[testNode.func](instance, testNode)
|
m[testNode.func](instance, testNode)
|
||||||
testNode.duration = timer.TotalMilliseconds()
|
testNode.duration = timer.TotalMilliseconds()
|
||||||
|
|
||||||
|
if testNode.state = "failed"
|
||||||
|
LogError(testNode.details)
|
||||||
|
end if
|
||||||
|
|
||||||
if m.top.cancel
|
if m.top.cancel
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|||||||
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs"
|
import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.failedLabel = m.top.findNode("failedLabel")
|
m.failedLabel = m.top.findNode("failedLabel")
|
||||||
|
|||||||
-2
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousPublicInstances" extends="Group" includes="Focus">
|
<component name="InvidiousPublicInstances" extends="Group" includes="Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="instance" type="string" />
|
<field id="instance" type="string" />
|
||||||
|
|||||||
-2
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousPublicInstancesListItem" extends="Group">
|
<component name="InvidiousPublicInstancesListItem" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
|||||||
-2
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<component name="InvidiousPublicInstancesListItemContent" extends="ContentNode">
|
<component name="InvidiousPublicInstancesListItemContent" extends="ContentNode">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="name" type="string" />
|
<field id="name" type="string" />
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/services/HttpClient.bs"
|
|
||||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||||
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
|
|
||||||
@asynctask
|
@asynctask
|
||||||
function InvidiousPublicInstancesTask(input as object) as object
|
function InvidiousPublicInstancesTask(input as object) as object
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="RadioControl" extends="LayoutGroup" includes="Focus">
|
<component name="RadioControl" extends="LayoutGroup" includes="Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="SettingCategory" extends="Button">
|
<component name="SettingCategory" extends="Button">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="padding" type="integer" value="10" onChange="Resize" />
|
<field id="padding" type="integer" value="10" onChange="Resize" />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
|
||||||
import "pkg:/components/Navigation/ScrollTo.bs"
|
import "pkg:/components/Navigation/ScrollTo.bs"
|
||||||
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.container = m.top.findNode("Container")
|
m.container = m.top.findNode("Container")
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="SettingsScreen" extends="Group" includes="AutoBind,Focus">
|
<component name="SettingsScreen" extends="Group" includes="AutoBind,Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="navBar" type="node" bind="/NavBar" />
|
<field id="navBar" type="node" bind="/NavBar" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="StringControl" extends="LayoutGroup" includes="Focus">
|
<component name="StringControl" extends="LayoutGroup" includes="Focus">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import "pkg:/source/utils/StringUtils.bs"
|
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs"
|
import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="WebAppScreen" extends="Group" includes="AutoBind">
|
<component name="WebAppScreen" extends="Group" includes="AutoBind">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="webServer" type="node" bind="/WebServer" />
|
<field id="webServer" type="node" bind="/WebServer" />
|
||||||
@@ -9,9 +7,9 @@
|
|||||||
<children>
|
<children>
|
||||||
<Group id="noInternet" visible="false">
|
<Group id="noInternet" visible="false">
|
||||||
<Label
|
<Label
|
||||||
height='720'
|
height="720"
|
||||||
width='1280'
|
width="1280"
|
||||||
font='font:MediumBoldSystemFont'
|
font="font:MediumBoldSystemFont"
|
||||||
horizAlign="center"
|
horizAlign="center"
|
||||||
vertAlign="center"
|
vertAlign="center"
|
||||||
text="Could not get IP address: are we connected to the internet?"
|
text="Could not get IP address: are we connected to the internet?"
|
||||||
@@ -19,26 +17,26 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<Group id="yesInternet" visible="false">
|
<Group id="yesInternet" visible="false">
|
||||||
<Label
|
<Label
|
||||||
height='60'
|
height="60"
|
||||||
width='1280'
|
width="1280"
|
||||||
font='font:MediumBoldSystemFont'
|
font="font:MediumBoldSystemFont"
|
||||||
horizAlign="center"
|
horizAlign="center"
|
||||||
translation="[0,92]"
|
translation="[0,92]"
|
||||||
text="Scan the QR code with your phone camera, or open the URL in a web browser:"
|
text="Scan the QR code with your phone camera, or open the URL in a web browser:"
|
||||||
/>
|
/>
|
||||||
<Poster
|
<Poster
|
||||||
id='QrCodePoster'
|
id="QrCodePoster"
|
||||||
height='400'
|
height="400"
|
||||||
width='400'
|
width="400"
|
||||||
loadHeight='400'
|
loadHeight="400"
|
||||||
loadWidth='400'
|
loadWidth="400"
|
||||||
translation='[440, 160]' />
|
translation="[440, 160]" />
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
id='UrlLabel'
|
id="UrlLabel"
|
||||||
height='50'
|
height="50"
|
||||||
width='1280'
|
width="1280"
|
||||||
font='font:MediumBoldSystemFont'
|
font="font:MediumBoldSystemFont"
|
||||||
horizAlign="center"
|
horizAlign="center"
|
||||||
translation="[0,600]"
|
translation="[0,600]"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "LatestLibVersionTask.bs"
|
import "LatestLibVersionTask.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
|
|
||||||
import "pkg:/source/services/ApplicationInfo.bs"
|
import "pkg:/source/services/ApplicationInfo.bs"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="ApplicationInfo" extends="Node">
|
<component name="ApplicationInfo" extends="Node">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="lib_version_latest" type="string" />
|
<field id="lib_version_latest" type="string" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="Invidious" extends="Node">
|
<component name="Invidious" extends="Node">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="applicationInfo" type="node" />
|
<field id="applicationInfo" type="node" />
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
|
import "pkg:/components/VideoFeed/PaginationType.bs"
|
||||||
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
|
import "pkg:/source/utils/CryptoUtils.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
import "pkg:/source/utils/RegistryUtils.bs"
|
import "pkg:/source/utils/RegistryUtils.bs"
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/TimeUtils.bs"
|
import "pkg:/source/utils/TimeUtils.bs"
|
||||||
import "pkg:/source/utils/CryptoUtils.bs"
|
|
||||||
import "pkg:/source/services/HttpClient.bs"
|
|
||||||
import "pkg:/source/utils/Logging.bs"
|
|
||||||
|
|
||||||
namespace Invidious
|
namespace Invidious
|
||||||
const INSTANCES_API = "https://api.invidious.io/instances.json?sort_by=type,users"
|
const INSTANCES_API = "https://api.invidious.io/instances.json?sort_by=type,users"
|
||||||
|
|
||||||
const DEFAULT_INSTANCE = "https://vid.puffyan.us"
|
const DEFAULT_INSTANCE = "https://invidious.fdn.fr"
|
||||||
|
|
||||||
const TOKEN_CALLBACK = "/invidious/token_callback"
|
const TOKEN_CALLBACK = "/invidious/token_callback"
|
||||||
|
|
||||||
@@ -48,7 +49,9 @@ namespace Invidious
|
|||||||
DefaultHandler: m.DefaultHandler,
|
DefaultHandler: m.DefaultHandler,
|
||||||
AuthFeedHandler: m.AuthFeedHandler,
|
AuthFeedHandler: m.AuthFeedHandler,
|
||||||
PlaylistHandler: m.PlaylistHandler,
|
PlaylistHandler: m.PlaylistHandler,
|
||||||
ChannelHandler: m.ChannelHandler
|
ChannelVideosHandler: m.ChannelVideosHandler,
|
||||||
|
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler,
|
||||||
|
ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler
|
||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -155,18 +158,26 @@ namespace Invidious
|
|||||||
requestData = contentNode.feed
|
requestData = contentNode.feed
|
||||||
|
|
||||||
endpoint = m.endpoints[requestData.endpoint]
|
endpoint = m.endpoints[requestData.endpoint]
|
||||||
if endpoint = invalid or endpoint.pagination <> true
|
if endpoint = invalid or StringUtils.IsNullOrEmpty(endpoint.paginationType)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
contentNode.pagination = true
|
|
||||||
contentNode.page += 1
|
|
||||||
|
|
||||||
if not requestData.DoesExist("queryParams")
|
if not requestData.DoesExist("queryParams")
|
||||||
requestData.queryParams = {}
|
requestData.queryParams = {}
|
||||||
end if
|
end if
|
||||||
|
|
||||||
requestData.queryParams.page = contentNode.page
|
contentNode.paginationType = endpoint.paginationType
|
||||||
|
|
||||||
|
if endpoint.paginationType = PaginationType.Pages
|
||||||
|
contentNode.page += 1
|
||||||
|
requestData.queryParams.page = contentNode.page
|
||||||
|
else if endpoint.paginationType = PaginationType.Continuation
|
||||||
|
continuation = contentNode.continuation
|
||||||
|
if not StringUtils.IsNullOrEmpty(continuation)
|
||||||
|
requestData.queryParams.continuation = continuation
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
contentNode.feed = requestData
|
contentNode.feed = requestData
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -254,21 +265,54 @@ namespace Invidious
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function DefaultHandler(m as object, requestData as object, response as object) as object
|
function DefaultHandler(m as object, requestData as object, response as object) as object
|
||||||
return response.Json()
|
if response.StatusCode() = 200
|
||||||
|
json = response.Json()
|
||||||
|
return {
|
||||||
|
items: json
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
return invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function PlaylistHandler(m as object, requestData as object, response as object) as object
|
function PlaylistHandler(m as object, requestData as object, response as object) as object
|
||||||
if response.StatusCode() = 200
|
if response.StatusCode() = 200
|
||||||
json = response.Json()
|
json = response.Json()
|
||||||
return json.videos
|
return {
|
||||||
|
items: json.videos
|
||||||
|
}
|
||||||
end if
|
end if
|
||||||
return invalid
|
return invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ChannelHandler(m as object, requestData as object, response as object) as object
|
function ChannelVideosHandler(m as object, requestData as object, response as object) as object
|
||||||
if response.StatusCode() = 200
|
if response.StatusCode() = 200
|
||||||
json = response.Json()
|
json = response.Json()
|
||||||
return json.videos
|
return {
|
||||||
|
items: json.videos,
|
||||||
|
continuation: json.continuation
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
return invalid
|
||||||
|
end function
|
||||||
|
|
||||||
|
function ChannelPlaylistsHandler(m as object, requestData as object, response as object) as object
|
||||||
|
if response.StatusCode() = 200
|
||||||
|
json = response.Json()
|
||||||
|
return {
|
||||||
|
items: json.playlists,
|
||||||
|
continuation: json.continuation
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
return invalid
|
||||||
|
end function
|
||||||
|
|
||||||
|
function ChannelRelatedChannelsHandler(m as object, requestData as object, response as object) as object
|
||||||
|
if response.StatusCode() = 200
|
||||||
|
json = response.Json()
|
||||||
|
return {
|
||||||
|
items: json.relatedChannels,
|
||||||
|
continuation: json.continuation
|
||||||
|
}
|
||||||
end if
|
end if
|
||||||
return invalid
|
return invalid
|
||||||
end function
|
end function
|
||||||
@@ -281,7 +325,9 @@ namespace Invidious
|
|||||||
videos = []
|
videos = []
|
||||||
videos.Append(json.notifications)
|
videos.Append(json.notifications)
|
||||||
videos.Append(json.videos)
|
videos.Append(json.videos)
|
||||||
return videos
|
return {
|
||||||
|
items: videos
|
||||||
|
}
|
||||||
end if
|
end if
|
||||||
return invalid
|
return invalid
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import "pkg:/source/utils/TimeUtils.bs"
|
|
||||||
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
||||||
|
import "pkg:/source/utils/TimeUtils.bs"
|
||||||
|
|
||||||
namespace InvidiousContent
|
namespace InvidiousContent
|
||||||
|
|
||||||
@@ -115,22 +115,7 @@ namespace InvidiousContent
|
|||||||
node.videoCountText = GetVideoCountText(item)
|
node.videoCountText = GetVideoCountText(item)
|
||||||
node.thumbnail = GetChannelThumbnail(item.authorThumbnails)
|
node.thumbnail = GetChannelThumbnail(item.authorThumbnails)
|
||||||
node.banner = GetChannelBanner(item.authorBanners)
|
node.banner = GetChannelBanner(item.authorBanners)
|
||||||
|
SetIfExists(node, "tabs", item, "tabs")
|
||||||
if item.latestVideos <> invalid
|
|
||||||
newNodes = []
|
|
||||||
|
|
||||||
for each video in item.latestVideos
|
|
||||||
video.type = "video"
|
|
||||||
videoNode = ToVideoContentNode(invalid, video, instance)
|
|
||||||
if videoNode <> invalid
|
|
||||||
newNodes.push(videoNode)
|
|
||||||
end if
|
|
||||||
end for
|
|
||||||
|
|
||||||
if newNodes.Count() > 0
|
|
||||||
node.latestVideos.appendChildren(newNodes)
|
|
||||||
end if
|
|
||||||
end if
|
|
||||||
|
|
||||||
return node
|
return node
|
||||||
end function
|
end function
|
||||||
@@ -245,7 +230,7 @@ namespace InvidiousContent
|
|||||||
if authorBanners = invalid or authorBanners.Count() = 0
|
if authorBanners = invalid or authorBanners.Count() = 0
|
||||||
return ""
|
return ""
|
||||||
end if
|
end if
|
||||||
return authorBanners[authorBanners.Count() - 1].url
|
return authorBanners[0].url
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetVideoCountText(item as object) as string
|
function GetVideoCountText(item as object) as string
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="Preferences" extends="Node">
|
<component name="Preferences" extends="Node">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="__version" type="integer" value="1" />
|
<field id="__version" type="integer" value="1" />
|
||||||
|
|||||||
-2
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="SponsorBlockNotification" extends="Group">
|
<component name="SponsorBlockNotification" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="segment" type="assocarray" onChange="OnSegmentSet" />
|
<field id="segment" type="assocarray" onChange="OnSegmentSet" />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
import "pkg:/source/utils/ColorUtils.bs"
|
import "pkg:/source/utils/ColorUtils.bs"
|
||||||
import "pkg:/source/utils/CryptoUtils.bs"
|
import "pkg:/source/utils/CryptoUtils.bs"
|
||||||
import "pkg:/source/services/HttpClient.bs"
|
|
||||||
|
|
||||||
namespace SponsorBlock
|
namespace SponsorBlock
|
||||||
const SKIP_SEGMENT_ENDPOINT = "/api/skipSegments"
|
const SKIP_SEGMENT_ENDPOINT = "/api/skipSegments"
|
||||||
@@ -107,9 +107,9 @@ namespace SponsorBlock
|
|||||||
pixelEnd = (segment.segment[1] / videoDuration) * width
|
pixelEnd = (segment.segment[1] / videoDuration) * width
|
||||||
color = m.SegmentColor(segment.category)
|
color = m.SegmentColor(segment.category)
|
||||||
' highlight's duration is zero, so it is not visble on the bar.
|
' highlight's duration is zero, so it is not visble on the bar.
|
||||||
' Add a couple of pixels to see it
|
' Add a few pixels to see it
|
||||||
if pixelStart = pixelEnd
|
if pixelStart = pixelEnd
|
||||||
pixelEnd += 2
|
pixelEnd += 5
|
||||||
end if
|
end if
|
||||||
bar.DrawRect(pixelStart, 0, pixelEnd - pixelStart, height, color)
|
bar.DrawRect(pixelStart, 0, pixelEnd - pixelStart, height, color)
|
||||||
end for
|
end for
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
enum PaginationType
|
||||||
|
Pages = "Pages"
|
||||||
|
Continuation = "Continuation"
|
||||||
|
end enum
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="ActionRowCell" extends="Group">
|
<component name="ActionRowCell" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
|||||||
@@ -1,11 +1,3 @@
|
|||||||
function Init()
|
|
||||||
m.authorLabel = m.top.FindNode("authorLabel")
|
|
||||||
m.subCountLabel = m.top.FindNode("subCountLabel")
|
|
||||||
m.videoCountLabel = m.top.FindNode("videoCountLabel")
|
|
||||||
m.thumbnail = m.top.FindNode("thumbnail")
|
|
||||||
m.thumbnail.failedBitmapUri = "pkg:/images/thumbnail-missing.jpg"
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnContentSet() as void
|
function OnContentSet() as void
|
||||||
content = m.top.itemContent
|
content = m.top.itemContent
|
||||||
|
|
||||||
@@ -14,8 +6,8 @@ function OnContentSet() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||||
m.authorLabel.text = content._author
|
m.top._author = content._author
|
||||||
m.subCountLabel.text = content.subCountText
|
m.top.subCountText = content.subCountText
|
||||||
m.videoCountLabel.text = content.videoCountText
|
m.top.videoCountText = content.videoCountText
|
||||||
m.thumbnail.uri = content.thumbnail
|
m.top.thumbnail = content.thumbnail
|
||||||
end function
|
end function
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="ChannelRowCell" extends="Group">
|
<component name="ChannelRowCell" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
|
||||||
<field id="type" type="string" value="channel" />
|
<field id="type" type="string" value="channel" />
|
||||||
|
<field id="_author" type="string" alias="authorLabel.text" />
|
||||||
|
<field id="subCountText" type="string" alias="subCountLabel.text" />
|
||||||
|
<field id="videoCountText" type="string" alias="videoCountLabel.text" />
|
||||||
|
<field id="thumbnail" type="uri" alias="thumbnail.uri" />
|
||||||
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<LayoutGroup
|
<LayoutGroup
|
||||||
@@ -12,7 +14,8 @@
|
|||||||
<CirclePoster
|
<CirclePoster
|
||||||
id="thumbnail"
|
id="thumbnail"
|
||||||
width="196"
|
width="196"
|
||||||
height="196" />
|
height="196"
|
||||||
|
failedBitmapUri="pkg:/images/thumbnail-missing.jpg" />
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
id="authorLabel"
|
id="authorLabel"
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="LoadingRowCell" extends="Group">
|
<component name="LoadingRowCell" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="PlaylistRowCell" extends="Group">
|
<component name="PlaylistRowCell" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="RowCell" extends="Group">
|
<component name="RowCell" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="type" type="string" />
|
<field id="type" type="string" />
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/TimeUtils.bs"
|
import "pkg:/source/utils/TimeUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
|
FindChildren()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function FindChildren()
|
||||||
m.titleLabel = m.top.FindNode("titleLabel")
|
m.titleLabel = m.top.FindNode("titleLabel")
|
||||||
m.authorLabel = m.top.FindNode("authorLabel")
|
m.authorLabel = m.top.FindNode("authorLabel")
|
||||||
m.viewCountDateLabel = m.top.FindNode("viewCountDateLabel")
|
m.viewCountDateLabel = m.top.FindNode("viewCountDateLabel")
|
||||||
@@ -10,7 +15,6 @@ function Init()
|
|||||||
m.durationRect = m.top.FindNode("durationRect")
|
m.durationRect = m.top.FindNode("durationRect")
|
||||||
m.durationLabel = m.top.FindNode("durationLabel")
|
m.durationLabel = m.top.FindNode("durationLabel")
|
||||||
m.thumbnail = m.top.FindNode("thumbnail")
|
m.thumbnail = m.top.FindNode("thumbnail")
|
||||||
m.thumbnail.failedBitmapUri = "pkg:/images/thumbnail-missing.jpg"
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnContentSet() as void
|
function OnContentSet() as void
|
||||||
@@ -20,39 +24,37 @@ function OnContentSet() as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m.titleLabel = invalid
|
||||||
|
FindChildren()
|
||||||
|
end if
|
||||||
|
|
||||||
m.titleLabel.text = content.title
|
m.titleLabel.text = content.title
|
||||||
m.authorLabel.text = content.author
|
m.authorLabel.text = content.author
|
||||||
|
|
||||||
if content.isUpcoming = true
|
if not StringUtils.IsNullOrEmpty(content.publishedText)
|
||||||
m.viewCountDateLabel.text = content.premiereTimestampText
|
label = content.publishedText
|
||||||
else
|
if not StringUtils.IsNullOrEmpty(content.viewCountText)
|
||||||
publishedText = ValidString(content.publishedText)
|
label = `${label} • ${content.viewCountText}`
|
||||||
viewCountText = ValidString(content.viewCountText)
|
|
||||||
if publishedText = "" and viewCountText = ""
|
|
||||||
m.viewCountDateLabel.text = ""
|
|
||||||
else
|
|
||||||
m.viewCountDateLabel.text = `${publishedText} • ${viewCountText}`
|
|
||||||
end if
|
end if
|
||||||
|
m.viewCountDateLabel.text = label
|
||||||
|
else if content.isUpcoming = true
|
||||||
|
m.viewCountDateLabel.text = content.premiereTimestampText
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.thumbnail.uri = content.thumbnail
|
m.thumbnail.uri = content.thumbnail
|
||||||
|
|
||||||
if content.isUpcoming = true
|
m.durationRect.visible = false
|
||||||
m.upcomingRect.visible = true
|
m.upcomingRect.visible = false
|
||||||
m.liveRect.visible = false
|
m.liveRect.visible = false
|
||||||
m.durationRect.visible = false
|
|
||||||
else if content.liveNow
|
if ValidInt(content.lengthSeconds) <> 0
|
||||||
m.upcomingRect.visible = false
|
SetDurationText(content.lengthText)
|
||||||
m.liveRect.visible = true
|
m.durationRect.visible = true
|
||||||
m.durationRect.visible = false
|
|
||||||
else
|
else
|
||||||
m.upcomingRect.visible = false
|
if content.isUpcoming = true
|
||||||
m.liveRect.visible = false
|
m.upcomingRect.visible = true
|
||||||
if ValidInt(content.lengthSeconds) <> 0
|
else if content.liveNow
|
||||||
SetDurationText(content.lengthText)
|
m.liveRect.visible = true
|
||||||
m.durationRect.visible = true
|
|
||||||
else
|
|
||||||
m.durationRect.visible = false
|
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="VideoRowCell" extends="Group">
|
<component name="VideoRowCell" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
@@ -12,7 +10,8 @@
|
|||||||
id="thumbnail"
|
id="thumbnail"
|
||||||
loadDisplayMode="scaleToZoom"
|
loadDisplayMode="scaleToZoom"
|
||||||
width="350"
|
width="350"
|
||||||
height="196">
|
height="196"
|
||||||
|
failedBitmapUri="pkg:/images/thumbnail-missing.jpg">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
id="durationRect"
|
id="durationRect"
|
||||||
width="60"
|
width="60"
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/components/ChannelView/ChannelUtils.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
import "pkg:/components/PlaylistView/PlaylistUtils.bs"
|
||||||
import "pkg:/components/VideoFeed/VideoRowListContentTask.bs"
|
import "pkg:/components/VideoFeed/VideoRowListContentTask.bs"
|
||||||
import "pkg:/components/VideoFeed/VideoRowListRowContentTask.bs"
|
import "pkg:/components/VideoFeed/VideoRowListRowContentTask.bs"
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
||||||
import "pkg:/components/PlaylistView/PlaylistUtils.bs"
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/components/ChannelView/ChannelUtils.bs"
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
' TODO:P1 add the option to remove a row if it does not have any content
|
||||||
|
' E.g. NBC News does not return any related chnanels
|
||||||
function Init()
|
function Init()
|
||||||
m.pendingLoadTasks = {}
|
m.pendingLoadTasks = {}
|
||||||
end function
|
end function
|
||||||
@@ -152,7 +154,7 @@ function GetRowsToLoad() as object
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
subContentNodes = []
|
subContentNodes = []
|
||||||
range = m.top.numRows + 2
|
range = m.top.numRows + 1
|
||||||
for i = -range to range
|
for i = -range to range
|
||||||
index = focus + i
|
index = focus + i
|
||||||
if index < 0
|
if index < 0
|
||||||
@@ -172,6 +174,8 @@ function GetRowsToLoad() as object
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function LoadRowContent(contentNode as object)
|
function LoadRowContent(contentNode as object)
|
||||||
|
LogInfo("Loading row content:", contentNode.title)
|
||||||
|
|
||||||
contentNode.loadState = FeedLoadState.Loading
|
contentNode.loadState = FeedLoadState.Loading
|
||||||
task = StartAsyncTask(VideoRowListRowContentTask, {
|
task = StartAsyncTask(VideoRowListRowContentTask, {
|
||||||
node: m.top,
|
node: m.top,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<component name="VideoRowList" extends="RowList" includes="AutoBind">
|
<component name="VideoRowList" extends="RowList" includes="AutoBind">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="appController" type="node" bind="/AppController" />
|
<field id="appController" type="node" bind="/AppController" />
|
||||||
|
|||||||
@@ -36,6 +36,18 @@ function VideoRowListRowContentTask(input as object) as object
|
|||||||
success: true
|
success: true
|
||||||
}
|
}
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
' Invidious returns 500 and "{"error":"Closed stream"}" when the Popular feed is disabled
|
||||||
|
' TODO:P2 check the endpoint.name instead of contentNode.title to avoid conflict with other feeds
|
||||||
|
if contentNode.title = "Popular" and response.error.instr("Closed stream") > 0
|
||||||
|
LogWarn("Deleting feed", contentNode.title, "-", response.error)
|
||||||
|
parent = contentNode.getParent()
|
||||||
|
parent.removeChild(contentNode)
|
||||||
|
return {
|
||||||
|
success: true
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
|
||||||
contentNode.loadState = FeedLoadState.Error
|
contentNode.loadState = FeedLoadState.Error
|
||||||
contentNode.title += " (Failed to load)"
|
contentNode.title += " (Failed to load)"
|
||||||
return response
|
return response
|
||||||
@@ -43,7 +55,7 @@ function VideoRowListRowContentTask(input as object) as object
|
|||||||
|
|
||||||
instance = service.GetInstance()
|
instance = service.GetInstance()
|
||||||
itemNodes = []
|
itemNodes = []
|
||||||
for each item in response.result
|
for each item in response.result.items
|
||||||
itemNode = InvidiousContent.ToRowCellContentNode(item, instance)
|
itemNode = InvidiousContent.ToRowCellContentNode(item, instance)
|
||||||
if itemNode <> invalid
|
if itemNode <> invalid
|
||||||
itemNodes.Push(itemNode)
|
itemNodes.Push(itemNode)
|
||||||
@@ -53,8 +65,20 @@ function VideoRowListRowContentTask(input as object) as object
|
|||||||
RemovePlaceHolderItems(contentNode)
|
RemovePlaceHolderItems(contentNode)
|
||||||
contentNode.appendChildren(itemNodes)
|
contentNode.appendChildren(itemNodes)
|
||||||
|
|
||||||
if contentNode.pagination = true and response.result.Count() > 0
|
hasContinuation = not StringUtils.IsNullOrEmpty(response.result.continuation)
|
||||||
contentNode.loadState = FeedLoadState.LoadedPage
|
if hasContinuation
|
||||||
|
contentNode.continuation = response.result.continuation
|
||||||
|
end if
|
||||||
|
|
||||||
|
if response.result.items.Count() > 0
|
||||||
|
pageType = contentNode.paginationType
|
||||||
|
if pageType = PaginationType.Continuation and hasContinuation
|
||||||
|
contentNode.loadState = FeedLoadState.LoadedPage
|
||||||
|
else if pageType = PaginationType.Pages
|
||||||
|
contentNode.loadState = FeedLoadState.LoadedPage
|
||||||
|
else
|
||||||
|
contentNode.loadState = FeedLoadState.Loaded
|
||||||
|
end if
|
||||||
else
|
else
|
||||||
contentNode.loadState = FeedLoadState.Loaded
|
contentNode.loadState = FeedLoadState.Loaded
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import "pkg:/source/asyncTask/asyncTask.bs"
|
|
||||||
import "pkg:/components/Services/SponsorBlock/SponsorBlockTask.bs"
|
|
||||||
import "pkg:/components/Services/SponsorBlock/SponsorBlockSegmentViewedTask.bs"
|
|
||||||
import "pkg:/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs"
|
import "pkg:/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs"
|
||||||
|
import "pkg:/components/Services/SponsorBlock/SponsorBlockSegmentViewedTask.bs"
|
||||||
|
import "pkg:/components/Services/SponsorBlock/SponsorBlockTask.bs"
|
||||||
|
import "pkg:/source/asyncTask/asyncTask.bs"
|
||||||
|
|
||||||
namespace SponsorBlock
|
namespace SponsorBlock
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 155 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user