Compare commits

..
7 Commits
Author SHA1 Message Date
Brahim Hadriche da417f4fb2 Update docs 2024-04-27 10:51:38 -04:00
github-actions[bot]andiBicha 797b536380 Release v0.23.2 (#366)
Co-authored-by: iBicha <iBicha@users.noreply.github.com>
2024-04-27 10:47:20 -04:00
Brahim Hadriche 8016d66a46 remove default 2024-04-27 10:43:56 -04:00
Brahim Hadriche b08e7c07f3 Add a release trigger for faster releases 2024-04-27 10:42:52 -04:00
Brahim Hadriche a018264f76 Update announcement 2024-04-27 10:22:02 -04:00
github-actions[bot]andiBicha 416a1b86d4 update dependencies (#365)
Co-authored-by: iBicha <iBicha@users.noreply.github.com>
2024-04-26 20:55:38 -04:00
Brahim Hadriche 2e826e02cd Fix for api/queue wrong response parsing 2024-04-25 22:33:06 -04:00
17 changed files with 170 additions and 76 deletions

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
name: Release trigger
on:
workflow_dispatch:
inputs:
version:
description: "Release version"
required: true
jobs:
release-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Set package version
run: npm version ${{ github.event.inputs.version }} --no-git-tag-version
# Replace "## [Unreleased]" with "## [X.Y.Z] - YYYY-MM-DD" in CHANGELOG.md
- name: Set changelog version
run: |
sed -i "s/## \[Unreleased\]/## \[${{ github.event.inputs.version }}\] - $(date +%Y-%m-%d)/" CHANGELOG.md
- name: Build for release
run: npm run build:release || exit 0
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Release v${{ github.event.inputs.version }}"
branch: release/${{ github.event.inputs.version }}
title: "Release v${{ github.event.inputs.version }}"
body: "Release ${{ github.event.inputs.version }}. See CHANGELOG.md and roadmap #6 for details."
+10
View File
@@ -5,6 +5,16 @@ 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.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.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).
## [Unreleased]
- Nothing worth mentioning yet
## [0.23.2] - 2024-04-27
### Changed
- Updated announcement
## [0.23.1] - 2024-04-24 ## [0.23.1] - 2024-04-24
### Added ### Added
+5 -10
View File
@@ -13,16 +13,11 @@ These are mostly the steps when releasing a new version:
## Playlet lib ## Playlet lib
- Create local branch `release/$VERSION` e.g. `release/0.10.0` - Use the [Release trigger](https://github.com/iBicha/playlet/actions/workflows/release-trigger.yml) to trigger a release
- Set version in package.json - Run workflow from **main** branch
- Update CHANGELOG.md section from `[Unreleased]` to `[$VERSION] - DATE` - Set the new version in the format X.Y.Z
- `npm run build:release` - Wait for the PR to be created
- This should fail because there are uncommitted changes. This is expected. - Inspect PR, wait for CI and merge
- Commit changes
- Create pull request
- Title: `Release v$VERSION`
- Comment: `Release $VERSION \nIt should contain everything planned from #6`
- Wait for CI and merge
- Wait for CI on main branch to create the `canary` release - Wait for CI on main branch to create the `canary` release
- Edit `canary` release - Edit `canary` release
- Tag: `v$VERSION` - Tag: `v$VERSION`
+1 -1
View File
@@ -2,7 +2,7 @@ openapi: 3.0.0
info: info:
title: Playlet Web API title: Playlet Web API
version: 0.23.1 version: 0.23.2
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
+48 -21
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.23.1", "version": "0.23.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet", "name": "playlet",
"version": "0.23.1", "version": "0.23.2",
"hasInstallScript": true, "hasInstallScript": true,
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.20", "@rokucommunity/bslint": "^0.8.20",
@@ -27,7 +27,7 @@
"imap": "^0.8.19", "imap": "^0.8.19",
"ip": "^2.0.1", "ip": "^2.0.1",
"json5": "^2.2.3", "json5": "^2.2.3",
"mailparser": "^3.7.0", "mailparser": "^3.7.1",
"roku-deploy": "^3.12.0", "roku-deploy": "^3.12.0",
"rooibos-roku": "5.12.0", "rooibos-roku": "5.12.0",
"rounded-rect-9patch": "^1.0.1", "rounded-rect-9patch": "^1.0.1",
@@ -2959,17 +2959,26 @@
"dev": true "dev": true
}, },
"node_modules/libmime": { "node_modules/libmime": {
"version": "5.3.4", "version": "5.3.5",
"resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.4.tgz", "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.5.tgz",
"integrity": "sha512-TsqPdercr6DHrnoQx1F0nS2Y4yPT+fWuOjEP2rqzvV77hMYWomTe/rpm0u9JORQ/FavEXybAGcBJsQbLr9+hjA==", "integrity": "sha512-nSlR1yRZ43L3cZCiWEw7ali3jY29Hz9CQQ96Oy+sSspYnIP5N54ucOPHqooBsXzwrX1pwn13VUE05q4WmzfaLg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"encoding-japanese": "2.0.0", "encoding-japanese": "2.1.0",
"iconv-lite": "0.6.3", "iconv-lite": "0.6.3",
"libbase64": "1.3.0", "libbase64": "1.3.0",
"libqp": "2.1.0" "libqp": "2.1.0"
} }
}, },
"node_modules/libmime/node_modules/encoding-japanese": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.1.0.tgz",
"integrity": "sha512-58XySVxUgVlBikBTbQ8WdDxBDHIdXucB16LO5PBHR8t75D54wQrNo4cg+58+R1CtJfKnsVsvt9XlteRaR8xw1w==",
"dev": true,
"engines": {
"node": ">=8.10.0"
}
},
"node_modules/libmime/node_modules/iconv-lite": { "node_modules/libmime/node_modules/iconv-lite": {
"version": "0.6.3", "version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
@@ -3079,21 +3088,30 @@
} }
}, },
"node_modules/mailparser": { "node_modules/mailparser": {
"version": "3.7.0", "version": "3.7.1",
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.7.0.tgz", "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.7.1.tgz",
"integrity": "sha512-yFo1+4r3gHhTcazVGCv3D/uX5VJyyrx4iWkzKtJh8mujYIUm92kpG5BjKpZIJgEoKcKxbJVd4CPs+IImE1sKlQ==", "integrity": "sha512-RCnBhy5q8XtB3mXzxcAfT1huNqN93HTYYyL6XawlIKycfxM/rXPg9tXoZ7D46+SgCS1zxKzw+BayDQSvncSTTw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"encoding-japanese": "2.0.0", "encoding-japanese": "2.1.0",
"he": "1.2.0", "he": "1.2.0",
"html-to-text": "9.0.5", "html-to-text": "9.0.5",
"iconv-lite": "0.6.3", "iconv-lite": "0.6.3",
"libmime": "5.3.4", "libmime": "5.3.5",
"linkify-it": "5.0.0", "linkify-it": "5.0.0",
"mailsplit": "5.4.0", "mailsplit": "5.4.0",
"nodemailer": "6.9.11", "nodemailer": "6.9.13",
"punycode": "2.3.1", "punycode.js": "2.3.1",
"tlds": "1.250.0" "tlds": "1.252.0"
}
},
"node_modules/mailparser/node_modules/encoding-japanese": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.1.0.tgz",
"integrity": "sha512-58XySVxUgVlBikBTbQ8WdDxBDHIdXucB16LO5PBHR8t75D54wQrNo4cg+58+R1CtJfKnsVsvt9XlteRaR8xw1w==",
"dev": true,
"engines": {
"node": ">=8.10.0"
} }
}, },
"node_modules/mailparser/node_modules/iconv-lite": { "node_modules/mailparser/node_modules/iconv-lite": {
@@ -3488,9 +3506,9 @@
} }
}, },
"node_modules/nodemailer": { "node_modules/nodemailer": {
"version": "6.9.11", "version": "6.9.13",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.11.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.13.tgz",
"integrity": "sha512-UiAkgiERuG94kl/3bKfE8o10epvDnl0vokNEtZDPTq9BWzIl6EFT9336SbIT4oaTBD8NmmUTLsQyXHV82eXSWg==", "integrity": "sha512-7o38Yogx6krdoBf3jCAqnIN4oSQFx+fMa0I7dK1D+me9kBxx12D+/33wSb+fhOCtIxvYJ+4x4IMEhmhCKfAiOA==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=6.0.0" "node": ">=6.0.0"
@@ -3913,6 +3931,15 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/punycode.js": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
"integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
"dev": true,
"engines": {
"node": ">=6"
}
},
"node_modules/puppeteer": { "node_modules/puppeteer": {
"version": "13.7.0", "version": "13.7.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-13.7.0.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-13.7.0.tgz",
@@ -4806,9 +4833,9 @@
"dev": true "dev": true
}, },
"node_modules/tlds": { "node_modules/tlds": {
"version": "1.250.0", "version": "1.252.0",
"resolved": "https://registry.npmjs.org/tlds/-/tlds-1.250.0.tgz", "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.252.0.tgz",
"integrity": "sha512-rWsBfFCWKrjM/o2Q1TTUeYQv6tHSd/umUutDjVs6taTuEgRDIreVYIBgWRWW4ot7jp6n0UVUuxhTLWBtUmPu/w==", "integrity": "sha512-GA16+8HXvqtfEnw/DTcwB0UU354QE1n3+wh08oFjr6Znl7ZLAeUgYzCcK+/CCrOyE0vnHR8/pu3XXG3vDijXpQ==",
"dev": true, "dev": true,
"bin": { "bin": {
"tlds": "bin.js" "tlds": "bin.js"
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.23.1", "version": "0.23.2",
"description": "Unofficial YouTube client for Roku", "description": "Unofficial YouTube client for Roku",
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.20", "@rokucommunity/bslint": "^0.8.20",
@@ -21,7 +21,7 @@
"imap": "^0.8.19", "imap": "^0.8.19",
"ip": "^2.0.1", "ip": "^2.0.1",
"json5": "^2.2.3", "json5": "^2.2.3",
"mailparser": "^3.7.0", "mailparser": "^3.7.1",
"roku-deploy": "^3.12.0", "roku-deploy": "^3.12.0",
"rooibos-roku": "5.12.0", "rooibos-roku": "5.12.0",
"rounded-rect-9patch": "^1.0.1", "rounded-rect-9patch": "^1.0.1",
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.23.1", "version": "0.23.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.23.1" "version": "0.23.2"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.23.1", "version": "0.23.2",
"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 -1
View File
@@ -3,7 +3,7 @@ title=Playlet
# Do not update version manually, it is auto updated from package.json # Do not update version manually, it is auto updated from package.json
major_version=0 major_version=0
minor_version=23 minor_version=23
build_version=00001 build_version=00002
ui_resolutions=hd ui_resolutions=hd
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.23.1", "version": "0.23.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.23.1" "version": "0.23.2"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.23.1", "version": "0.23.2",
"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",
+15 -4
View File
@@ -37,10 +37,18 @@ function ShowAnnouncement()
title = "Announcement" title = "Announcement"
message = [ message = [
"YouTube has made changes that broke 3rd party apps, which is affecting Playlet and Invidious.", "Invidious was experiencing an outage, and a fix has been deployed.",
"Some videos might not play, and you might see error messages often.", "If you are experiencing issues playing videos:",
"We're aware of the issue, and working on a fix.", ]
"We apologize for the inconvenience.",
bulletText = [
"For custom Invidious instances, please update to the latest version.",
"For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.04.27 or newer."
]
bottomMessage = [
"If you don't know what instance you're using, follow the instructions from step 2."
"We apologize for the inconvenience."
] ]
buttons = [Tr(Locale.Buttons.OK)] buttons = [Tr(Locale.Buttons.OK)]
@@ -48,6 +56,9 @@ function ShowAnnouncement()
dialog = CreateObject("roSGNode", "SimpleDialog") dialog = CreateObject("roSGNode", "SimpleDialog")
dialog.title = title dialog.title = title
dialog.message = message dialog.message = message
dialog.bulletText = bulletText
dialog.bulletType = "numbered"
dialog.bottomMessage = bottomMessage
dialog.buttons = buttons dialog.buttons = buttons
deviceInfo = CreateObject("roDeviceInfo") deviceInfo = CreateObject("roDeviceInfo")
displaySize = deviceInfo.GetDisplaySize() displaySize = deviceInfo.GetDisplaySize()
@@ -35,9 +35,15 @@ end function
function ShowAnnouncement() function ShowAnnouncement()
title = "Announcement" title = "Announcement"
message = [ message = [
"YouTube has made changes that broke 3rd party apps, which is affecting Playlet and Invidious." "Invidious was experiencing an outage, and a fix has been deployed."
"Some videos might not play, and you might see error messages often." "If you are experiencing issues playing videos:"
"We're aware of the issue, and working on a fix." ]
bulletText = [
"For custom Invidious instances, please update to the latest version."
"For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.04.27 or newer."
]
bottomMessage = [
"If you don't know what instance you're using, follow the instructions from step 2."
"We apologize for the inconvenience." "We apologize for the inconvenience."
] ]
buttons = [ buttons = [
@@ -46,6 +52,9 @@ function ShowAnnouncement()
dialog = CreateObject("roSGNode", "SimpleDialog") dialog = CreateObject("roSGNode", "SimpleDialog")
dialog.title = title dialog.title = title
dialog.message = message dialog.message = message
dialog.bulletText = bulletText
dialog.bulletType = "numbered"
dialog.bottomMessage = bottomMessage
dialog.buttons = buttons dialog.buttons = buttons
deviceInfo = CreateObject("roDeviceInfo") deviceInfo = CreateObject("roDeviceInfo")
displaySize = deviceInfo.GetDisplaySize() displaySize = deviceInfo.GetDisplaySize()
+1 -1
View File
@@ -3,7 +3,7 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json # Do not update version manually, it is auto updated from package.json
major_version=0 major_version=0
minor_version=23 minor_version=23
build_version=00001 build_version=00002
ui_resolutions=hd ui_resolutions=hd
+18 -18
View File
@@ -1,15 +1,15 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.23.1", "version": "0.23.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-web", "name": "playlet-web",
"version": "0.23.1", "version": "0.23.2",
"devDependencies": { "devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.0", "@sveltejs/vite-plugin-svelte": "^3.1.0",
"@tailwindcss/typography": "^0.5.12", "@tailwindcss/typography": "^0.5.13",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.4",
"@vitejs/plugin-legacy": "^5.3.2", "@vitejs/plugin-legacy": "^5.3.2",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
@@ -18,13 +18,13 @@
"ip": "^2.0.1", "ip": "^2.0.1",
"postcss": "^8.4.38", "postcss": "^8.4.38",
"svelte": "^4.2.15", "svelte": "^4.2.15",
"svelte-check": "^3.6.9", "svelte-check": "^3.7.0",
"svelte-preprocess": "^5.1.4", "svelte-preprocess": "^5.1.4",
"tailwindcss": "^3.4.3", "tailwindcss": "^3.4.3",
"terser": "^5.30.3", "terser": "^5.30.4",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"vite": "^5.2.9", "vite": "^5.2.10",
"vite-tsconfig-paths": "^4.3.2" "vite-tsconfig-paths": "^4.3.2"
} }
}, },
@@ -2386,9 +2386,9 @@
} }
}, },
"node_modules/@tailwindcss/typography": { "node_modules/@tailwindcss/typography": {
"version": "0.5.12", "version": "0.5.13",
"resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.12.tgz", "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.13.tgz",
"integrity": "sha512-CNwpBpconcP7ppxmuq3qvaCxiRWnbhANpY/ruH4L5qs2GCiVDJXde/pjj2HWPV1+Q4G9+V/etrwUYopdcjAlyg==", "integrity": "sha512-ADGcJ8dX21dVVHIwTRgzrcunY6YY9uSlAHHGVKvkA+vLc5qLwEszvKts40lx7z0qc4clpjclwLeK5rVCV2P/uw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"lodash.castarray": "^4.4.0", "lodash.castarray": "^4.4.0",
@@ -4246,9 +4246,9 @@
} }
}, },
"node_modules/svelte-check": { "node_modules/svelte-check": {
"version": "3.6.9", "version": "3.7.0",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.6.9.tgz", "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.7.0.tgz",
"integrity": "sha512-hDQrk3L0osX07djQyMiXocKysTLfusqi8AriNcCiQxhQR49/LonYolcUGMtZ0fbUR8HTR198Prrgf52WWU9wEg==", "integrity": "sha512-Va6sGL4Vy4znn0K+vaatk98zoBvG2aDee4y3r5X4S80z8DXfbACHvdLlyXa4C4c5tQzK9H0Uq2pbd20wH3ucjQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@jridgewell/trace-mapping": "^0.3.17", "@jridgewell/trace-mapping": "^0.3.17",
@@ -4410,9 +4410,9 @@
} }
}, },
"node_modules/terser": { "node_modules/terser": {
"version": "5.30.3", "version": "5.30.4",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.30.3.tgz", "resolved": "https://registry.npmjs.org/terser/-/terser-5.30.4.tgz",
"integrity": "sha512-STdUgOUx8rLbMGO9IOwHLpCqolkDITFFQSMYYwKE1N2lY6MVSaeoi10z/EhWxRc6ybqoVmKSkhKYH/XUpl7vSA==", "integrity": "sha512-xRdd0v64a8mFK9bnsKVdoNP9GQIKUAaJPTaqEQDL4w/J8WaW4sWXXoMZ+6SimPkfT5bElreXf8m9HnmPc3E1BQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@jridgewell/source-map": "^0.3.3", "@jridgewell/source-map": "^0.3.3",
@@ -4588,9 +4588,9 @@
"dev": true "dev": true
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "5.2.9", "version": "5.2.10",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.2.9.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.10.tgz",
"integrity": "sha512-uOQWfuZBlc6Y3W/DTuQ1Sr+oIXWvqljLvS881SVmAj00d5RdgShLcuXWxseWPd4HXwiYBFW/vXHfKFeqj9uQnw==", "integrity": "sha512-PAzgUZbP7msvQvqdSD+ErD5qGnSFiGOoWmV5yAKUEI0kdhjbH6nMWVyZQC/hSc4aXwc0oJ9aEdIiF9Oje0JFCw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"esbuild": "^0.20.1", "esbuild": "^0.20.1",
+5 -5
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.23.1", "version": "0.23.2",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@@ -10,7 +10,7 @@
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.0", "@sveltejs/vite-plugin-svelte": "^3.1.0",
"@tailwindcss/typography": "^0.5.12", "@tailwindcss/typography": "^0.5.13",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.4",
"@vitejs/plugin-legacy": "^5.3.2", "@vitejs/plugin-legacy": "^5.3.2",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
@@ -19,13 +19,13 @@
"ip": "^2.0.1", "ip": "^2.0.1",
"postcss": "^8.4.38", "postcss": "^8.4.38",
"svelte": "^4.2.15", "svelte": "^4.2.15",
"svelte-check": "^3.6.9", "svelte-check": "^3.7.0",
"svelte-preprocess": "^5.1.4", "svelte-preprocess": "^5.1.4",
"tailwindcss": "^3.4.3", "tailwindcss": "^3.4.3",
"terser": "^5.30.3", "terser": "^5.30.4",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"vite": "^5.2.9", "vite": "^5.2.10",
"vite-tsconfig-paths": "^4.3.2" "vite-tsconfig-paths": "^4.3.2"
} }
} }
+2 -4
View File
@@ -94,16 +94,14 @@ export class PlayletApi {
args.timestamp = parseInt(args.timestamp); args.timestamp = parseInt(args.timestamp);
} }
} }
const response = await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args); await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
return await response.json();
} }
static async queuePlaylist(args) { static async queuePlaylist(args) {
if (!args.playlistId) { if (!args.playlistId) {
return; return;
} }
const response = await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args); await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
return await response.json();
} }
static async openPlaylist(playlistId) { static async openPlaylist(playlistId) {