Jump to content

New Plugin Because You Watched on the Home screen


Recommended Posts

Posted

I've put together an plugin that will libraries and stream files for movies or shows that you've watched.  

What does it do?

  • It builds folders, images, and stream files in the location you choose. 
  • If you're libraries contain stream files already it will just make a copy of those in the new location. 
  • It will delete the files and folders that roll off the watched list.  

Things to keep in mind:

  • This will create folders based off all users watched history.  So if you have multiple users there could be several folder structures created but it will not duplicate folder structures.  
  • This plugin allows you to choose between Movies, TV Shows or a mixture of both.  You should do mixed content on it's own not with movies and tv shows also supplied.
  • You will need to generate an emby api key for the application and store it in the settings.
  • The clean All Libraries and Folders will delete all the stream files and folders this application creates in the location supplied in the configurations and recreate. 
  • This plugin will update as you watch items on the Emby server.   This is not immediate as it takes time to run through and create the libraries and scan them.

image.thumb.png.53a2e2bbf7ab23e7ed484b969a8e4204.png

Emby.WatchedSuggestions.dll

  • Like 3
  • 1 month later...
Posted

I like the idea of this plugin.

I did install the plugin, and tried to set it up, but somewhere along the lines, I lost the full dashboard contents and could not do anything in dashboard other than basic app config.

I removed the plugin and restarted and dashboard came back.

I will try this plugin again

Posted

The plugin can cause the dashboard to be slow to load while its working.  It builds out the new libraries and triggers a library scan on them.   You will see this behavior right after watching something to the end and on reboot of your server or initial install.  Larger libraries can take longer.

Posted

I shall continue trying out the plugin.  I do like the idea.

I do indeed have a very large library with some 22 Users so I expect a some slow behavior.

I will setup just before bedtime for me then it can run all night with what it needs to do. I am on Linux with my server, so Im not sure if permission might be an issue at all.

Posted

I tried this plugin again, But I appear to have some issue with where I select Movie Libraries Location

byw1.png.3ab95ab29a85c8028f11acf9a6749621.png

The items that the plugin is creating though do not reside in that folder.

byw2.png.6d6fe75f2b57cd0ab6b2bc1f83c95f7d.png

So the created Library does not show any content.

I also see in the Logs this line for every media item

Error App: One or more errors occurred. (Access to the path '/opt/emby-server 'medianame' is denied.)

1 example

Error App: One or more errors occurred. (Access to the path '/opt/emby-server\Dead Men Are Dangerous (1939)' is denied.)

 

 

mickle026
Posted
2 hours ago, kjhedges said:

/opt/emby-server\Dead Men Are Dangerous (1939)

/ and \ in the same path.

Suggestion:

Programmer needs to use C# Path.Combine() from System.IO , rather than +"\" or +"/" when making paths in order to support all OS's.

Posted

Hi,

Is it possible to create a version of the plugin that generates metadata in French and changes the library name from "Because You Watched" to "Parce que vous avez regardé"?

The plugin is amazing, by the way. Great job!

Posted

I will take a look at both suggestions when I get a chance.  

Posted

Should be sometime next week.  

  • Like 1
Posted (edited)

Here is a new build that should work for linux using mickle026 Path.Combine() suggestion.  Thanks for the information.  

Emby.WatchedSuggestions.dll

Let me know if this works for you kjhedges

 

Edited by bwarthen
  • Like 1
Posted

Hi filzituero.  I'm looking into this and will post a new dll file when I figure it out.  

Posted

Hi @bwarthen,

 

Thanks for the quick update!

 

I’m also using Linux, by the way. If you could upload the new version of the plugin with the fix you mentioned in your last post, that would be fantastic.

 

I do have a couple of questions. First, when multiple users are involved, will the plugin display only the libraries created for each specific user, or will it show all libraries regardless of user?

 

Secondly, is it possible to schedule library creation to run nightly instead of just at the end of a watch session? I only have three users, so it’s not a big issue for me, but I think others might find this option useful.

 

I’m really excited about your plugin it’s a huge help in bringing relevant content to the home page, which is something Emby really lacks.

 

Posted

The dll for the new version is the second dll uploded in this thread.  It creates a libraries on a per user basis and grant access to just that user.  Hopefully you can download this dll here.

 

Emby.WatchedSuggestions.dll

  • Like 1
Posted

There is a job that comes with the plugin to schedule.  If you mean to disable the real time updates.  I can look into that.

  • 4 weeks later...
Posted

Hello,

Did you have any time to work on the plugin

Thanks

Posted

I had some medical issues come up and had to put it aside for the moment.  Once I'm off the pain killers.  I'll dig back in.

Posted

Take your time and focus on your health that's the most important thing. Wishing you a speedy recovery!

Posted

I am currently in the testing phase of the latest updates that include language update first based on audio language settings and if that isn't set the server language setting.  This should allow for multilanguage users to choose based on user preference.  I've also added the ability to uncheck a box and prevent the auto updates.  I will run this for a couple more days on my local instance and if everything goes well I will release over the weekend.

fillidill
Posted

@bwarthenThis is a really cool plugin! However, I am using the linux version of the plugin on my Synology and it still seems to create the structure incorrectly. Look at this example where it doesn't place the strm in the correct folder, instead the folder name is placed in the name of the file.

image.png.d9bb1cf6a160a1cfd376d2e36839e6b4.png

 

Posted (edited)

I will have to dig my old linux system out of the closet and get that up and running to test this out. I'll see if I can get it working correctly on both systems.  It may take a bit to get it all updated again because it is mostly manual.  It's on something similar to a raspberry pi.  Just out of  curiosity is there anything in the folders at all?

 

Edited by bwarthen
  • Like 1
fillidill
Posted
10 hours ago, bwarthen said:

I will have to dig my old linux system out of the closet and get that up and running to test this out. I'll see if I can get it working correctly on both systems.  It may take a bit to get it all updated again because it is mostly manual.  It's on something similar to a raspberry pi.  Just out of  curiosity is there anything in the folders at all?

 

Yes, all the metadata of the movie/show is there. It only seems to be the .strm that is not placed correctly. Attached is an example of a tv show. Disregard the nfo files as I think those are automatically created by Emby (my libraries are set to save them along the media files).

show.png

Posted
On 12/5/2024 at 6:41 PM, bwarthen said:

I am currently in the testing phase of the latest updates that include language update first based on audio language settings and if that isn't set the server language setting.  This should allow for multilanguage users to choose based on user preference.  I've also added the ability to uncheck a box and prevent the auto updates.  I will run this for a couple more days on my local instance and if everything goes well I will release over the weekend.

hey @bwarthen

Did the testing work as expected, and is it ready to be published?

 

Posted (edited)

Here is the latest updates.  I've added a checkbox for real time updates or not.  I've added language updates that pulls the language from the users audio settings first and then if that is set to auto it will pull the server language setting.  @fillidillPlease feel free to try this version and let me know if you problem persists.  If so I will start working on your issue next.  

Emby.WatchedSuggestions.dll

Edited by bwarthen
  • 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...