Jump to content

New Statistics plugin


Recommended Posts

Posted

 

I started to see this yesterday.

 

Calculate statistics for all users failed.
a minute ago
Object reference not set to an instance of an object.
 
I am on ver 3.2.20.0 of emby. Nothing has changed on the server. This is a Windows 7 machine if that matters.

 

 

I started getting a similar error after recently upgrading to 3.2.20.0.  Nothing else has changed.

 

 

 

2017-06-23 00:00:14.8126 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=all&time=1498106175

2017-06-23 00:00:34.8448 Error HttpClient: Error getting response from https://thetvdb.com/api/Updates.php?type=all&time=1498106175

    *** Error Report ***

    Version: 3.2.20.0

    Command line: C:\Users\sparc\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service

    Operating system: Microsoft Windows NT 6.2.9200.0

    64-Bit OS: True

    64-Bit Process: True

    Processor count: 6

    Program data path: C:\Users\sparc\AppData\Roaming\Emby-Server

    Application directory: C:\Users\sparc\AppData\Roaming\Emby-Server\system

    System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The request was aborted: The request was canceled.

     at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

     at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

     --- End of inner exception stack trace ---

     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

     at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__22.MoveNext()

    ---> (Inner Exception #0) System.Net.WebException: The request was aborted: The request was canceled.

     at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

     at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<---

    

    System.AggregateException

     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

     at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__22.MoveNext()

    InnerException: System.Net.WebException

    System.Net.WebException: The request was aborted: The request was canceled.

     at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

     at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

     at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

     at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

    

2017-06-23 00:00:34.8448 Error TaskManager: Error

    *** Error Report ***

    Version: 3.2.20.0

    Command line: C:\Users\sparc\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service

    Operating system: Microsoft Windows NT 6.2.9200.0

    64-Bit OS: True

    64-Bit Process: True

    Processor count: 6

    Program data path: C:\Users\sparc\AppData\Roaming\Emby-Server

    Application directory: C:\Users\sparc\AppData\Roaming\Emby-Server\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.<Execute>d__12.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

     at Emby.Common.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.<Execute>d__12.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

     at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()

    

2017-06-23 00:00:34.8448 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 34 seconds

2017-06-23 00:00:34.8604 Info ServerManager: Sending web socket message NotificationAdded

2017-06-23 00:00:34.8604 Info ServerManager: Sending web socket message ScheduledTaskEnded

Posted

Mine seemed to fix itself. Nothing changed and the server was not rebooted.

  • 4 weeks later...
Posted

After another long time in the hospital I'll have a look at the exception when the provider is down. I thought I fixed that issue before. Seems my fix is not working :)

  • 2 weeks later...
Posted

Hey guys,

 

just got a new version pushed to the plugin library. 

Major update on the UI and I added 4 new graphs on the main page. Let me know what you think about them (and if I should add more).

As always, I don't have a lot of historical data, so when you view a movie again it will update the LastPlayedDate and so the graphs will change!

 

New version number is: 1.1.6419.41498 (Release)

 

  • Like 1
PenkethBoy
Posted

Hi @@reggi

 

hope you are feeling better :)

 

some issues i am seeing

 

1) newest added episode and newest added movie are from - 736538 days ago!  :D

2) Studios for both Shows and Movies are zero - movies and shows do have studio's in their metadata

3) Favorite Movie Years and Genres are blank - also Favourite Shoe Genres is also blank - i dont have any favourites set - would this account for that?

 

Rest looks ok :)

  • Like 1
Posted (edited)

I'm on it, thanks!! 

 

 

EDIT

Just fixed and released a new version. Looks like I had to add some ItemFields from now on in my queries :)

 

@@PenkethBoy

You like the new UI? or is the old one better.

Edited by reggi
Posted (edited)

I'll put an update in Beta version. 

 

The layout should be fixed now (full width) but for some reason, the chart.js file is not loaded on my live server. Any one else got that problem? Or can you guys all see 4 charts on the main screen.

 

EDIT

Looks like it was an issue with loading the char.js file over http when surfing to emby over https. Switched to https now and everything is working fine

Edited by reggi
PenkethBoy
Posted

Hi @@reggi

 

thanks for fixing the three issues i had :)

 

But i am not getting any graphs now in version 1.1.6420.19039 - just blank space where the graphs would be - this is on beta and stable - no errors in the server logs

 

Had graphs in the first "new" version i tried last night

 

Could you add a text field with the plugin version number on the landing page for the plugin to make it easier to check which version you have loaded - please

Posted

I added a plugin version string on top.

 

Why the graphs are empty I have no idea, on my test server they are working, on my live server they are not. 

Looks like the calculations go wrong somewhere.

PenkethBoy
Posted

Can see the version number (need to re run the scheduled task to make it appear)

 

have checked the xml and the data for the graphs is there but they are just blank - for beta

Posted
Hello everyone,
 
I would like to know two things:
 
1. Is it possible to list the selected movies by resolution? I have several movies with resolution up to 480p and would like to have print the list to delete from my library.
 
2. Is it possible to translate plugin titles? I could translate it into Brazilian Portuguese and share.
 
Thank you
Posted

@@reggi, not sure if this was reported already, but it seems I'm missing some stats here:

 

 59806bc9233fc_Untitled.jpg

 

 

1. Is it possible to list the selected movies by resolution? I have several movies with resolution up to 480p and would like to have print the list to delete from my library.

 

I also really love this suggestion!

 

And last, superb work here! Thanks :)

Posted

My graphs are missing also (Plugin version: 1.1.6420.29078).

blastbass
Posted

Hello @@reggi,

 

Is it possible to see, in you plugin the ranking of all film sorted by watched ?

 

I want to see, in my collection what movies has been watched or never watched.

Posted

Would it be possible to add an option in the "User-based show progress" section to combine all the users stats, this would be handy if you need to make space on the server and can see what hasn't been watched so you can delete those series.

Jdiesel
Posted (edited)

 

1. Is it possible to list the selected movies by resolution? I have several movies with resolution up to 480p and would like to have print the list to delete from my library.

 

 

You can use the "Reports" feature to view information like resolution and audio codec. For some reason it does not let you sort by resolution which I swear it did before but you can export the list and sort if you'd like.

 

Edit: You must change the grouping to Resolution

Edited by Jdiesel
Posted (edited)

Thanks for all the ideas for updating the plugin with new stats, I'll do my best to include them all. 

 

But first I need to fix the graphs, my own live server is down at the moment and on my test server the graphs are working :(

I'll keep you all posted!!

 

EDIT

@@Dibbes, @@PenkethBoy, @@CBers

Can you guys check if you open the developer tools in chrome if there is an error loading a script? Maybe that's the problem. Are you guys running on http or https?

Edited by reggi
PenkethBoy
Posted (edited)

@@reggi

 

the graphs work with the new version but am having failures running the scheduled task

 

also i have no general stats on first page just the two sets of graphs - this is with beta server

 

using http not https

2017-08-07 01:42:24.1518 Info TaskManager: Executing Calculate statistics for all users
2017-08-07 01:42:24.1518 Info HttpServer: HTTP Response 204 to 192.168.1.11. Time: 0ms. http://192.168.1.81:9096/emby/ScheduledTasks/Running/d459f39d7abb81f5fcce03048a7ecf4d 
2017-08-07 01:42:24.1518 Info HttpServer: HTTP GET http://192.168.1.81:9096/emby/ScheduledTasks?isHidden=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
2017-08-07 01:42:24.1518 Info HttpServer: HTTP Response 200 to 192.168.1.11. Time: 0ms. http://192.168.1.81:9096/emby/ScheduledTasks?isHidden=false 
2017-08-07 01:42:24.2143 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=all&time=1502065877
2017-08-07 01:42:24.9174 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=none
2017-08-07 01:42:28.4643 Error TaskManager: Error
	*** Error Report ***
	Version: 3.2.26.16
	Command line: D:\Emby-Beta\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	Processor count: 8
	Program data path: D:\Emby-Beta
	Application directory: D:\Emby-Beta\System
	System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable`1<MediaBrowser.Model.Entities.MediaStream> MediaBrowser.Controller.Entities.Video.GetMediaStreams()'.
	   at Statistics.Helpers.Calculator.<>c.<CalculateMovieQualities>b__21_0(Movie x)
	   at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
	   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
	   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
	   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
	   at Statistics.Helpers.Calculator.CalculateMovieQualities()
	   at Statistics.ScheduledTasks.CalculateStatsTask.<Execute>d__12.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()
	System.MissingMethodException
	   at Statistics.Helpers.Calculator.<>c.<CalculateMovieQualities>b__21_0(Movie x)
	   at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
	   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
	   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
	   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
	   at Statistics.Helpers.Calculator.CalculateMovieQualities()
	   at Statistics.ScheduledTasks.CalculateStatsTask.<Execute>d__12.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()
	
2017-08-07 01:42:28.4643 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 4 seconds
2017-08-07 01:42:28.4799 Info ServerManager: Sending web socket message NotificationAdded
2017-08-07 01:42:28.4799 Info ServerManager: Sending web socket message ScheduledTaskEnded
2017-08-07 01:42:28.4799 Info TaskManager: ExecuteQueuedTasks
Edited by PenkethBoy
PenkethBoy
Posted

the new version of the plugin works on the stable server - i have graphs again :)

  • Like 1
Posted (edited)

I know the PlexPy looks very good, but at the moment I don't have the full time to develop that kind of system.

I do am working on a standalone version of the plugin that can run on any platform. But this is still in a pre alpha phase.

Edited by reggi
Posted

EDIT

@@Dibbes, @@PenkethBoy, @@CBers

Can you guys check if you open the developer tools in chrome if there is an error loading a script? Maybe that's the problem. Are you guys running on http or https?

Sorry @@reggi, but haven't had a chance as yet. Hopefully later this week.

Posted (edited)

@@reggi, with the latest version the graphs load, but aren't populated:

 

5988e9fe0c1a1_Untitled.jpg

 

Plugin verion: 1.1.6427.39626
Server Version 3.2.26.0

 

A cosmetic thing, but you may want to Episodes for series only and there's an "s" missing in the version string

 

EDIT: I'm using plain http, no certificates etc.

Edited by Dibbes

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