Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable scrobbling temporarily from within an addon #651

Open
Gujal00 opened this issue Jun 4, 2024 · 3 comments
Open

How to disable scrobbling temporarily from within an addon #651

Gujal00 opened this issue Jun 4, 2024 · 3 comments

Comments

@Gujal00
Copy link

Gujal00 commented Jun 4, 2024

When trailers are watched through IMdB-Trailers addon, scrobbling marks the movie as watched

Expected Behavior

Advice needed if from within an addon scrobbling can be disabled for the time the addon is running

Current Behavior

For example if you play the trailer for "Civil War" from the IMdB-trailers addon, I can see that it is doing a post to https://api.trakt.tv/scrobble/start with the following data
{"progress": 2.3650602409638557, "app_version": "4.4.0", "app_date": null, "movie": {"title": "Civil War", "year": 2024}}

when the trailer finishes i can see a post to https://api.trakt.tv/scrobble/stop with the following data
{"progress": 99.17469879518072, "app_version": "4.4.0", "app_date": null, "movie": {"title": "Civil War", "year": 2024}}
and the response has "action":"scrobble"

So when the trailer finishes, it shows up in my trakt history as if the movie has been watched

please help on how to overcome this issue in the IMdB-trailers addon

Possible Solution

a Joson-rpc call to indicate 'Do not scrobble' which could be utilised when the marking the listitem as resolved for playback

Context

Watching trailers in the addon causes all the movies marked as watched in trakt misleadingly.

Your Environment

  • Version used: 3.6.1
  • Kodi version used: 21.0
  • Operating System and version: Windows 10 22H2
@razzeee
Copy link
Collaborator

razzeee commented Jun 4, 2024

Try the exclude plugin setting and see if that keep it from happening (or is it a script?)

If that helps, you should be able to ignore it, by setting the plugin as exclude path by adding it's name to plugin://

if fullpath.startswith("plugin://") and getSettingAsBool("ExcludePlugin"):

@Gujal00
Copy link
Author

Gujal00 commented Jun 5, 2024

That will stop scrobbling for all addons such as Netflix and Prime. The intention is to disable for a specific addon from within the video addon itself programmatically such as Imdb-trailers which shouldnt be scrobbled

@razzeee
Copy link
Collaborator

razzeee commented Jun 5, 2024

That's what I said, if that works, you can just set the correct path to be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants