horstepipe 356 Posted June 28, 2022 Share Posted June 28, 2022 1 hour ago, emdubya77 said: It seems to vary between clients - for example it's possible on Fire TV but not Android mobile. This applies to all playlists, not just from this plugin - I'm sure I've seen a FR somewhere. are you sure this works on FireOS? At least it doesn't work on Android TV here (not the mobile version of the app). Yeah I don't find the FR, too - but was also sure there was one. Link to comment Share on other sites More sharing options...
Junglejim 351 Posted June 28, 2022 Share Posted June 28, 2022 2 hours ago, horstepipe said: are you sure this works on FireOS? At least it doesn't work on Android TV here (not the mobile version of the app). Yeah I don't find the FR, too - but was also sure there was one. I personally don't own a FireOS device so can't comment there.. but Android TV on a Sony TV and Android mobile on a Samsung tablet both don't show detailed info. It's just play, same as the web browser. It's a shame smart playlists are so neglected on this platform, apps like XBMC/Kodi have had this functionality for years. Link to comment Share on other sites More sharing options...
emdubya77 30 Posted June 29, 2022 Share Posted June 29, 2022 (edited) [deleted] Edited July 6, 2022 by emdubya77 1 1 Link to comment Share on other sites More sharing options...
Junglejim 351 Posted June 29, 2022 Share Posted June 29, 2022 12 minutes ago, emdubya77 said: Yep, but only with the central 'select' button (open/play/play from here/remove). Strangely if I use the 'menu'/hamburger button I don't get the 'open' choice. I found these....eventually: Cool! Thank's for searching these requests out.. Added my +1 to all of them. 1 Link to comment Share on other sites More sharing options...
BaiGanJia 21 Posted June 29, 2022 Share Posted June 29, 2022 On 6/27/2022 at 5:39 PM, Bazzu85 said: @ShaneP When modifying a smart playlist removing the "limit" flag the associated playlist is not updated. the only solution I found was to delete the playlist and let the plugin rebuild it.. additionally I encountered this problem many times today.. an example is this: If I for example remove the played condition this is the log: and the playlist remain as previously. if I delete the playlist and save again in the plugin: After that adding again the is played false and saving, update the playlist back to 262 items without the delete method.. Me too, the playlists created before are invalid and have to be recreated Link to comment Share on other sites More sharing options...
dRuEFFECT 7 Posted July 8, 2022 Share Posted July 8, 2022 I'm having trouble trying to accomplish something specific here, hoping it's possible or can figure out some kind of workaround. TLDR: trying to get a smart playlist to show media items from a manual playlist, but filter to unwatched items only and sort by rating. My wife and I separately add movies to the server and don't always agree on what to watch when we have time to sit down for a movie. I wanted to group movies into a collection or playlist like "Movie Queue: Agreed" that we can just spam add a bunch of movies on the fly. Taking it a step further I want movies to drop off after it's been watched. I would have preferred adding movies to an agreed collection, as to avoid adding the same movie twice, but there's no option to add a movie to a collection on the android tv app. I created a manual playlist called "Movie Queue: Agreed" for which I can use my TV remote on an Nvidia Shield to add new movies to this playlist easily, just bring up the context menu and add to playlist. I tried creating a smart playlist using the manual playlist as a source type, with the sort and filter options applied, but no media items are found. Does this not work? Am I doing something wrong? Link to comment Share on other sites More sharing options...
Junglejim 351 Posted July 8, 2022 Share Posted July 8, 2022 (edited) 7 hours ago, dRuEFFECT said: I'm having trouble trying to accomplish something specific here, hoping it's possible or can figure out some kind of workaround. TLDR: trying to get a smart playlist to show media items from a manual playlist, but filter to unwatched items only and sort by rating. My wife and I separately add movies to the server and don't always agree on what to watch when we have time to sit down for a movie. I wanted to group movies into a collection or playlist like "Movie Queue: Agreed" that we can just spam add a bunch of movies on the fly. Taking it a step further I want movies to drop off after it's been watched. I would have preferred adding movies to an agreed collection, as to avoid adding the same movie twice, but there's no option to add a movie to a collection on the android tv app. I created a manual playlist called "Movie Queue: Agreed" for which I can use my TV remote on an Nvidia Shield to add new movies to this playlist easily, just bring up the context menu and add to playlist. I tried creating a smart playlist using the manual playlist as a source type, with the sort and filter options applied, but no media items are found. Does this not work? Am I doing something wrong? Hi mate, I just tested it and got it working with what I think your after (v2.3.0.2 smart playlists). I worded the playlists different but it's the same as you I think. I created a basic Emby playlist called Watch list that would equal your "Movie Queue: Agreed". Then I created a live smart playlist called My watch list... Not to sure how really live updates are with smart playlists, its not instant for me anyway. If I go back to the edit settings of the live smart playlist and hit save it updates. didn't have the patience to wait around to see if it updated after a few minutes. Maybe set it to update daily. Edited July 8, 2022 by Junglejim Link to comment Share on other sites More sharing options...
dRuEFFECT 7 Posted July 8, 2022 Share Posted July 8, 2022 27 minutes ago, Junglejim said: I just tested it and got it working with what I think your after And its showing your media items in the new smart playlist? I didn't have media type = Movie but tried adding that and even recreating a smart playlist, but still no luck here. I also noticed your smart playlist doesn't have a standalone sort optim, only sorting with a limit. Is there a different version of smart playlists out? I'm running 2.3 on Emby 4.7.5 Link to comment Share on other sites More sharing options...
Junglejim 351 Posted July 8, 2022 Share Posted July 8, 2022 2 minutes ago, dRuEFFECT said: And its showing your media items in the new smart playlist? I didn't have media type = Movie but tried adding that and even recreating a smart playlist, but still no luck here. I also noticed your smart playlist doesn't have a standalone sort optim, only sorting with a limit. Is there a different version of smart playlists out? I'm running 2.3 on Emby 4.7.5 Yea mate showing media, I only added a few test movies. This is my Emby list, as you can see I marked The lost city as watched This is the smart playlist sorted by rating and unwatched Link to comment Share on other sites More sharing options...
Junglejim 351 Posted July 8, 2022 Share Posted July 8, 2022 (edited) I running v2.3.0.2 of smart playlists on Emby 4.7.5. Yea your screenshot does look like a different version. Edited July 8, 2022 by Junglejim Link to comment Share on other sites More sharing options...
dRuEFFECT 7 Posted July 8, 2022 Share Posted July 8, 2022 11 hours ago, Junglejim said: I running v2.3.0.2 of smart playlists on Emby 4.7.5. Yea your screenshot does look like a different version. I upgraded the plugin to 2.3.0.2 and it's still not working for me. Tried creating both new manual and smart playlists after upgrading. @ShaneP anything else I can do to troubleshoot this? Link to comment Share on other sites More sharing options...
ShaneP 225 Posted July 8, 2022 Author Share Posted July 8, 2022 12 minutes ago, dRuEFFECT said: I upgraded the plugin to 2.3.0.2 and it's still not working for me. Tried creating both new manual and smart playlists after upgrading. @ShaneP anything else I can do to troubleshoot this? @dRuEFFECT Silly question but are you sure that the movies in source playlist haven't been played already. I am busy working on the next version and there will be an option to verbose debug to try help trouble shoot these types of issues. I plan to have this done by Sunday. Link to comment Share on other sites More sharing options...
dRuEFFECT 7 Posted July 8, 2022 Share Posted July 8, 2022 2 hours ago, ShaneP said: Silly question but are you sure that the movies in source playlist haven't been played already. I am busy working on the next version and there will be an option to verbose debug to try help trouble shoot these types of issues. I plan to have this done by Sunday. Yea they're all unwatched. Even just a filter of media type = movies returns nothing. I'll try out the verbose logging as soon as it's ready. Thanks! Link to comment Share on other sites More sharing options...
Junglejim 351 Posted July 9, 2022 Share Posted July 9, 2022 (edited) 6 hours ago, ShaneP said: @dRuEFFECT Silly question but are you sure that the movies in source playlist haven't been played already. I am busy working on the next version and there will be an option to verbose debug to try help trouble shoot these types of issues. I plan to have this done by Sunday. Hi mate looking forward to the new release. One thing I came across while testing the request from @dRuEFFECT was that the played=false is not picked up across different users. For example I created the playlist with my admin account which I don't watch any media with. It created the playlist fine but if I load that playlist with my main user that has watched a lot of content in the list, it still shows the list created by admin and the movies will have the watched tick but are not filtered out. The only thing I can think of is to give my main user temporary admin rights and create the smart playlist in question? Just tested that and it works, would be nice not to have to do that but I'm not sure if that's possible? Edited July 9, 2022 by Junglejim Link to comment Share on other sites More sharing options...
Junglejim 351 Posted July 9, 2022 Share Posted July 9, 2022 4 hours ago, dRuEFFECT said: Yea they're all unwatched. Even just a filter of media type = movies returns nothing. I'll try out the verbose logging as soon as it's ready. Thanks! Hi mate, yea I just tried to create a new smart playlist from a playlist and it didn't work. previously I used a existing test playlist to edit and it worked straight away. So it looks like that function is a little funky. Try creating a standard media items playlist and get that to populate, then edit that to use your Emby playlist and see if that works. Link to comment Share on other sites More sharing options...
dRuEFFECT 7 Posted July 9, 2022 Share Posted July 9, 2022 (edited) 12 hours ago, Junglejim said: Hi mate, yea I just tried to create a new smart playlist from a playlist and it didn't work. previously I used a existing test playlist to edit and it worked straight away. So it looks like that function is a little funky. Try creating a standard media items playlist and get that to populate, then edit that to use your Emby playlist and see if that works. Yooo that was exactly it! Seems there's a bug with creating a smart playlist based on media type of playlist, maybe it's failing to create the new playlist which it loads the items into, I noticed that creating a smart playlist with media type=playlist sets the "internal item id" = -1. But once the smart playlist is created based from media items, the destination playlist is created, then editing the smart playlist has the destination set properly and can load items sourced from another playlist. @ShaneP FYI for this issue, not 100% sure and just speculating on the reason, but this workaround works for me. Thank you both! edit: also, it looks like the smart playlist only shows a movie once even if it's in the source playlist twice, which works out perfect for what i wanted Edited July 9, 2022 by dRuEFFECT Link to comment Share on other sites More sharing options...
ShaneP 225 Posted July 9, 2022 Author Share Posted July 9, 2022 (edited) 2 hours ago, dRuEFFECT said: Yooo that was exactly it! Seems there's a bug with creating a smart playlist based on media type of playlist, maybe it's failing to create the new playlist which it loads the items into, I noticed that creating a smart playlist with media type=playlist sets the "internal item id" = -1. But once the smart playlist is created based from media items, the destination playlist is created, then editing the smart playlist has the destination set properly and can load items sourced from another playlist. @ShaneP FYI for this issue, not 100% sure and just speculating on the reason, but this workaround works for me. Thank you both! edit: also, it looks like the smart playlist only shows a movie once even if it's in the source playlist twice, which works out perfect for what i wanted Great, the verbose logging is complete just testing on my server, and it makes totally sense around played criteria failure, as the legacy code just uses the current user logged in. For user sensitive metadata, I’m thinking of adding a drop down on the criteria field where one can select the user to apply the filter with. Next on the list. Once that is done and I’ve done my internal tests I’ll put out a release. Thanks again for getting to the bottom of this dudes. Edited July 9, 2022 by ShaneP 1 1 Link to comment Share on other sites More sharing options...
ShaneP 225 Posted July 12, 2022 Author Share Posted July 12, 2022 (edited) Version 2.4.0.0 Feature Added verbose log to info section. Added link to open up generated playlist. General optimization and clean up. Added Sort (Then Bys) to Sort Jobs. Added Sorting to source list. Added Multiple Add functionality to PlaylistEditor. Added user based criteria for following user metadata fields: Favorite LastPlayed Play Count Played Bug If any playlists backend files are corrupt, skips loading the playlist and moves the file to a *.failed file, and continues to load. Currently just crashes out with no notification. Fixed bug when source was playlist or collection not picking up source items. As always, code is https://github.com/ShanePe/Emby.SmartPlaylist.Plugin/releases Happy Testing Oh and let me know if I have missed anything. Verbose log: Detail -> Log button (Only if a log file exists, log is cleaned on ever playlist run, each playlist has it's own log) Link: Any 'user related' fields will now have a user selector: Sort Then By: Sort Job Multiple Add functionality -> Editor SmartPlaylist-2.4.0.0.zip Edited July 12, 2022 by ShaneP 3 Link to comment Share on other sites More sharing options...
Ninko 63 Posted July 12, 2022 Share Posted July 12, 2022 @ShanePJust tested your latest version and after running a smart playlist, Emby appears to crash. Emby logs attached. Thanks unhandled_6652f0e6-a992-45ef-af24-6a26bbe9b399.txt embyserver-63793265377.txt Link to comment Share on other sites More sharing options...
ShaneP 225 Posted July 12, 2022 Author Share Posted July 12, 2022 3 minutes ago, Ninko said: @ShanePJust tested your latest version and after running a smart playlist, Emby appears to crash. Emby logs attached. Thanks unhandled_6652f0e6-a992-45ef-af24-6a26bbe9b399.txt 1.42 kB · 0 downloads embyserver-63793265377.txt 34.63 kB · 0 downloads Thanks @Ninko, I was just uploading a fix for that, please download the 2.4.0.0 version again let me know if that resolve it. Link to comment Share on other sites More sharing options...
horstepipe 356 Posted July 13, 2022 Share Posted July 13, 2022 On 6/24/2022 at 12:52 PM, horstepipe said: Is there some wiki or anything about that? Not sure how to setup AND/OR groups there. Would anybody mind showing a screenshot how it should look like? best regards *BUMP* Link to comment Share on other sites More sharing options...
horstepipe 356 Posted July 13, 2022 Share Posted July 13, 2022 (edited) @ShaneP is adding a fix for the The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset') issue still on your todo list? Best regards Edited July 13, 2022 by horstepipe Link to comment Share on other sites More sharing options...
ShaneP 225 Posted July 13, 2022 Author Share Posted July 13, 2022 1 minute ago, horstepipe said: @ShaneP is adding a fix for the The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset') issue still on your todo list? Best regards Thanks for reminding me… I missed this, added to the list for next release 1 Link to comment Share on other sites More sharing options...
sydlexius 241 Posted July 13, 2022 Share Posted July 13, 2022 (edited) Would it be possible to allow for custom regex in some of the fields? For example, I'm trying to custom tag all of my NR/Unrated content, but also wish to exclude media that I've already set custom rating for. So something like select "Parental Rating" from the filter drop-down, then select "Regular Expression" in the adjacent drop-down, then the expression itself. Perhaps to indicate that it's an actual expression, you can force users to wrap it in forward slashes. Such as //^(NR|Unrated)$// For that matter, having a regex option on many of the fields would be useful. Edited July 13, 2022 by sydlexius added mock-up 1 Link to comment Share on other sites More sharing options...
ShaneP 225 Posted July 13, 2022 Author Share Posted July 13, 2022 36 minutes ago, sydlexius said: Would it be possible to allow for custom regex in some of the fields? For example, I'm trying to custom tag all of my NR/Unrated content, but also wish to exclude media that I've already set custom rating for. So something like select "Parental Rating" from the filter drop-down, then select "Regular Expression" in the adjacent drop-down, then the expression itself. Perhaps to indicate that it's an actual expression, you can force users to wrap it in forward slashes. Such as //^(NR|Unrated)$// For that matter, having a regex option on many of the fields would be useful. Good idea, on the list for next release Link to comment Share on other sites More sharing options...
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