Jump to content

New Statistics plugin


reggi

Recommended Posts

d00zah

Tried again & see something, but can't tell if it's you:

 

2018-03-30 15:19:40.923 Info TaskManager: Executing Calculate statistics for all users
2018-03-30 15:19:40.923 Info HttpServer: HTTP Response 204 to ::1. Time: 3ms. http://localhost:8096/emby/ScheduledTasks/Running/d459f39d7abb81f5fcce03048a7ecf4d
2018-03-30 15:19:40.934 Info HttpClient: GET https://thetvdb.com/api/Updates.php?type=all&time=1522436025
2018-03-30 15:19:41.122 Info HttpServer: HTTP GET http://localhost:8096/emby/ScheduledTasks?isHidden=false. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
2018-03-30 15:19:41.123 Info HttpServer: HTTP Response 200 to ::1. Time: 1ms. http://localhost:8096/emby/ScheduledTasks?isHidden=false
2018-03-30 15:19:41.397 Info HttpClient: GET https://thetvdb.com/api/Updates.php?type=none
2018-03-30 15:19:52.935 Info TaskManager: Calculate statistics for all users Completed after 0 minute(s) and 12 seconds
2018-03-30 15:19:52.936 Info ServerManager: Sending web socket message ScheduledTaskEnded
2018-03-30 15:19:52.936 Info TaskManager: ExecuteQueuedTasks
2018-03-30 15:19:55.210 Info HttpServer: HTTP GET http://localhost:8096/emby/Users/d1f5dee31b93373e09413f0cc83d48f9. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
2018-03-30 15:19:55.211 Info HttpServer: HTTP Response 200 to ::1. Time: 1ms. http://localhost:8096/emby/Users/d1f5dee31b93373e09413f0cc83d48f9
2018-03-30 15:19:55.318 Info HttpServer: HTTP GET http://localhost:8096/emby/Plugins/291d866f-baad-464a-aed6-a4a8b95a8fd7/Configuration. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
2018-03-30 15:19:55.322 Info HttpServer: HTTP Response 200 to ::1. Time: 5ms. http://localhost:8096/emby/Plugins/291d866f-baad-464a-aed6-a4a8b95a8fd7/Configuration
2018-03-30 15:19:55.421 Info HttpServer: HTTP GET http://localhost:8096/Items//Images/Primary. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
2018-03-30 15:19:55.421 Error HttpServer: Could not find handler for /Items//Images/Primary
2018-03-30 15:19:55.421 Info HttpServer: HTTP Response 404 to ::1. Time: 0ms.

Link to comment
Share on other sites

reggi

 No that's something else. Normally you should see something like this in the logs now:

 

youngest name: {youngest.Series?.Name}
youngest AiredSeasonNumber: {youngest.AiredSeasonNumber}
youngest IndexNumber: {youngest.IndexNumber}
 
Still, I'll have to search why you don't see them in the logs. 
Link to comment
Share on other sites

d00zah

 

 No that's something else. Normally you should see something like this in the logs now:

 

youngest name: {youngest.Series?.Name}
youngest AiredSeasonNumber: {youngest.AiredSeasonNumber}
youngest IndexNumber: {youngest.IndexNumber}
 
Still, I'll have to search why you don't see them in the logs. 

 

 

Do I need to enable debug logging in the server cfg?

Link to comment
Share on other sites

PenkethBoy

Morning @@reggi hope you are well

 

I updated to 4.2 and lost my Newest Added Movie and Newest Added Episode

 

Both were there before the update (nothing added to server in meantime) - so series cant be "null"

 

Also i also see Studio's have a count of 0 as reported above

 

Tried 4.4 no change

 

Unfortunately the changes from 4.1 -> 4.2-4.4 were a retrograde step for me

Edited by PenkethBoy
Link to comment
Share on other sites

Happy2Play

Newest added Movies and TV say "NO DATA FOUND!" now.

Link to comment
Share on other sites

reggi

mm, look slike I'm having the same problem with the logs now. I'll have a look after the weekend.

 

@Happy2Play 

No idea why your newest added movie is empty as well now. Didn't change anything there.

Link to comment
Share on other sites

GhostRider

Hi

 

Just tried the Statistic's plugin. Using version 2.0.4.2 on Emby Server 3.3.1.0 on Windows 10. I noticed a few problems:

 

  1. In Media Qualities Unknown is spelt wrong: unkown.
  2. There is no apostrophe in Studio's should be Studios
  3. Total Studios count is 0 for both TV and movies
  4. Newest Added Episode says NO DATA FOUND!
  5. Newest Added Movie says NO DATA FOUND!
  6. If click on View Movie list (text based) then click on one of the links to a movie it logs me out
  7. Media Qualities, not sure this is plural maybe should read media resolution as this is the only quality reported

 

Hope there is a quick fix for these as the media quality stats are very useful.

Edited by GhostRider
Link to comment
Share on other sites

Happy2Play

Hi

 

Just tried the Statistic's plugin. Using version 2.0.4.2 on Emby Server 3.3.1.0 on Windows 10. I noticed a few problems:

 

  1. In Media Qualities Unknown is spelt wrong: unkown.
  2. There is no apostrophe in Studio's should be Studios
  3. Total Studios count is 0 for both TV and movies
  4. Newest Added Episode says NO DATA FOUND!
  5. Newest Added Movie says NO DATA FOUND!
  6. If click on View Movie list (text based) then click on one of the links to a movie it logs me out
  7. Media Qualities, not sure this is plural maybe should read media resolution as this is the only quality reported

 

Hope there is a quick fix for these as the media quality stats are very useful.

 

I see all these also on beta server except #6, text links work for me.  (no errors in log)

 

looks like some columns alignment needs a little help also

5ac0d50769ac4_table.jpg

Edited by Happy2Play
Link to comment
Share on other sites

chjohans

I also have "NO DATA FOUND"  for "Newest added movie" and also for the "Newest Added Episode". "Total Studio's" is 0 for both Movie and Show statistics, I'm sure that is wrong as well.

 

It is also listing data from the BlurN plugin with my movies, so it is listing movies that BlurN says is released on BluRay, but those are NOT movies that I have in my library.

 

I agree that this is a very useful plugin, but only if the data it produces is correct.

Link to comment
Share on other sites

GhostRider

A more tricky bug.

 

I have a TV series that has some seasons on one disk and the remainder on a second disk. Emby correctly lists all the seasons/episodes under one TV series but I think the Stats plugin is not doing this:

 

 

 

I have the full set of seasons and episodes and have watched all of them so it should show 67 out of 67 watched and be green for a complete collection.

post-2099-0-95750400-1522667166_thumb.jpg

Edited by GhostRider
Link to comment
Share on other sites

reggi

At this moment the plugin itself is not my main project anymore. I'm building on a completely separate statistic plugin so I can implement more features in the future, include graphs and tables easily, get real-time user statistics, ... 

But this is still in a pre-alpha phase really. Soon I will have a first version ready for testing. When that happens this plugin will be deprecated.

 

@GhostRider 

That's a tricky one indeed to debug. I'll see what I can do about it. I'll look at your other list of bugs as well soon.

 

@@chjohans

I will have a look at the BlurN plugin and how I can track those movies in the database.

Edited by reggi
  • Like 3
Link to comment
Share on other sites

GhostRider

@@reggi,

 

Thanks for the update. I am happy for you to make the new plugin a priority. I can live with the bugs in the current one and would sooner you spend time on the new version and not delay it by fixing the current one.

  • Like 2
Link to comment
Share on other sites

psybertech

Just a quick question...

Love the plugin so far by the way!

 

OK... I have a remote user that I share a library with.

Does the stats show if he downloaded a movie/episode?

I read that maybe it would show as 'watched', but this one user has no stats.

I haven't asked him since I don't want him to think I am spying on him, which I am not really, but I would like to know if he is using it or its just a waste of time on my end to have set this up in the first place. :)

 

 

Thanks!

J

Link to comment
Share on other sites

Diedrich

Just a quick question...

Love the plugin so far by the way!

 

OK... I have a remote user that I share a library with.

Does the stats show if he downloaded a movie/episode?

I read that maybe it would show as 'watched', but this one user has no stats.

I haven't asked him since I don't want him to think I am spying on him, which I am not really, but I would like to know if he is using it or its just a waste of time on my end to have set this up in the first place. :)

 

 

Thanks!

J

I have a user who does exactly that - he only downloads. The only way to get it to record is if he checks Watched. So: check Watched, then download.
Link to comment
Share on other sites

psybertech

I have a user who does exactly that - he only downloads. The only way to get it to record is if he checks Watched. So: check Watched, then download.

Interesting and good to know.

I'll ask him to make an attempt to do that. It would be great for a separate stat to show downloads as its own though. But good to know there is a workaround.

 

Thanks!

j

  • Like 1
Link to comment
Share on other sites

reggi

@psybertech 

At this moment this is indeed the only solution to see when the user has downloaded something.

 

In the standalone stat server I will look into the download event and maybe be able to log download stats from every user. But there is still a lot of work to be done before I implement that feature.

  • Like 1
Link to comment
Share on other sites

psybertech

@psybertech 

At this moment this is indeed the only solution to see when the user has downloaded something.

 

In the standalone stat server I will look into the download event and maybe be able to log download stats from every user. But there is still a lot of work to be done before I implement that feature.

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
trusselo

#1 Love the Plugin. 

Thank you for your work.

 

#2  I would love to see show statistics not just per user but for all users as well.

I would like to easily see if NOBODY is watching a show.... so i can delete it.

 

right now i have to look at each show to see if it is red or blank for each user.

  • Like 2
Link to comment
Share on other sites

reggi

@@trusselo

Glad to hear you hare happy with the plugin!

As of today I will not update the plugin anymore because I'm working on a full standalone statistics server (https://emby.media/community/index.php?/topic/56640-developing-a-standalone-embystat-server/). I do like your idea and created a GitHub issue for this. So in the future your #2 will be implemented in EmbyStat.

  • Like 1
Link to comment
Share on other sites

PenkethBoy

@@reggi

 

stats plugin does not work on new stable server - 3.4.0.0

2018-05-03 10:13:49.831 Info TaskManager: Executing Calculate statistics for all users
2018-05-03 10:13:49.831 Info HttpServer: HTTP Response 204 to 192.168.1.56. Time: 3ms. http://192.168.1.81:8096/emby/ScheduledTasks/Running/d459f39d7abb81f5fcce03048a7ecf4d 
2018-05-03 10:13:49.834 Info HttpServer: HTTP GET http://192.168.1.81:8096/emby/ScheduledTasks?isHidden=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
2018-05-03 10:13:49.835 Info HttpServer: HTTP Response 200 to 192.168.1.56. Time: 1ms. http://192.168.1.81:8096/emby/ScheduledTasks?isHidden=false 
2018-05-03 10:13:50.109 Info HttpClient: GET https://thetvdb.com/api/Updates.php?type=all&time=1525247567
2018-05-03 10:13:55.887 Error TaskManager: Error
	*** Error Report ***
	Version: 3.4.0.0
	Command line: D:\Emby-Stable\system\EmbyServer.dll D:\Emby-Stable\system\EmbyServer.dll D:\Emby-Stable\system\EmbyServer.dll D:\Emby-Stable\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 8
	Program data path: D:\Emby-Stable
	Application directory: D:\Emby-Stable\system
	System.ArgumentNullException: Value cannot be null.
	Parameter name: source
	   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
	   at Statistics.ScheduledTasks.CalculateStatsTask.UpdateTvdbConnection(ShowProgressCalculator calculator, String time, IEnumerable`1 seriesIdsInLibrary, CancellationToken cancellationToken)
	   at Statistics.ScheduledTasks.CalculateStatsTask.CalculateTotalEpisodes(CancellationToken cancellationToken)
	   at Statistics.ScheduledTasks.CalculateStatsTask.<MediaBrowser-Model-Tasks-IScheduledTask-Execute>d__20.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()
	System.ArgumentNullException
	   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
	   at Statistics.ScheduledTasks.CalculateStatsTask.UpdateTvdbConnection(ShowProgressCalculator calculator, String time, IEnumerable`1 seriesIdsInLibrary, CancellationToken cancellationToken)
	   at Statistics.ScheduledTasks.CalculateStatsTask.CalculateTotalEpisodes(CancellationToken cancellationToken)
	   at Statistics.ScheduledTasks.CalculateStatsTask.<MediaBrowser-Model-Tasks-IScheduledTask-Execute>d__20.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()
	
2018-05-03 10:13:55.887 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 6 seconds
2018-05-03 10:13:56.050 Info ServerManager: Sending web socket message NotificationAdded
2018-05-03 10:13:56.062 Info ServerManager: Sending web socket message ScheduledTaskEnded
2018-05-03 10:13:56.068 Info TaskManager: ExecuteQueuedTasks
  • Like 1
Link to comment
Share on other sites

reggi

Thanks for the log!

I got the same error this morning. probably another NuGet package update needed. I'll update this when i get home today.

  • Like 1
Link to comment
Share on other sites

Happy2Play

Must be certain conditions as mine does not receive any errors.

 

5aead780ab2bb_stats.jpg
 

Link to comment
Share on other sites

RobWayBro

I too and receiving errors when trying to run the task.

Link to comment
Share on other sites

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...