Jump to content

Music Play Count - Can it be reset to -0- ?


Recommended Posts

Embodiment
Posted

On another post I had discovered sometime ago an issue with the Beta version which was double-counting the play counts. I assume that has been fixed.

Is there a way I can reset my Music play count on my installation of Emby server on my Unraid server to -0-? 

 

 

 

Happy2Play
Posted (edited)

Officially no as there is no context options for music played/unplayed.

You can use the api and mark the whole library as played/unplayed per parentid shown in the url via the web client (along with your userid).  You can see a link to the api at the bottom your your Dashboard in the web client.

PlaystateService

 

image.thumb.png.d0977845fd0d8a2c94e3dbb99fdbace1.png

Edited by Happy2Play
Posted

Right currently no but we should add a way to do this.

Embodiment
Posted

When I open it up in Chrome, I found this below, but now sure what to do with it. My screen was basically all test, no listing as above.

"/Users/{UserId}/PlayedItems/{Id}/Delete": {
      "summary": "Marks an item as unplayed",
      "post": {
        "tags": [
          "PlaystateService"
        ],
        "summary": "Marks an item as unplayed",
        "description": "Requires authentication as user",
        "operationId": "postUsersByUseridPlayeditemsByIdDelete",
        "parameters": [
          {
            "name": "UserId",
            "in": "path",
            "description": "User Id",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"

 

Happy2Play
Posted
3 minutes ago, Embodiment said:

When I open it up in Chrome, I found this below, but now sure what to do with it. My screen was basically all test, no listing as above.

"/Users/{UserId}/PlayedItems/{Id}/Delete": {
      "summary": "Marks an item as unplayed",
      "post": {
        "tags": [
          "PlaystateService"
        ],
        "summary": "Marks an item as unplayed",
        "description": "Requires authentication as user",
        "operationId": "postUsersByUseridPlayeditemsByIdDelete",
        "parameters": [
          {
            "name": "UserId",
            "in": "path",
            "description": "User Id",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"

 

From the UI you just enter Userid and Parentid. 

My example from my test system.  You can use Delete or Post.

image.thumb.png.558e21d7b43ca544ebfe6bfe63f4021b.png

You can see your userid in your URL in user settings.

image.png.4341ddbb93db0acc1728dc18642fd158.png

And library parentid within the library

image.png.272313336b73132526f84281e3b16f2f.png

Embodiment
Posted

It worked! Little tricky, which would be nice to have a simple reset button. But if the current version doesn't double count anymore, I should be good.

Mega thank you, that took some effort to get those screen captures!

  • Thanks 1
Posted (edited)

I appreciate my last post was moved because the beta version I am on still has the issue despite resetting the counter to -0-. 

However, perhaps at least mentioning the issue with the beta here is appropriate in case someone does a random search, makes the change, and cannot figure out why the counts are still double? Without this disclosure, they may end up thinking they did the clearing process incorrectly. I defer to your final judgement.

Edited by Embodiment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...