Jump to content

New Statistics plugin


Recommended Posts

Posted

Thanks for posting the log, @

 

Seems like thetvdb is down but I still forgot to handle it properly. I'll see that this is fixed in the next release.

QDivision
Posted

Thanks for your reply. It doesn't look like it's down. I don't have any TV libraries only movies and live TV. Could it be the plugin can't handle the response from tvdb for zero collection?

PenkethBoy
Posted

@@reggi Unfortunately 28.1 has broken your plugin again

Method not found: 'Void MediaBrowser.Controller.Dto.DtoOptions.set_ImageTypes(System.Collections.Generic.List`1)'.

When trying to run the scheduled task

Posted

I made a fix for version 3.2.28.3 Beta

 

Also, a small bug fix included so studios or no longer 0 and the newest added movie is correct now. 

 

As for the empty graphs, still looking for it :(:P

  • Like 2
Happy2Play
Posted

Confirmed 1.1.6443.21843 beta working in beta server release.

PenkethBoy
Posted (edited)

@@reggi

 

Question - when you count the number of studios for Movies do you filter the list by unique instances - as it appears i now have 1350+ studios for my movies and thats probably the ones with Studios assigned but it should be more like 50 unique studios?

 

Have 142 Shows and 142 Studios as well - there are duplicates

 

Oh just checking Studio count works in Beta but not Stable

Edited by PenkethBoy
Posted (edited)

@@PenkethBoy

 

Problem is that one movie can have multiple studios (I have seen movies with 10 studios), I do count the unique studios at the moment but the count is much higher then I expected as well.

Maybe if you run the studio cleaner plugin you can see how many studios you have.

 

Studios count will work on stable when 3.2.28.3 is released. I forgot to add an itemfield, that's why it wasn't working before.

Edited by reggi
QDivision
Posted (edited)

I don't have any TV Shows, it would be good if the plugin could recognize that and not show that section? Also still having issues with the schedule task saying it fails even though it doesn't.

 

Windows 10

Emby 3.2.28

Statistics 1.1.6438.18531

post-3832-0-22885900-1503491137_thumb.png

Edited by thomasorr
Posted

Are you running your Emby server on Beta or Stable release? Because the problem is only fixed on beta, and is waiting until Emby 3.2.28 is released before I can release my fix on Stable.

 

What will happen is that there will be a "NO DATA" message if there are no shows in the lib.

Posted

Are you running your Emby server on Beta or Stable release? Because the problem is only fixed on beta, and is waiting until Emby 3.2.28 is released before I can release my fix on Stable.

 

@@reggi - v3.2.28 is already released as Stable.

 

Beta is currently v3.2.28.3.

 

Hope this helps.

  • Like 1
Posted

Hey,

 

I got a new update ready.

 

- new movie page with movie qualities.

- removed graphs (wrong or no data, will be fixed later)

- styling fix

- Images are hyperlinks to the media

 

Hope you like the update :)

  • Like 2
PenkethBoy
Posted (edited)

@@reggi

 

Very much liking the new Movies List!! - Well done  :)  :)

 

Now what would be great if we had two views each for TV and Movies - i.e. A Season list (images based) similar to the new movies list and for Movies a more text based list similar to the Seasons list we already have. Different parameters for the two new types obviously.

 

 

One thing that maybe you can "fix" is that i have the BlurN plugin loaded and its Movie listings of Blu-ray releases are being picked up by your plugin - so i currently have 11 "unknown" movies at the top of my list of movies by format size - i am not sure how they are referenced in the database and whether you could exclude them or not but it would be good if you can as they are not real movies just place holders.

 

Small thing in the Media Qualities box - Unknown is spelt wrong :)

Edited by PenkethBoy
Posted

I will first fix the problem that when you have too many movies the images will stop loading.

Maybe I will work with a dropdown so the user can select a quality. So less images are loaded

PenkethBoy
Posted

Not seeing images for movies not being loaded - even with 3 thousand or so - although the page is very long :)

  • Like 1
Posted

Hey guys, new smaller update ready.

 

- Added new movie list page but only text based. Here should come more info later

 

I also have to port the plugin to .NET CORE so I hope that will go without any trouble :) 

PenkethBoy
Posted

Hi @@reggi

 

Your latest update works fine on 30.6 for me

 

One thing i noticed is that where there is a multi part movie - the non text based view does miss the images for part2, part3 etc - not sure yet if its my setup - need to do a bit more testing to see if those images are missing or not. Will report back when i understand a bit better.

 

Hopefully the text based list will grow with interesting options :)

PenkethBoy
Posted

ignore the multipart image issue i reported above it was Emby not creating poster.jpg for the multipart movies even though i had them in separate directories

 

quick refresh of those movies sorted the issue - have no missing images now :)

  • Like 1
Posted

Since a few days the task always fails for me. 

2017-09-09 05:12:35.508 Info TaskManager: Executing Calculate statistics for all users
2017-09-09 05:12:36.104 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=all&time=1504946324
2017-09-09 05:12:36.833 Info HttpServer: HTTP GET http://192.168.0.20:8096/Sessions. UserAgent: 
2017-09-09 05:12:36.837 Info HttpServer: HTTP Response 200 to 192.168.0.2. Time: 4ms. http://192.168.0.20:8096/Sessions 
2017-09-09 05:12:38.007 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=none
2017-09-09 05:12:51.827 Info HttpServer: HTTP GET http://192.168.0.20:8096/Sessions. UserAgent: 
2017-09-09 05:12:51.831 Info HttpServer: HTTP Response 200 to 192.168.0.2. Time: 4ms. http://192.168.0.20:8096/Sessions 
2017-09-09 05:13:01.219 Error TaskManager: Error
	*** Error Report ***
	Version: 3.2.30.10
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 3.14.79.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Tue May  2 23:01:00 UTC 2017)
	Processor count: 4
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.NullReferenceException: Object reference not set to an instance of an object
	  at Statistics.Helpers.Calculator.CalculateNewestAddedEpisode () [0x000cc] in <4e00d76bff3b4efe9ab1da50ab786196>:0 
	  at Statistics.ScheduledTasks.CalculateStatsTask+<Execute>d__12.MoveNext () [0x004bb] in <4e00d76bff3b4efe9ab1da50ab786196>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>c__async2.MoveNext () [0x0019c] in <73b1eede1e094078a4c8efba2ec05f21>:0 
	System.NullReferenceException
	  at Statistics.Helpers.Calculator.CalculateNewestAddedEpisode () [0x000cc] in <4e00d76bff3b4efe9ab1da50ab786196>:0 
	  at Statistics.ScheduledTasks.CalculateStatsTask+<Execute>d__12.MoveNext () [0x004bb] in <4e00d76bff3b4efe9ab1da50ab786196>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>c__async2.MoveNext () [0x0019c] in <73b1eede1e094078a4c8efba2ec05f21>:0 
	
2017-09-09 05:13:01.220 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 25 seconds
  • Like 1
Posted

mmmmm, thanks for the logs!

 

I'll look into it when I have my Emby server live again, just lost 12Tb data :(

Happy2Play
Posted

Sad to here @@reggi,

 

Note @@Kiina is on beta server.  I don't have a issue on Windows beta server with the plugin failing.

  • 2 weeks later...
Posted

Is it scheduled to have a .Net Core version?

 

 

Sent from my iPad using Tapatalk

Posted

yes, this weekend I will start working on building a .NET core version

 

I'll keep you posted! :)

  • Like 2
Posted

Thx Reggi!

 

 

Sent from my iPhone using Tapatalk

Posted

Request: Statistics plugin quick access menu injection into Emby Server's admin sidebar menu. (At least that's how I read the changelog for the latest stable server version.)

Posted

@@Diedrich I'll have to ask @@Luke if that's possible!

 

I just pushed an update for .NET Core, hope it works :)

  • Like 1

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