streamify-audio 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "streamify-audio",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Dual-mode audio library: HTTP streaming proxy + Discord player (Lavalink alternative). Supports YouTube, Spotify, SoundCloud with audio filters.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -180,7 +180,11 @@ class Manager extends EventEmitter {
180
180
  if (session.currentTrack) {
181
181
  const track = deserializeTrack(session.currentTrack);
182
182
  log.info('MANAGER', `[RESTORE] Playing track: ${track.title}`);
183
- await player.play(track);
183
+ try {
184
+ await player.play(track);
185
+ } catch (playErr) {
186
+ log.error('MANAGER', `[RESTORE] Play error: ${playErr.message}`);
187
+ }
184
188
  log.info('MANAGER', `[RESTORE] Track play() returned`);
185
189
 
186
190
  if (session.positionMs > 0 && !track.isLive && options.seekToPosition !== false) {