b0dyr0ck2006 57 Posted September 19, 2022 Share Posted September 19, 2022 Seems to work well here, thank you Link to comment Share on other sites More sharing options...
OnyxUK 77 Posted September 19, 2022 Share Posted September 19, 2022 All good this end as well chef thank you again cant wait for the other plugin too Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 19, 2022 Share Posted September 19, 2022 I would make the Premieredate/Dateadded values configurable. Or make them both the same to cover Premieredate as Dateadded. 1 Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 19, 2022 Share Posted September 19, 2022 (edited) Also the problem with Channels is Duplication as they are new database items for existing items. Search is duplicated also. Edited September 19, 2022 by Happy2Play 1 Link to comment Share on other sites More sharing options...
chef 3744 Posted September 19, 2022 Share Posted September 19, 2022 5 minutes ago, Happy2Play said: Also the problem with Channels is Duplication as they are new database items for existing items. Search is duplicated also. Ah... There is it. That is what I was waiting for. Okay, for this plugin I mapped the same internal Id to the new releases version to try and stop this from happening. Apparently, it doesn't stop the second db entry. That sucks. It looks as though the watch status copies over though. Which is interesting... Must be the same code that copies watched status between different versions, ie: 2160p and 1080p. Wonder how to fix this. Link to comment Share on other sites More sharing options...
chef 3744 Posted September 19, 2022 Share Posted September 19, 2022 19 minutes ago, Happy2Play said: I would make the Premieredate/Dateadded values configurable. Or make them both the same to cover Premieredate as Dateadded. I'm gonna need some code snip-its to quickly bang out these config pages. Link to comment Share on other sites More sharing options...
chef 3744 Posted September 19, 2022 Share Posted September 19, 2022 ... hmmm, the duplicate also shows up in "More like this..." as well. Let's try changing the ID of each item to something unique. Link to comment Share on other sites More sharing options...
chef 3744 Posted September 19, 2022 Share Posted September 19, 2022 (edited) On 9/19/2022 at 5:19 PM, Happy2Play said: Also the problem with Channels is Duplication as they are new database items for existing items. Search is duplicated also. I believe I have fixed this. unfortunately there is a slight hiccup when installing this new version of "New Releases" 1. Remove the old version of "New Releases" 2. Restart the Server. 3. Run Refresh Internet Channels with the plugin now uninstalled 4. Run a Library Scan with the plugin now uninstalled 5. Install New Releases 6. Restart the Server to load the new DLL. 7. Run Refresh Internet Channels 8. Run Library Scan It's the only way to clear the db of the old values attached to what was generated before. However this version should not duplicate the items. Notes: If New Releases doesn't appear on the Home Screen, restart the serve one more time. If the watched status doesn't match the item found in the library, run library scan again. Edited October 15, 2022 by chef Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 19, 2022 Share Posted September 19, 2022 @chef I see no difference with process above. Note Emby.Kids does the same also. Link to comment Share on other sites More sharing options...
chef 3744 Posted September 19, 2022 Share Posted September 19, 2022 1 minute ago, Happy2Play said: @chef I see no difference with process above. Note Emby.Kids does the same also. So.. that means that there is a possibility of having three "continue watching" items appear, if the item shows up in New releases, kids movies, and the library. That's the pits! Maybe I'll ask again.. @Luke sir, can "Continue watching" and "More like this..." lists ignore channel items? Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 19, 2022 Share Posted September 19, 2022 (edited) 5 minutes ago, chef said: So.. that means that there is a possibility of having three "continue watching" items appear, if the item shows up in New releases, kids movies, and the library. That's the pits! Maybe I'll ask again.. @Luke sir, can "Continue watching" and "More like this..." lists ignore channel items? Yes just like if one has multiple same items in different library as they are not multi-versioned, so they appear in CW that many times. Basically each ItemID with same providerids. Edited September 19, 2022 by Happy2Play Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 19, 2022 Share Posted September 19, 2022 Is there a way to use same item ID in Channels? Not sure why trailer is has 3. Link to comment Share on other sites More sharing options...
chef 3744 Posted September 19, 2022 Share Posted September 19, 2022 (edited) 27 minutes ago, Happy2Play said: Is there a way to use same item ID in Channels? Not sure why trailer is has 3. That is what the first version did. It used the same ID, but for some reason it created a second entry in the db anyway. I even tried to give the channel item a name like: "Prey [ New Release]". But that didn't work either. Maybe I could try "Prey-NewRelease" and see if that changes anything with the dash in the name. Edited September 19, 2022 by chef Link to comment Share on other sites More sharing options...
Luke 36888 Posted September 20, 2022 Share Posted September 20, 2022 1 hour ago, chef said: So.. that means that there is a possibility of having three "continue watching" items appear, if the item shows up in New releases, kids movies, and the library. That's the pits! Maybe I'll ask again.. @Luke sir, can "Continue watching" and "More like this..." lists ignore channel items? They shouldn't be ignored from more like this. Check your server (advanced) option about ignoring external content in suggestions. I'll have to check on continue watching. 1 Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 20, 2022 Share Posted September 20, 2022 Not sure what controls sort order in TV horizontal view but appears to be Title instead of Release Date. Release date Link to comment Share on other sites More sharing options...
chef 3744 Posted September 20, 2022 Share Posted September 20, 2022 12 minutes ago, Happy2Play said: Not sure what controls sort order in TV horizontal view but appears to be Title instead of Release Date. Release date Actually, I'm a bit concerned that it is actually DateCreated, and that by adding them to the channel a certain way, makes them appear on the home screen in that order. That first image is from the home screen? Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 20, 2022 Share Posted September 20, 2022 Just now, chef said: Actually, I'm a bit concerned that it is actually DateCreated, and that by adding them to the channel a certain way, makes them appear on the home screen in that order. That first image is from the home screen? Yes as that is TV Horizontal view instead of our Vertical view as @ONYX MEDIAshowed on previous page. But DateAdded is a different order also. Only vertical view give options to sort so can only guess it is coded for Horizontal view. Title 1 Link to comment Share on other sites More sharing options...
chef 3744 Posted September 20, 2022 Share Posted September 20, 2022 Just now, Happy2Play said: Yes as that is TV Horizontal view instead of our Vertical view as @ONYX MEDIAshowed on previous page. But DateAdded is a different order also. Only vertical view give options to sort so can only guess it is coded for Horizontal view. Title which client is that, when you refer to TV Horizontal view? WebApp? Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 20, 2022 Share Posted September 20, 2022 Just now, chef said: which client is that, when you refer to TV Horizontal view? WebApp? Web client go to Display change display mode to TV, then Home Screen and change TV mode Home Screen to Horizontal. My have to refresh or naviage pages to force display change. Link to comment Share on other sites More sharing options...
Junglejim 338 Posted September 20, 2022 Share Posted September 20, 2022 Nice work mate, working great here. One thing I have noticed is if I enter the movie details from the New releases I get a version drop down option (name of movie/undefined).. Maybe that has something to do with the conversation in the previous posts? But hey it works! Really looking forward to the Top Picks, Paypal is ready to go.. 1 1 Link to comment Share on other sites More sharing options...
chef 3744 Posted September 20, 2022 Share Posted September 20, 2022 (edited) 1 hour ago, Junglejim said: Nice work mate, working great here. One thing I have noticed is if I enter the movie details from the New releases I get a version drop down option (name of movie/undefined).. Maybe that has something to do with the conversation in the previous posts? But hey it works! Really looking forward to the Top Picks, Paypal is ready to go.. Yes I also see undefined. Does Prey have two media streams? ie. 1080p and 2160p version in your library? Edit: actually having multiple media sources isnt the issue. But, this does bring up two questions. What is causing undefined?... And why are media items with two media sources (ie. 1080p and 2160p) not showing both? Edited September 20, 2022 by chef Link to comment Share on other sites More sharing options...
chef 3744 Posted September 20, 2022 Share Posted September 20, 2022 (edited) There are somethings I don't quite get. There is the MediaStream, and there is the MediaSource. In channels the property is MediaSource (which I gather is exactly what it sounds like... The source of the media stream). There is an extension method used to convert MediaStreams to MediaSources. But, I can't quite figure out how to add multiple media streams (ie. 1080p and 2160p) to the MediaSources property... And I have tried. For example when you have a 1080p version of a movie in your library, and then you add a 2160p version, emby assigns each version an id and its own entry in the library.db. While iterating the library query result, and creating channel items each of those entries (versions) of the movie will appear in the query. When Prey 1080p appears during the iteration, we add it to the channel, and point it's MediaSource to the 1080p file. When Prey 2160p appears during the iteration, we add a new MediaSource entry to the existing channel item for Prey. That logic seems like it should work... Prey should then have two MediaSources, 1080p, and 2160p. It does not. What is also strange is that the channel item will create an "undefined" MediaSource. At first I thought that this could be a null source being added when creating the channel. Some sort of index out of range (zero index count) happening when adding sources to the channel. I don't think this is what is happening. I'm not sure what the undefined source is, or where it is coming from... Edited September 20, 2022 by chef Link to comment Share on other sites More sharing options...
Junglejim 338 Posted September 20, 2022 Share Posted September 20, 2022 10 hours ago, chef said: Yes I also see undefined. Does Prey have two media streams? ie. 1080p and 2160p version in your library? Edit: actually having multiple media sources isnt the issue. But, this does bring up two questions. What is causing undefined?... And why are media items with two media sources (ie. 1080p and 2160p) not showing both? Hi mate, no I only have one version of Prey (1080). Not sure why it shows 2 from New releases, if I go to details from the main movie lib or latest movies I don't get 2 versions. Like so.. Link to comment Share on other sites More sharing options...
chef 3744 Posted September 21, 2022 Share Posted September 21, 2022 Wierd... Now I'm even more confused. On the kids movie channel, which has pretty close to the exact same code as this channel. There is no "undefined" version. So... Why, I wonder, is that? Link to comment Share on other sites More sharing options...
Happy2Play 8145 Posted September 21, 2022 Share Posted September 21, 2022 True as the only difference really should be Parental rating vs Premiere date. 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