Skip to content

Commit

Permalink
Fixed issue with adding/injecting things into the queue - duration wa…
Browse files Browse the repository at this point in the history
…s always 0. Changed ci to run with npm 14.
  • Loading branch information
Joe Ipson committed Apr 6, 2021
1 parent a565af6 commit 8d668d5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 10
node-version: 14

- run: npm ci
- run: npm run electron:build -p always
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jellyamp",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"description": "Desktop client for listening to music from a Jellyfin server",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/services/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class Player {

item.artist = item.Artists[0] || item.AlbumArtist;
item.loved = item.UserData.IsFavorite || false;
item.duration = Math.floor(item.RunTimeTicks / ticksInSecond);

return item;
});
Expand All @@ -136,6 +137,7 @@ class Player {

item.artist = item.Artists[0] || item.AlbumArtist;
item.loved = item.UserData.IsFavorite || false;
item.duration = Math.floor(item.RunTimeTicks / ticksInSecond);

return item;
});
Expand Down

0 comments on commit 8d668d5

Please sign in to comment.