Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
fix: missing like count
Browse files Browse the repository at this point in the history
  • Loading branch information
skick1234 committed Dec 10, 2022
1 parent 96c9930 commit c37e114
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 197 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ scPlugin.search("A SoundCloud Playlist", "playlist", 3); // class method
#### Example

```js
new SpotifyPlugin({
new SoundCloudPlugin({
clientId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
oauthToken: "0-000000-000000000-xxxxxxxxxxxxxx",
});
Expand Down
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class SoundCloudTrack implements OtherSongInfo {
thumbnail: string;
duration: number;
views: number;
likes: number;
reposts: number;
uploader: string;
uploader_url: string;
Expand All @@ -128,6 +129,7 @@ class SoundCloudTrack implements OtherSongInfo {
this.thumbnail = info.artwork_url;
this.duration = info.duration / 1000;
this.views = info.playback_count;
this.likes = info.likes_count;
this.reposts = info.reposts_count;
this.uploader = info.user?.username;
this.uploader_url = info.user?.permalink_url;
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@distube/soundcloud",
"version": "1.3.0",
"description": "Soundcloud plugin for DisTube.js.org",
"description": "SoundCloud plugin for DisTube.js.org",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"exports": "./dist/index.js",
Expand Down Expand Up @@ -44,22 +44,22 @@
"@commitlint/config-conventional": "^17.3.0",
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.14.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"commitlint": "^17.3.0",
"discord.js": "^14.7.1",
"distube": "^4.0.4",
"eslint": "^8.28.0",
"eslint": "^8.29.0",
"eslint-config-distube": "^1.6.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-deprecation": "^1.3.3",
"eslint-plugin-jsdoc": "^39.6.4",
"husky": "^8.0.2",
"nano-staged": "^0.8.0",
"pinst": "^3.0.0",
"prettier": "^2.8.0",
"prettier": "^2.8.1",
"tsup": "^6.5.0",
"typescript": "^4.9.3"
"typescript": "^4.9.4"
},
"dependencies": {
"soundcloud.ts": "^0.4.9"
Expand Down
Loading

0 comments on commit c37e114

Please sign in to comment.