Teredactle 37 Posted October 23, 2024 Posted October 23, 2024 (edited) I'd like to request the option to consolidate ALL "new media added" updates into 1 daily notification, such that when a user receives one single email for the notifications rather than many many many emails. For example, I have 2 libraries with home videos and photos, and I've set up notifications to my remote family members, however for every single photo or video there is one email; when I've added 50 photos to these libraries >>> 50 emails. Can we please have an option to consolidate into 1 nightly/daily email so that it isn't triggered as SPAM on the receiving end. There is an option for "Group notifications by series and albums" but this does not work for home video/photo libraries. TY Edited October 23, 2024 by Teredactle wrote 5 instead of 50 2
Luke 42077 Posted October 23, 2024 Posted October 23, 2024 Hi, yes it’s a good idea. Thanks for the feedback.
darkassassin07 652 Posted October 23, 2024 Posted October 23, 2024 If you install the 'playback reporting' plugin from the catalog; you get a new notification option 'New Media Report' that lists all newly added media since the last time the notification was triggered. You can then set the schedule via 'scheduled tasks' to daily, or whatever you'd like.
Teredactle 37 Posted October 23, 2024 Author Posted October 23, 2024 Thanks for this, I saw this workaround the other day, but for whatever reason I didn't think this would work. Giving it a go to see if it works. 1
Teredactle 37 Posted October 24, 2024 Author Posted October 24, 2024 Ok so this workaround is not working - what I'm seeing is that this is actually not working. Notifications and emails ARE working as the tests are sent out; but there is a twofold problem here. 1.This setting below does NOT seem to target any media (photo/videos) in the libraries that are "Home videos & photos", which is really the only libraries I want added media notifications sent out for. When I look at the log files, I see that it looks at those libraries, but it shows nothing listed under them for new media, even though added tons of new media (and all that new media shows up on the home screen on the "Latest" feed). Not only that, but if I have "Library" "New Media Added", enabled, I do get an email notification for the new media added from those Home videos & photos libraries. 2.The other problem that I'm seeing, is that I get no notification at all as a New Media Report, even though I see that the log file shows that there is new media (below) So this is unclear to me. If I manually run the scheduled task again, it still shows the above as an added item in the log file. Does it not "reset" the findings; so the above line should not appear again in the log file when I rerun the scheduled task again, minutes later (or anytime later). I don't really know how this works, so maybe it's my misunderstanding, but I assume that when you run the "Playback Reporting - New Media Notification" task, it will check for new medias added from the last time it ran. So the log lines should all show no entries for new media. I just manually ran it again, and it's still showing the same entry, check out the time stamp. @Lukecould you please confirm either way, to me it looks like this isn't working correctly. Thanks!
Luke 42077 Posted October 24, 2024 Posted October 24, 2024 1 hour ago, Teredactle said: Ok so this workaround is not working - what I'm seeing is that this is actually not working. Notifications and emails ARE working as the tests are sent out; but there is a twofold problem here. 1.This setting below does NOT seem to target any media (photo/videos) in the libraries that are "Home videos & photos", which is really the only libraries I want added media notifications sent out for. When I look at the log files, I see that it looks at those libraries, but it shows nothing listed under them for new media, even though added tons of new media (and all that new media shows up on the home screen on the "Latest" feed). Not only that, but if I have "Library" "New Media Added", enabled, I do get an email notification for the new media added from those Home videos & photos libraries. 2.The other problem that I'm seeing, is that I get no notification at all as a New Media Report, even though I see that the log file shows that there is new media (below) So this is unclear to me. If I manually run the scheduled task again, it still shows the above as an added item in the log file. Does it not "reset" the findings; so the above line should not appear again in the log file when I rerun the scheduled task again, minutes later (or anytime later). I don't really know how this works, so maybe it's my misunderstanding, but I assume that when you run the "Playback Reporting - New Media Notification" task, it will check for new medias added from the last time it ran. So the log lines should all show no entries for new media. I just manually ran it again, and it's still showing the same entry, check out the time stamp. @Lukecould you please confirm either way, to me it looks like this isn't working correctly. Thanks! That's from a plugin. You will need to consult with the plugin developer.
Teredactle 37 Posted October 24, 2024 Author Posted October 24, 2024 3 hours ago, Teredactle said: Ok so this workaround is not working - what I'm seeing is that this is actually not working. Notifications and emails ARE working as the tests are sent out; but there is a twofold problem here. 1.This setting below does NOT seem to target any media (photo/videos) in the libraries that are "Home videos & photos", which is really the only libraries I want added media notifications sent out for. When I look at the log files, I see that it looks at those libraries, but it shows nothing listed under them for new media, even though added tons of new media (and all that new media shows up on the home screen on the "Latest" feed). Not only that, but if I have "Library" "New Media Added", enabled, I do get an email notification for the new media added from those Home videos & photos libraries. 2.The other problem that I'm seeing, is that I get no notification at all as a New Media Report, even though I see that the log file shows that there is new media (below) So this is unclear to me. If I manually run the scheduled task again, it still shows the above as an added item in the log file. Does it not "reset" the findings; so the above line should not appear again in the log file when I rerun the scheduled task again, minutes later (or anytime later). I don't really know how this works, so maybe it's my misunderstanding, but I assume that when you run the "Playback Reporting - New Media Notification" task, it will check for new medias added from the last time it ran. So the log lines should all show no entries for new media. I just manually ran it again, and it's still showing the same entry, check out the time stamp. @Lukecould you please confirm either way, to me it looks like this isn't working correctly. Thanks! @TeamB, Luke has suggested that you may be able to chime in on the above workings of the notifications combined with this plugin - I hope you don't mind me tagging you. If it's better, I can crosspost into the plugin thread. Thank you!
TeamB 2438 Posted October 24, 2024 Posted October 24, 2024 1. it only includes movies, tv show episodes and music https://github.com/faush01/playback_reporting/blob/9bfc4680983e99eed964bc6f4bca58cc8c829b72/playback_reporting/Tasks/TaskNotifictionMediaReport.cs#L123 2. it should include movies and tv show episodes that were added since the last time it was run https://github.com/faush01/playback_reporting/blob/9bfc4680983e99eed964bc6f4bca58cc8c829b72/playback_reporting/Tasks/TaskNotifictionMediaReport.cs#L144 you are seeing the log lines because they are output before the time cutoff check 1
Teredactle 37 Posted October 25, 2024 Author Posted October 25, 2024 Oh wow, that's too bad; thanks for responding. Is there any plan to include the other types of libraries (home video and photo) in the Playback, New Media report?
TeamB 2438 Posted October 25, 2024 Posted October 25, 2024 8 hours ago, Teredactle said: Oh wow, that's too bad; thanks for responding. Is there any plan to include the other types of libraries (home video and photo) in the Playback, New Media report? i have no plans, but the plugin is open source so anyone can have a hack at it.
Teredactle 37 Posted October 25, 2024 Author Posted October 25, 2024 I saw that, which is great. However I'm no programmer, I wouldn't even know where to look at, and I would only change one thing abd that is to include all libraries and hope that would provide the solution!
Teredactle 37 Posted October 27, 2024 Author Posted October 27, 2024 On 10/25/2024 at 5:11 PM, TeamB said: i have no plans, but the plugin is open source so anyone can have a hack at it. Is there a specific reason why the plugin does include all the types of libraries for UserActivityReport, but for NewMediaReport it does not include the Home Videos & Photos? Having it included would be very very helpful, to not spam people - just trying to understand the reason. TY
TeamB 2438 Posted October 27, 2024 Posted October 27, 2024 2 hours ago, Teredactle said: Is there a specific reason why the plugin does include all the types of libraries for UserActivityReport, but for NewMediaReport it does not include the Home Videos & Photos? its just the way I wrote it. I just wanted to see new episodes and movies.
Teredactle 37 Posted October 27, 2024 Author Posted October 27, 2024 Understood. Can i add a feature request to add all libraries to the new media report, users can deselect them if they don't want them included
Ansell 4 Posted October 28, 2024 Posted October 28, 2024 Hello, I have some questions about your plug-in playback_reporting. There are some media libraries that I don’t want to add statistics. Is there a place to set it separately or add a name to each media library separately? There are some media libraries that I don’t want my family to see the playback record. It's a little embarrassing. You know what I mean. I hope it can be improved.playback_reporting @TeamB
Teredactle 37 Posted October 28, 2024 Author Posted October 28, 2024 12 hours ago, Ansell said: Hello, I have some questions about your plug-in playback_reporting. There are some media libraries that I don’t want to add statistics. Is there a place to set it separately or add a name to each media library separately? There are some media libraries that I don’t want my family to see the playback record. It's a little embarrassing. You know what I mean. I hope it can be improved.playback_reporting @TeamB You family should have no access to the plugins, that is only an admin's view - create a user for your family w/o admin access, then only you can see the playback reports. If you have playback reporting notifications you can customize which users get those reports and on which libraries it reports. More at this thread:
TeamB 2438 Posted October 28, 2024 Posted October 28, 2024 22 hours ago, Teredactle said: Understood. Can i add a feature request to add all libraries to the new media report, users can deselect them if they don't want them included yes you can make that request but I have no plan to add that feature, perhaps another 3rd party dev will step up but the community in that area is a little thin at the moment for some reason so I would not hold your breath.
Teredactle 37 Posted October 31, 2024 Author Posted October 31, 2024 Any dev here want to make this change? pretty please!
Luke 42077 Posted October 31, 2024 Posted October 31, 2024 1 hour ago, Teredactle said: Any dev here want to make this change? pretty please! More notification grouping options are certainly possible for future updates. Thanks. 1
Teredactle 37 Posted November 16, 2024 Author Posted November 16, 2024 Looking forward to this, hopefully sooner rather than later!! 1
Teredactle 37 Posted November 22, 2024 Author Posted November 22, 2024 (edited) On 10/27/2024 at 5:17 PM, TeamB said: its just the way I wrote it. I just wanted to see new episodes and movies. Hi, could you tell me since you write this plugin, would it be easy to change in the code the part where it doesn't include the Home Video & Photo libraries? I have no clue on where to even look for this, but I'm willing to try since the code is open. I imagine that in some part of the code, you just have some sort of selection of libraries based on what type it is. Since there are 9 different types you libraries, you must be selecting the type "TV Shows" and "Movies", so in my mind a change to include all would be what I'm looking for, really to include the "Home Videos & Photos", but if there is no limit to the type at all, within Emby notifications once can still choose which library to use this "New Media Report" via the "Limit Library Events to" dropdown. TY EDIT: I searched the code on github for "movies" and saw a bunch of places where "movies" and "series" are being called out in queries, in the code and API (I think); I'm just not able to tell if the code is made to work if you include another type of grouping or not. What I mean is, if you include another type, will is screw up the rest because of dependencies? TY Edited November 22, 2024 by Teredactle updates
TeamB 2438 Posted November 22, 2024 Posted November 22, 2024 21 minutes ago, Teredactle said: Hi, could you tell me since you write this plugin, would it be easy to change in the code the part where it doesn't include the Home Video & Photo libraries? I have no clue on where to even look for this, but I'm willing to try since the code is open. I imagine that in some part of the code, you just have some sort of selection of libraries based on what type it is. Since there are 9 different types you libraries, you must be selecting the type "TV Shows" and "Movies", so in my mind a change to include all would be what I'm looking for, really to include the "Home Videos & Photos", but if there is no limit to the type at all, within Emby notifications once can still choose which library to use this "New Media Report" via the "Limit Library Events to" dropdown. TY i put a link in my post above to the line in the code that limits the items to just the types wanted. change that and in the following loop where the returned items are processed to include the types you want.
Teredactle 37 Posted November 22, 2024 Author Posted November 22, 2024 1 hour ago, TeamB said: i put a link in my post above to the line in the code that limits the items to just the types wanted. change that and in the following loop where the returned items are processed to include the types you want. Yes, I see now: query.IncludeItemTypes = new string[] {"Movie", "Episode", "Audio"}; @Lukewhat is the type that the Home Movies and Videos is? I'm unsure where I can look this up.... @TeamBSo once I add (let's say the string is called HomeVP) to the code: query.IncludeItemTypes = new string[] {"Movie", "Episode", "Audio", "HomeVP"}; I then need to go in this section and insert the new string as another else if like this? else if (typeof(HomeVP).Equals(item.GetType())) { view_message_data += " - (" + type + ") " + name + "\r\n"; Then how do I implement this on my Emby? This all needs to be recompiled I guess? I have no clue how to do that. Is that done via github? I don't have any tools on my system for programming/compiling.. And what happens when you release a new version of this plugin, it doesn't have these changes, and the system is set to update automatically the plugins (which I believe there is no way to turn off)? LOL Thanks for your patience.
TeamB 2438 Posted November 22, 2024 Posted November 22, 2024 @Teredactle The Playback reporting plugin is an open source 3rd party plugin for Emby, it is not included in Emby by default, you can install it using the Emby plugin catalogue though. Normally for the main version of the plugin i.e. the one I complied and uploaded to the catalogue, users can just install from the catalogue. However if you want to create a custom version the plugin needs to be compiled from source into a DLL that needs to be copied to the plugins directory of the Emby install. To compile the plugin into a DLL you will need to use a compiler. I recommend Visual Studio Community Edition https://visualstudio.microsoft.com/vs/community/ To edit and compile the DLL you will need to check out the source code from github, install git first https://git-scm.com/downloads Then check out the code using git clone https://github.com/faush01/playback_reporting.git Open the SLN file in visual studio and build the source. Make your changes, build the source and then copy the DLL to your Emby plugins directory.
Luke 42077 Posted November 22, 2024 Posted November 22, 2024 The item type for home Videos is Video, but I wouldn’t query just on that because you’ll get other things back. What I would do instead is filler your results on library.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now