Jump to content

New Plugin: Smart Playlists 2.0


ShaneP

Recommended Posts

Ninko

@ShanePNo I've not been able to get any results using the above settings.

I'm not sure where you can find the last played in the metadata but from what the plug-in playback reporting says, it should be picking up many results.

Thanks

Link to comment
Share on other sites

thisismytrial
7 hours ago, ShaneP said:

@thisismytrial It seems that you need to have multiple sorts here... i.e. sort by series then by episode, I'll see the overhead of adding this in the new sort job functionality. This might take awhile though :D

Yeah I guess that would do what I am suggesting. Thanks!

If you have a donation link, lemme know. Work like this is very appreciated!

Edited by thisismytrial
Link to comment
Share on other sites

ShaneP
On 4/4/2022 at 6:39 PM, Ninko said:

@ShanePNo I've not been able to get any results using the above settings.

I'm not sure where you can find the last played in the metadata but from what the plug-in playback reporting says, it should be picking up many results.

Thanks

Cool thanks @Ninko,  I'll see what I can find, I plan to spend some time on it this weekend.

On 4/4/2022 at 6:53 PM, thisismytrial said:

Yeah I guess that would do what I am suggesting. Thanks!

If you have a donation link, lemme know. Work like this is very appreciated!

Hey @thisismytrial No need to worry about donations... just pay it forward :D I'll see what I can do

23 hours ago, Tastey said:

Does this work when running the server on a mac?

Hey @Tastey I can't think of any reason why it shouldn't if you access it via the web client.

  • Thanks 1
Link to comment
Share on other sites

Hawkwinter

@ShaneP 
Hey. I've just got it set up, and sometimes searches work, and other times they don't.

I'm trying to make a "Modern Fantasy Reruns" playlist. The idea is that stuff I've watched, in appropriately tagged shows, automatically gets added into the reruns rotation for when I leave the TV on in the background. Just pick a genre and it goes for a couple days unless stopped. But I don't want to include heavy "arc"- focused shows, so anything that is okayed for the rerun playlists I'm tagging the show as 'episodic'.

A few shows are detected. My Buffy, Angel, and Supernatural stuff shows up.  But no other shows with the relevant tags appear in the playlist. For instance Jackie Chan Adventures (among other shows in my library) meet the required conditions but don't get detected, even though they should.

(I have the same inconsistent show-detection issues with other genre-rerun playlists I'm trying to make as well.)

To test further, I made a second one of just Jackie Chan reruns. With one genre filter, it picks it up in the jackie chan list. When I add the "Episodic", or "Modern" tag-filter to the search terms, the jackie chan playlist is empty as well.


Any ideas what could be the cause?

image.thumb.png.6eb9061a51b50f133c59fb612379be1c.png

image.png.9506c1249fd65c83f777ad7beb00e43b.pngimage.png.1ee74882be9eb348eb1e97405feaec4b.png



image.thumb.png.5fe8e7f366fb29a675b85e159bbdf3d1.png

Edited by Hawkwinter
Link to comment
Share on other sites

ShaneP

Hey @Ninko, I think I have found problem, I am doing a few other things, I'll be putting out a release soon, just trying to find the time.

  • Thanks 1
Link to comment
Share on other sites

Hawkwinter
23 hours ago, koopa8840 said:

@ShaneP

What is the difference between Genre, Genre (Listed), Genre (Tree Crawl)?

(Tree Crawl) seems to *always* be the one you want for TV. From what I can tell via trial and error, the other two ignore genres at the tvshow level and only check at the episode level.

Depending on how your collection is set up, it may not matter for movies, and the first two would thus give you faster search results.

But I don't know what the difference is between Genre, and Genre (Listed).

Link to comment
Share on other sites

Mossop

I've installed this by putting the dll into emby's plugins directory but when I go to the configuration page it is just blank. Looking at the browser devtools it seems that the files ConfigurationPage?name=smartplaylist.2.3.0.0.css&2.3.0.0 and ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0 are failing to load with 404 errors. Is there something else I need to do to enable this?

Link to comment
Share on other sites

Flintfamily

This plugin seems like a great idea but I've run into an issue. I was trying to list all Netflix shows but it seems only the series metadata contains the studio, all the episodes have no studio info. Should the plugin pull from the series or only episode metadata? Because at the moment I have no shows populating the netflix collection despite being able to search "Netflix" in emby and have multiple shows come up in the results.

Edit: Ignore that, I now understand the diff between Studio and Studio (tree crawl)!

Edited by Flintfamily
Link to comment
Share on other sites

Flintfamily

@ShaneP Thanks for your work on this plugin, I was initially really excited by the added functionality but after playing around with it, I discovered it has a major limitation due to collections not being able to be sorted. What I hoped was that I could create studio collections such as Disney and show the latest content from them, but now I realise that the collections will always show the oldest content first, obviously this comes from the typical usage being for box sets where you want the first film first followed by the sequal and so on. It's a real shame. Have you had any conversations with the team on potentially adding the ability to sort?

Link to comment
Share on other sites

ShaneP
On 4/13/2022 at 4:43 PM, koopa8840 said:

@ShaneP

What is the difference between Genre, Genre (Listed), Genre (Tree Crawl)?

Hey @koopa8840, the descriptions are in the changes logs, but a quick recap is:

  • Genre: Free text field where the item (i.e. episode) genre metadata field will be used for a match
  • Genre (Listed): Listed will do the same thing, but instead of a free text field, it will give you a list of genres that are already in the system.
  • Genre (Treecrawl): will walk up the change to find a match and if matched adds the item. So for example, lets say the series has the genre you want, it will look at the episode first, if no match, then it will look one level up at the season element, to see if the genre is tagged there, if not, it will then search on level up at the series, if the genre matches the item will then be added to the collection/playlist.
On 4/16/2022 at 3:28 PM, Mossop said:

I've installed this by putting the dll into emby's plugins directory but when I go to the configuration page it is just blank. Looking at the browser devtools it seems that the files ConfigurationPage?name=smartplaylist.2.3.0.0.css&2.3.0.0 and ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0 are failing to load with 404 errors. Is there something else I need to do to enable this?

Hey @Mossop, did you get this to work, as it should be as simple as coping the DLL and restarting, can you perhaps attach some logs and a bit more detail about your environment please.

3 minutes ago, Flintfamily said:

@ShaneP Thanks for your work on this plugin, I was initially really excited by the added functionality but after playing around with it, I discovered it has a major limitation due to collections not being able to be sorted. What I hoped was that I could create studio collections such as Disney and show the latest content from them, but now I realise that the collections will always show the oldest content first, obviously this comes from the typical usage being for box sets where you want the first film first followed by the sequal and so on. It's a real shame. Have you had any conversations with the team on potentially adding the ability to sort?

@Flintfamily Firstly glad you figured out the treecrawl, secondly, I have not reached out to them, perhaps log a feature request and we can try get votes on it. It's a real bummer and I spent ages trying to get this right.

 

 

I'm just trying to find the time to finish up the new release, thanks everyone for your patience.

 

  • Like 1
Link to comment
Share on other sites

Hawkwinter
33 minutes ago, Flintfamily said:

@ShaneP Thanks for your work on this plugin, I was initially really excited by the added functionality but after playing around with it, I discovered it has a major limitation due to collections not being able to be sorted. What I hoped was that I could create studio collections such as Disney and show the latest content from them, but now I realise that the collections will always show the oldest content first, obviously this comes from the typical usage being for box sets where you want the first film first followed by the sequal and so on. It's a real shame. Have you had any conversations with the team on potentially adding the ability to sort?

This user made plugin makes playlists based on search conditions and sorts them a variety of ways, and updates those playlists on a scheduleyou specify.

If you want to sort your playlists made by from this extension by release date (or date added), it already does that. You just have to choose this option in the sort menu: image.png.ebaa2cfcad5486f7f83929adbac7a3a1.png

You could set it up something like this
image.thumb.png.9b0770e825fda8b855d346747a3da361.png

And it would make a playlist (not a collection) of all your disney movies, sorted by release date (assuming they all have Disney in the studio name. If not, you could add it, tag your movies and search by tag, or use a different studio search term).

If you want to sort the built-in collections differently, that's a feature request for the emby developers, and you're in the wrong place. You're talking to other users in a section about a user-made mod for emby that adds a feature (probably made by one user, not a team) - the emby employees likely never look here. 

Edited by Hawkwinter
Link to comment
Share on other sites

Hawkwinter
27 minutes ago, ShaneP said:

I'm just trying to find the time to finish up the new release, thanks everyone for your patience.

I look forward to trying the new release. Did you hunt down the cause of that bug I was encountering? Nobody replied to me after I brought it up.

Link to comment
Share on other sites

ShaneP
22 minutes ago, Hawkwinter said:

I look forward to trying the new release. Did you hunt down the cause of that bug I was encountering? Nobody replied to me after I brought it up.

Yea it's on my list of investigation :D, I am looking at adding a debug option where it will push out a lot of details to the logs as I think this will help in pin pointing issue related to non matches. Just trying to find the time, things are a but hectic at the mo'

 

  • Like 1
Link to comment
Share on other sites

Mossop
1 hour ago, ShaneP said:

Hey @Mossop, did you get this to work, as it should be as simple as coping the DLL and restarting, can you perhaps attach some logs and a bit more detail about your environment please.

@ShaneP no and I'm not sure what to try to solve the issue. I'm running Emby in docker on my Ubuntu impish server. The dll is presumably in the right place since it shows up in the configuration sidebar. It has the same file access permissions as the other dlls.

Edited by Mossop
Link to comment
Share on other sites

Mossop
21 minutes ago, Mossop said:

@ShaneP no and I'm not sure what to try to solve the issue. I'm running Emby in docker on my Ubuntu impish server. The dll is presumably in the right place since it shows up in the configuration sidebar. It has the same file access permissions as the other dlls.

No wait I think I've figured it out. I'm accessing Emby by going to https://app.emby.media/ but if I access it direct by its IP address then it works. Looking at network traffic it seems that the plugin is attempting to load its css and js from app.emby.com when it should be using the direct URL to the emby server.

Link to comment
Share on other sites

Mossop

Bug report:

I was editing a smart playlist and when I change the source to Collection or Playlist the editing dialog vanishes and this shows up in the browser console:

TypeError: can't access property "name", v.source is undefined
    PlaylistEditor https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    oo https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Wo https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Gi https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Ou https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Tu https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Pu https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    bu https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    qa https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    unstable_runWithPriority https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Ja https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    qa https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Ga https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    De https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    De https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Fe https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Dr https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Dr https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Zt https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Xt https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    unstable_runWithPriority https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Ja https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Me https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1
    Yt https://emby.clantownsend.com:63647/web/ConfigurationPage?name=smartplaylist.2.3.0.0.js&2.3.0.0:1

Update: Looks like this happens when there are no collections or playlists on the server.

Edited by Mossop
Link to comment
Share on other sites

Mossop

I've marked a number of TV shows as "favourites" in the web interface but it looks like this plugin only cares if the individual episodes are marked as favourite. It would be awesome to add support for that.

Link to comment
Share on other sites

Hawkwinter

On the topic of filtering requests, the following filters would be useful things that I don't *think* you can currently filter by:

>"Is in collection" / tree crawl / list
(you could search things from multiple collections, or only things that are in multiple collections, for instance)
>"show has watched/unwatched episodes"
>"is next unplayed episode" / "is next up"

It could be handy for making a playlist that collects your various "next ups" of stuff you're watching, or making a playlist to remind you of stuff you started but didnt finish (just combine it with something to check and make sure the show hasn't been watched in the past month, for instance).

Just some ideas.

Keep up the good work!

  • Like 1
Link to comment
Share on other sites

koopa8840

I'm trying to create a Collection for movies that are under 10Mbps and it is not working. The first time, I created the collection, SmartPlaylists added files that were over 10Mbps. When  tested, after making some edits, I get an error. Then I deleted the collection and recreated with no success, so I delete it. Then I noticed, when I switched (on the left pane) to a different setting and then back to SmartPlaylists, the two previous deleted lists were displayed. I went to the folder (programdata/data/smartplaylists) and the json files were still there. I deleted those, went back to the settings, switched to a different setting and back to SmartPlaylists and the deleted lists were still there. Once I restarted the server, the entries were gone. However, I still can not get the collection to populate correctly. This is on Emby Version 4.7.0.35 beta.

I keep getting this error: Error Method not found: 'Void MediaBrowser.Controller.Library.ILibraryManager.UpdateItems(System.Collections.Generic.List`1<MediaBrowser.Controller.Entities.BaseItem>, MediaBrowser.Controller.Entities.BaseItem, MediaBrowser.Controller.Library.ItemUpdateType, System.Threading.CancellationToken)'. 

 

After more playing around, I found that I have to delete the file, from the data/smartplaylists folder and go to Emby and delete the collection. I remade the playlist and it did what I wanted, but I have this error: Error Value cannot be null. (Parameter 'first'). This is what I have:

image.thumb.png.f523167b661a1e19829412004a11a4c0.png

Edited by koopa8840
Updated info
Link to comment
Share on other sites

Hawkwinter
6 hours ago, slyfox said:

How do I filter out audio books from Media Type: Audio?

The easiest option would be to use this free tool to add the tag "audiobook" to all your audiobooks, and then filter that out (You can do it from within Emby, but you'll have to do it one book at a time there - this lets you do a bunch of them in bulk.)
 

 

Edited by Hawkwinter
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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