Skip to content

Commit

Permalink
docs: rename variable in Major-Upgrade-Guide.md (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
manhbi18112005 authored Oct 27, 2024
1 parent c315d34 commit 2836db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/Major-Upgrade-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ytPlugin.search(query, { type: "video", limit: 5, safeSearch: true }).then(conso
- const ageRestricted = song.age_restricted
+ const ageRestricted = song.ageRestricted
- const duration = song.duration
+ const streamURL = song.stream.playFromSource ? song.duration : song.stream.song.duration
+ const duration = song.stream.playFromSource ? song.duration : song.stream.song.duration
- const streamURL = song.streamURL
+ const streamURL = song.stream.playFromSource ? song.stream.url : song.stream.song.stream.url
```
Expand Down

0 comments on commit 2836db0

Please sign in to comment.