Skip to content

bug: log level changes functionality #23

Description

@CazSaa

Bug Report

scrobblex version:

v1.5.1

Current behavior:

Functionality is impacted by log level.

Expected behavior:

All scrobbling events should be handled regardless of log level.

Related code:

scrobblex/src/utils.js

Lines 41 to 43 in dcb4343

const scrobblingEvents = process.env.LOG_LEVEL === 'debug'
? ['media.play', 'media.pause', 'media.resume', 'media.scrobble']
: ['media.scrobble'];

Other information:

This is kind of a duplicate of #19, but I feel like this is a bug, or at least unexpected behaviour.

Scrobblex wasn't working for me so i changed the log level to debug. It started working then, and stopped working when i changed the log level back to the default.

Judging from this Plex support article, the srobble event is only sent when the media is finished, while the intended functionality, i think, is to also track current watch progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions