Skip to content

@iamkroot iamkroot released this Sep 28, 2021

Fixes

  • Remove some dead references to Notifier class in config command (#149)
  • Fix incorrect paths for HTTP URLs when played in VLC (#151 - Thanks @sharkykh!)
  • Properly handle RetryError for failed requests
  • Fix start/stop command errors on macOS (#154 - Thanks @riccoyu). Fun fact: the corresponding bug #83 was reported exactly one year before this PR was merged

Improvements

  • Allow specifying the plex token manually via cli (#131)

Installation

  1. trakts stop
  2. pipx uninstall trakt-scrobbler
  3. pipx install trakt-scrobbler
  4. trakts start
Contributors
riccoyu and sharkykh
Assets 4

@iamkroot iamkroot released this Aug 23, 2021

Fixes a bug when updating to v1.3.0 (#145)

Installation

  1. trakts stop
  2. pipx upgrade trakt-scrobbler
  3. trakts start
Assets 4

@iamkroot iamkroot released this Aug 19, 2021

Installation

  1. trakts stop
  2. pipx uninstall trakt-scrobbler
  3. pipx install trakt-scrobbler==1.3.0
  4. trakts start
Assets 4
Pre-release
Pre-release

@iamkroot iamkroot released this Jul 17, 2021

Features

  • cli: New trakts lookup command - To assist you with manually specifying the Trakt ID of a media in trakt_cache.json (See #95 (comment) and #129 (comment))
  • cli: trakts whitelist can how handle remote URLs. Run trakts whitelist add --help for full docs or consult the wiki
  • trakt: We now retry the search without the year if it yielded no results the first time around (#130) Thanks @JRFarmer

Fixes

  • file_info: Only use the path portion of the remote URL for media info extraction, excluding the domain name (See #125)
  • file_info: Unquote http-encoded symbols in remote URLs

Installation

  1. trakts stop
  2. pipx upgrade --pip-args='--pre' trakt-scrobbler==1.3.0b2
  3. trakts start
Contributors
JRFarmer
Assets 4
Pre-release
Pre-release

@iamkroot iamkroot released this Jun 13, 2021

Features

  • Send notification on unhandled exception (#116)
  • file_info: Add exclude_patterns feature (#118) Files matching these patterns will be ignored, even if they are whitelisted.
  • utils: Handle Ratelimiting from trakt (#96)
  • Notification Categories: You can now enable/disable notifications for specific categories. Currently, these are: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt. (#117)
  • MPV Wrappers: Support has been added for two new players: SMPlayer and Syncplay when they are configured to use mpv under the hood.
  • HTTP Links: The scrobbler can now handle files on http servers, which are played directly without downloading first (#114)

Fixes

  • utils: Fix ResumableTimer logic
  • MPC-HC: Fix unhandled KeyError in variable extraction (#115)
  • Handle ConnectionResetError in mpv (#111)
  • mpv: Add timeout when trying to write to socket
  • mpv: Handle ConnectionRefusedError during startup

Installation

Run pipx upgrade trakt-scrobbler==1.3.0b1

Assets 4

@iamkroot iamkroot released this Mar 24, 2021

Some selected updates:

  • Replaceable notifications using DBus for Linux (#103) (thanks @ahmubashshir)
  • Windows: Rewrite MPV monitor with Pipe API (should be more efficient)
  • Add fallback for http-password missing in config of older VLC versions (#108) (thanks @ms-test2)
  • mpv: Ignore files being served using http(s) (like youtube vids)

Full commit list here.

Installation

pipx upgrade trakt-scrobbler

Assets 4

@iamkroot iamkroot released this Jan 17, 2021

See descriptions from previous v1.2.0 beta releases for changelog.

Installation

pipx upgrade trakt-scrobbler

Assets 4
Pre-release
Pre-release

@iamkroot iamkroot released this Dec 26, 2020

  • The Plex monitor now uses the Year field from media metadata to filter results when searching Trakt. (See #100)
  • The scrobbler now properly handles "409 Already Exists" response from trakt server, which should prevent duplicate scrobbles in some cases.
Assets 4
Pre-release

@iamkroot iamkroot released this Dec 5, 2020

New modes

This release adds new logic to the monitors to allow two new modes:

Preview mode

When the file being played starts with >80% progress, it usually means the file has been played/finished previously and because the player supports "save progress at exit" functionality, we resumed at that point. In such cases, we don't want the scrobble to happen, and in the previous version, this would lead to duplicate "watched" media on trakt.

New behaviour

Now, if the monitor notices that a file has started at >80%, it will enter a "preview" mode. This lasts for 60 seconds by default (can be configured using players.preview_duration config parameter), and at the end of this, if the same file is still being played, it'll scrobble "start" and continue as if it is a normal session (all later scrobbles will happen instantly). However, if it detects that the media is changed within these 60 seconds, it'll assume that you didn't really want to watch it, and no scrobbles will be sent to trakt at all.

Configuration changes

Added:

  • players.preview_threshold: min progress (in %) at which file should be opened for preview mode to get triggered. Default: 80
  • players.preview_duration: in seconds. How long the monitor should wait before sending scrobbles. Default: 60

Disabling

In case you want to disable this new behaviour, set the players.preview_threshold config param to 100. This way, the preview mode will never be triggered.

Fast pause mode

This feature is mainly for mpv, and other players where we get instant media events (as opposed to VLC, Plex and MPC-HC where we poll for events every 10 seconds). The step-forward command in mpv allows the user to step through the media keyframes one-by-one. At every such event, mpv sends a 'play', immediately followed by 'pause' events, and this happens every time step-forward is invoked. Previously the monitor was dumb, and would scrobble each of these events immediately, causing lots of unnecessary API requests to trakt.

New behaviour

Now, if the monitor notices that the player sent a 'play' followed by 'pause' within 1 second, it will scrobble this pause, and enter the "fast pause" mode. If the monitor gets a new 'play' event in this mode, it will wait for 5 seconds before scrobbling it. In those 5 seconds, if the player again sends a 'pause' (meaning the user invoked step-forward once), it will nullify the earlier 'play' and the monitor won't scrobble anything. To exit the mode, the 'play' event has to last for >5 seconds (or you can always stop the file).

Configuration changes

Added:

  • players.fast_pause_threshold: in seconds. Max time elapsed between a "play->pause" transition for fast pause mode to get triggered. Default: 1
  • players.fast_pause_duration: in seconds. How long the monitor should wait before sending scrobbles. Default: 5

Disabling

To disable this behaviour, set the players.fast_pause_threshold config param to 0. This will cause the fast pause mode to never get triggered (assuming time never runs backward 😉).

Other changes

  • Add timeouts to Trakt API requests, to handle cases when the server takes too long to respond. Should be mostly invisible to the user.
  • #93 Fix incorrect season number for special eps (S00 format)
  • Add backlog purge command to delete the backlog, without trying to sync with Trakt.

Installation

Since this is a beta version, to install this pre-release, use pipx upgrade --pip-args="--pre" trakt-scrobbler

Assets 4

@iamkroot iamkroot released this Nov 6, 2020

  • Fix trakts start behaviour on Windows (#78)
  • Make timers configurable for mpv
  • Handle bool values specially in config command (#89)
  • Dependency updates
Assets 4