kjhedges 67 Posted Friday at 10:33 AM Posted Friday at 10:33 AM I am currently in the process of creating myself a js script for discord notifications. I created a Trending channel and it gathers info and posts to relevant channel. my issue is that Monk appears to show 19604 plays from 1 user. This is not correct i know for sure. Is this a common issue, which would then render my script for trending pointless.
visproduction 338 Posted Friday at 03:46 PM Posted Friday at 03:46 PM Are the play counts grabbing multiple sequential media requests, so it counts a play for every 7 second media download?
kjhedges 67 Posted Saturday at 09:03 AM Author Posted Saturday at 09:03 AM I am grabbing the data from the server. I then store some data in an sqlite db to save on pings to the server. The Trending section is run once a day and all information for that comes from the server on request. I setup a server query in js to collect the information from the server. I collect varied data for relevant discord channels, Emby Auth, Now Playing, New Content, Trending on Emby and Recommendations. With the Episode/Series trending section, I use UserDataPlayCount with UserDataLastPlayedDate for all users. I set it to display items played within last month, but the total plays it total. Prior to this I did just have it set for PlayCount. Which showed the top 5 Series trending and the top 5 Movies trending. (This also showed Monk as 19604 plays) As you can see with the movies, with similar code that appears to be working correctly. To me, it just appears that The Series of Monk has wrong information on playcount.
Luke 42265 Posted 1 hour ago Posted 1 hour ago In the server api, series objects do not have a play count. You get that information by adding the play counts of all the episodes. So assuming you are doing that correctly, the next step to debugging is identifying what episode has an incorrect play count, and then try to figure out how it got that way.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now