Jump to content

Pseudo TV for Emby


Recommended Posts

feerlessleadr
Posted
29 minutes ago, VicMoore said:

@feerlessleadrin a couple of months when everything is better debugged, lets rejoin this topic and try to come up with something new and interesting.

Vic

Works for me!

VicMoore
Posted

I am back. I will continue working tomorrow.

Vic

  • Like 2
  • Thanks 1
VicMoore
Posted

Attached is the latest code. I corrected several minor bugs. I also added an Easter Egg.  If you hold down the control key and click the Upload EPG button a different plugin will appear. It's code that I have been playing with that allows me to explore the Emby library. I can also edit the objects in the library. At the moment I have "saving" disabled. 

I am continuing to debug and to stabilize the core code. If anyone has a problem that needs fixing, please let me know.

Vic

PseudoTV.dll PseudoTV.zip

Neminem
Posted

Ha ha its not an easter egg if you tell about it 🤣😂

VicMoore
Posted

@jaycedkyou are correct. But on this channel, everyone is special 🙂

Vic

VicMoore
Posted (edited)

For testing purposes, a new EPG was built each time you updated the EPG.  A side effect was that a new EPG with the same data was created each time Emby loaded.  This was good for testing but not for viewing.  I have removed this restriction. The default now appends the new program data to the end of the current EPG data.  You can also create a completely new EPG if you like.

For this change to take place you must delete the PseudoTV Tuner.  Just go to the Emby "Live TV" menu and delete the tuner.

I also added a default channel name and a default channel number (both just random numbers).  I did this because a recuring common problem was building an EPG without a channel name or number. This caused the channel not to be populated.  

Vic

 

image.png.233a300ae639968d15a98201af3bcaa4.png

 

I removed the files because I found a bug................

 

Edited by VicMoore
VicMoore
Posted

Well, I fixed one problem and broke another.  The new code above needs a simple bug fixed.  The problem is that the "Remove " buttons are not working.  When I added the radio buttons to select the EPG "new" or "append", I did not account for the new table row.  I will fix it after church.

Vic

VicMoore
Posted

Attached is the fixed code.  I built a large EPG this morning and everything worked OK. Let me know if you find any problems.

Vic

PseudoTV.dll PseudoTV.zip

VicMoore
Posted (edited)

I fixed the overflow on the x-axis at the bottom of the screen, added text to the title to give which channel is showing and how many channels are defined, and fixed several other minor problems.  The new code is below.

To install this plugin, first delete the pseudoTV tuner (on the Emby "TV Source Setup" page). Then copy the plugin to the plugin directory and restart the Emby Server.

Vic

 

image.png.561e27855afe910b628c917771cb8576.png

 

PseudoTV.dll PseudoTV.zip

Edited by VicMoore
  • Thanks 1
fillidill
Posted

@VicMooreI've tested this plugin a bit and I really like what I see. Good work!

However, I saw that you mentioned that when updating you should remove the tuner which results in all channels being removed as well. Will this happen for each update? If so, is it possible to either make this not happen or to export the channels configuration before and then import? I am asking as it takes a lot of time setting up multiple channels. 

VicMoore
Posted (edited)

No, it is only required for updating when I make changes to the Core HTML.  The reason for this is that everything is saved in the tuner.  Luke designed the tuner with this in mind.  When I have some free time, I will address this problem and create a work around.  Let me know if I can help you, and please pass on the pros and cons of your experience so we can make the code better.

Vic

Edited by VicMoore
Posted
4 hours ago, VicMoore said:

No, it is only required for updating when I make changes to the Core HTML.  The reason for this is that everything is saved in the tuner.  Luke designed the tuner with this in mind.  When I have some free time, I will address this problem and create a work around.  Let me know if I can help you, and please pass on the pros and cons of your experience so we can make the code better.

Vic

Hey @VicMooregreat work for such a great plugin, all working great my end. one thing i would like to see come to the plugin is the option to have advertisement. ie like your own clip to show what type of channel it is etc i have tried others before and they broke and crashed on android TV lol

VicMoore
Posted

@OnyxUKThanks for the kind words. Please explain your idea more clearly. It sounds interesting. Bumpers are supported now. So, I think you are asking for something different.

Vic

Posted
24 minutes ago, VicMoore said:

@OnyxUKThanks for the kind words. Please explain your idea more clearly. It sounds interesting. Bumpers are supported now. So, I think you are asking for something different.

Vic

are they :) i havent seen this in the plugin if honest. how do i get the bumpers to work and the other idea would have been to have adverts play random after or before shows/movies one after the other and have a total amount that you can set to play at once. i would like to show trailers to new things i would be putting on so my family can see what will be on the server in a week or so 

Posted (edited)
23 hours ago, OnyxUK said:

are they :) i havent seen this in the plugin if honest. how do i get the bumpers to work and the other idea would have been to have adverts play random after or before shows/movies one after the other and have a total amount that you can set to play at once. i would like to show trailers to new things i would be putting on so my family can see what will be on the server in a week or so 

just found this lol. and works great :)

Edited by OnyxUK
  • Thanks 1
VicMoore
Posted (edited)

I just noticed a problem.  First, the EPG is being built properly. However, each morning the EPG is being reset to the beginning, rather than pruning the previously aired shows from the EPG data. The problem is in the TV platform. It should be easy to fix.

Vic

---> well, the problem seems to be me. I had a scheduled task running that should have been removed weeks ago. I disabled it and everything is working OK.  I still need to complete the code that integrates the scheduled task feature of Emby with my code.  I will finish it when the PseudoTV code is thoroughly debugged.

Vic

 

Edited by VicMoore
Lingardpi80
Posted

Where do I add the zip file? I added the DLL file and it seems to be working. Certain searches like marvel and dc studio searches won’t find anything even tho it’s labeled correctly in my library. Also when using in Kodi the streams seem to play from the beginning only

roormonger
Posted
4 hours ago, Lingardpi80 said:

Where do I add the zip file? I added the DLL file and it seems to be working. Certain searches like marvel and dc studio searches won’t find anything even tho it’s labeled correctly in my library. Also when using in Kodi the streams seem to play from the beginning only

You don't need the zip.

Also, can confirm that a formula filter for studio does not work. I also tried making a Marvel movies channel. Nothing works when trying to filter studio. My entire library gets returned no matter what I put in the studio field."Marvel", "Marvel Enterprises", or "Marvel Studios".

VicMoore
Posted (edited)

@Lingardpi80 the zip file is the source code.  All you need is the dll.

Could you explain "when using Kodi".  

Vic

Edited by VicMoore
VicMoore
Posted

@roormongerThanks for pointing out this problem.  The queries are actually performed by the Emby API.  All I do is format the request.  I will check this out tomorrow. I must be formatting something wrong.

Vic

roofuskit
Posted

Thank you for your work on this! I missed PseudoTV. Is it possible to add a content rating filter for the channels? <MA or <R for example?

VicMoore
Posted

@roofuskitCould you please describe how you would like this filter to work? What would you like it to do?

Vic

mickle026
Posted
2 hours ago, VicMoore said:

@roofuskitCould you please describe how you would like this filter to work? What would you like it to do?

Vic

I have not checked in on the plugin progress for a while, so not sure if you already have this.

 

But my reading of his question is add a rating per tv channel, but to do that as each item has its own rating, you would have to filter the search results for items to add by the anything up the maximum rating allowed, or only that rating if the user set a tv cahnnel rating on creation of that channel.

You can set the TV Channels Parental Rating via meatdata so its surely possible via the tuner somehow.

for the United Kingdom using the BBFC standard PG (Parental Guidance)

less than or equal to parental Guidance   <=PG

or Only items that are  parental guidance =PG

I have not yet played around with TV Channels, but a quick look at your code and you seem to be adding the channels with ChannelInfo to the tunerHost, the option to add a parental rating  is not here for that.

I am not sure how you would add this dynamically to your channelInfo list, but below (and im not confident that this is correct), I altered this snippent to show how to pull it from the repository and add it back with a rating.  Like I said this is not what you want for this, but its to give an insight into what I think is being asked.

for (int i = 0; i < names.Length; i++)
            {
                var test = new ChannelInfo
                {
                    Id = this.CreateEmbyChannelId(tuner, i.ToString()),
                    Name = names[i],
                    Number = nbrs[i].ToString(),
                    ListingsChannelName = names[i],
                    ListingsChannelNumber = nbrs[i].ToString(),
                    TunerHostId = tuner.Id,
                    ChannelType = ChannelType.TV,
                };

                // this wont work because the channel is not actually added yet to the repository, its just prepared to be added to your list
  				// I set the channelInfo to a variable so I can use it to get the ID, but in actuallity you cannot because its not there yet!

                var channelRating = libraryManager.GetItemById(test.TunerChannelId); // Get the channel fro the database
                channelRating.OfficialRating = "GB-PG"; // set the Rating
                channelRating.UpdateToRepository(ItemUpdateType.None); // update the channel back to the database

                list.Add(test);
            };

 

roofuskit
Posted
3 hours ago, VicMoore said:

@roofuskitCould you please describe how you would like this filter to work? What would you like it to do?

Vic

Actually I was able to achieve this with tags using the Bulky metadata editor. But what would really help is the ability to exclude things like tags or genres when creating a channel instead of just including.

roofuskit
Posted

One problem i am having is that all the Channel Images and Parental ratings get scrambled whenever a channel is added. Is anyone else having that issue?

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