Jump to content

Watch History - An Emby Channel Plugin


Cheesegeezer

Recommended Posts

Cheesegeezer

it's really bizarre... I would like to understand the update channels mechanism better..... something isn't wired up right on emby side.

Why would only 1 user update the name? hmmmmmmm

image.png.c724e4a05fc1932f3eeacbbd53622371.png

  • Agree 1
Link to comment
Share on other sites

Cheesegeezer
2 minutes ago, GrimReaper said:

Soemthing is off there, as your episode should have Air Date as dd/mm/yyyy, not Year, as well as title should be SxxEyy: Title, not only Title. It appears as all the episodes get interpreted as movies, as those are movie templates: Release Year and Title without S/E in it.

oooooo nice one... I think you are onto something.

We can do some cheeky tests

  • Like 1
Link to comment
Share on other sites

GrimReaper
1 minute ago, Cheesegeezer said:

something isn't wired up right on emby side.

You don't say. ;)

  • Haha 2
Link to comment
Share on other sites

Cheesegeezer

Right i might need to assert what to do with the item by Type.  You can keep jotting ideas here.  I need to get those bits done first and then i'll be back.

  • Agree 1
Link to comment
Share on other sites

GrimReaper

Minor issue with movies: not all external links carried over (only Trakt), everything else does. 

Watched History entry:

image.thumb.png.49bf33b03c7887a529069ac04b353785.png

 

Library entry:

image.thumb.png.f83b3316b556f5bd8b69672fe737d78a.png

Link to comment
Share on other sites

Cheesegeezer

new version V 0.1.0.1 is up on first thread

  1. Add options for hidden users - please test this, i think my logic is correct
  2. Add options to set Display Limit - Default 100
foreach (var user in users)
            {
                if (user.Policy.IsHidden && config.ShowHiddenUsers)
                {
                    //Here we are creating the Categories.
                    var userCategory = await CreateCategoryInfo(user);
                    items.Add(userCategory);
                }
                if (user.Policy.IsHidden && !config.ShowHiddenUsers)
                {
                    Log.Info("User: {0} is Hidden and will not be created");
                }
                else
                {
                    var userCategory = await CreateCategoryInfo(user);
                    items.Add(userCategory);
                }

            }

 

Link to comment
Share on other sites

Cheesegeezer
1 hour ago, GrimReaper said:

Minor issue with movies: not all external links carried over (only Trakt), everything else does. 

Watched History entry:

image.thumb.png.49bf33b03c7887a529069ac04b353785.png

 

Library entry:

image.thumb.png.f83b3316b556f5bd8b69672fe737d78a.png

Grimmy....

Think i've cracked it for Episode and Movie data and Links......

completely forgot about the imageTypes.  I'll get on with that and update the DLL.

Standby

  • Like 1
Link to comment
Share on other sites

GrimReaper
1 hour ago, Cheesegeezer said:

new version V 0.1.0.1 is up on first thread

  1. Add options for hidden users - please test this, i think my logic is correct
  2. Add options to set Display Limit - Default 100
foreach (var user in users)
            {
                if (user.Policy.IsHidden && config.ShowHiddenUsers)
                {
                    //Here we are creating the Categories.
                    var userCategory = await CreateCategoryInfo(user);
                    items.Add(userCategory);
                }
                if (user.Policy.IsHidden && !config.ShowHiddenUsers)
                {
                    Log.Info("User: {0} is Hidden and will not be created");
                }
                else
                {
                    var userCategory = await CreateCategoryInfo(user);
                    items.Add(userCategory);
                }

            }

 

Getting all users visible - and hidden ones duplicated. Also, non-hidden ones title did not change.

image.thumb.png.a50cb286d2a14390d40c0edb86c576f0.png

 

Also tested with 2000 items, task itself took relatively quickly, 3:42

image.png.6665052b12a83213be4c89c56f45c718.png

With 15ish-20 % CPU/Disk usage

image.png.df28a7560bb13414c824c0f919b8aaf9.png

image.png.1715fcb38862119e328ee3508803dfe5.png

Which continued for another 10ish minutes upon task itself complete, I assume cacheing images for those 100,000+ entries.

Edited by GrimReaper
Link to comment
Share on other sites

Cheesegeezer

Can you do me a favor Grimmy, uninstall plugin. Restart. Run channel task, Reinstall, restart and run channel task

lets see what happens.

Link to comment
Share on other sites

GrimReaper
13 minutes ago, Cheesegeezer said:

Can you do me a favor Grimmy, uninstall plugin. Restart. Run channel task, Reinstall, restart and run channel task

Unistalled, restarted, Refresh channel task run.

embyserver-63810340157.txt

Reinstalled, restarted, channel task ran automatically.

embyserver-63810340394.txt

And still seeing doubled hidden users, but the syntax for non-hidden is in order now. 👍

image.thumb.png.6cc156b89e4a7741d686bdeef2817d52.png

 

Edited by GrimReaper
Link to comment
Share on other sites

Cheesegeezer
24 minutes ago, GrimReaper said:

Or maybe I'm already under influence so seeing double? 🤔

where you live? i'll be round with a bottle of whisky!! ahhhahahaha

  • Haha 1
Link to comment
Share on other sites

GrimReaper
8 minutes ago, Cheesegeezer said:

where you live? i'll be round with a bottle of whisky!! ahhhahahaha

Right around the corner. 😉 You're welcomed any time. 🍻

 

Screenshot_20230126_151253_Opera.jpg

  • Haha 1
Link to comment
Share on other sites

Cheesegeezer

Split? Pula?, Zagreb?

I was in Gornji Vakuf, Sarejevo, Banja Luka at lot in the 90's

  • Like 1
Link to comment
Share on other sites

GrimReaper
Just now, Cheesegeezer said:

I was in Gornji Vakuf, Sarejevo, Banja Luka at lot in the 90's

Won't ask what were you doin' there in those years... 😉 Split, btw. 

Link to comment
Share on other sites

Cheesegeezer
31 minutes ago, GrimReaper said:

Won't ask what were you doin' there in those years... 😉

Nothing at all... honest guv :D 

31 minutes ago, GrimReaper said:

Split, btw. 

Beautiful Down there!! spent a lot of time there when arriving and leaving theatre.

There was some great bars and pizza places too!!

  • Like 1
Link to comment
Share on other sites

GrimReaper
9 minutes ago, Cheesegeezer said:

There was some great bars and pizza places too!!

There's even more now. Come. 😉

  • Like 1
Link to comment
Share on other sites

Cheesegeezer

Ok Fellas!!

0.1.0.2 has been Posted. 

  1. Fixes Episode info
  2. Fixes Movie info
  3. Fixes Item Links
  4. Option to enable Limits, if switch off, will retrieve EVERTHING since the dawn of time.
  5. Hopefully fixed the User Duplications
  6. Still not sure on the reliability of the filter for lastplayed date...  more testing and investigation required.

It appears to me that there is no dynamic refresh built for channels.  Looks like a 1 time grab and cache when the channel is first installed.  

At worst case you may need to follow these instruction to force changes and force the fixes above.

  1.  uninstall plugin.
  2. Restart.
  3. Run channel task,
  4. Reinstall,
  5. restart and
  6. run channel task

Let me know the results and thanks everyone for your input and help, it really goes a long way to help build a useful tool for the community

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

GrimReaper
2 hours ago, Cheesegeezer said:

Ok Fellas!!

0.1.0.2 has been Posted.

Gave a run to 0.1.0.2, great to see some progress visible, nice work, Cheesy. 👍 On to some pending issues still:

2 hours ago, Cheesegeezer said:

1. Fixes Episode info

Episode titles are now correctly picked-up, SxxExx visible in the title:

image.thumb.png.ec88ce108c0f8acff37004abd18b39f2.png

 

However, parent series, Date Played and Playes are still NOT picked-up:

image.thumb.png.ba7fc7f7ada76f25d63f36078f6825c7.png

 

Resulting in:

image.thumb.png.6f45d50bfc69c895d97ee41be2c2c434.png

(no PG rating also; already known no logo and no backdrop, likely back to no parent series issue, as those are both Series items)

As opposed to:

image.thumb.png.ed68c6891ee41767374e0ce6083e8585.png

image.thumb.png.c236f25546519513a3d77d66ec5257b1.png

 

And major issue present: all same SxxExx episodes get multi-versioned (likely due to same issue mentioned: no parent series and being interpreted as movies):

image.thumb.png.3793d0fdac80baa1fd3d2141d285fa40.png

Thought that's Watch History plugin not playing nice with Auto-organize, deinstalled Auto Organize and repeated process from scratch: remove Watch history, restart, refresh channels, reinstall Watch history, restart, refresh channels - no joy.

 

2 hours ago, Cheesegeezer said:

2. Fixes Movie info

No issues observed with movies, but besides external links there were none to begin with.

image.thumb.png.b96346bf89629c5c5f08d06bf5367092.png

 

2 hours ago, Cheesegeezer said:

3. Fixes Item Links

Yup, all present, see 2.

 

2 hours ago, Cheesegeezer said:

4. Option to enable Limits, if switch off, will retrieve EVERTHING since the dawn of time.

Not daring to test Unlimited, keeping it on 100 and while the task itself took only few minutes (3), ffprobing afterwards took considerable time, roughly 30 minutes (47 users x 100 = 4700 items), during which time majority of episode names nor item years nor movie backdrops get populated but it is done gradually, which might give impression to some users that something is off, maybe do not complete progress bar until actual work is done?

 

3 hours ago, Cheesegeezer said:

5. Hopefully fixed the User Duplications

Yep, nice one, both number of users, title syntax and thumbs are correct.

image.thumb.png.2924877d9132e4f1258d980fe64402ea.png

 

3 hours ago, Cheesegeezer said:

6. Still not sure on the reliability of the filter for lastplayed date...  more testing and investigation required.

And you are right, still a no-go, Movies get sorted first having Date Played, episodes lag behind having NO Date played nor Plays, as mentioned above.

image.thumb.png.9321754a02b57a2f05ed891e29c84d0e.png

 

All in all, you're slowly getting there.

Cheers

  • Like 1
  • Agree 1
Link to comment
Share on other sites

Junglejim

Hi @Cheesegeezer some nice progress. 👍 As stated above by @GrimReaper I'm also seeing the same.

For me personally the "Display Limit - Default 100" is too much, I'd like to set this as low as 10 or maybe the last four weeks or as low as the last week. (unlimited crazy :))

I know some will disagree with this but these virtual libs come with there own set of problems as far as the library as a whole goes.

Great work as always mate.

 

Edited by Junglejim
Link to comment
Share on other sites

Cheesegeezer
53 minutes ago, Junglejim said:

Hi @Cheesegeezer some nice progress. 👍 As stated above by @GrimReaper I'm also seeing the same.

I’m gonna take a look into this more today.

53 minutes ago, Junglejim said:

For me personally the "Display Limit - Default 100" is too much, I'd like to set this as low as 10 or maybe the last four weeks or as low as the last week. (unlimited crazy :))

you know you can just type a number in the limit box and then click outside of it and it will save that value. 
 

but… i do like the idea of displaying the last #days, Weeks, months. 

53 minutes ago, Junglejim said:

I know some will disagree with this but these virtual libs come with there own set of problems as far as the library as a whole goes.

Great work as always mate.

 

Never dabled with virtual folders.

its always tricky pleasing users. But if i can please most of them most of the time then ill take that!!

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