Jump to content

Pseudo TV for Emby


Recommended Posts

Posted

@VicMoorethank you for taking the time to comment. I am going to give it a try soon but just wanted to make sure i unserstood the basics.

  • Thanks 1
Posted

I have fixed the radio buttons that select "New EPG" or "Append to EPG".  I also fixed the "refresh EPG" in "Scheduled Tasks". I will test these and other fixes today and tomorrow and will then post the DLL and source code.

Vic

connorscott1
Posted

Hello Vic,

Seems I now have an appropriate gist of your plugin's functionality - very cool idea! I had skimmed some early pages and it wasn't until the last that I realized this wasn't an iptv-related plugin😅 I'll have to spend some time configuring my still-vanilla server to leverage all of what's out there - but this is definitely on the list! Other than engaging you (one of) the dev, I could also lend support of my own in case you could make use of it. For example, would be happy to draft up some copy for a proper introduction to the plugin and features, so it's immediately clear what it enables 🙂 i'm totally outing myself here as having not used Windows in over a decade, but - this being a .dll, I imagine you've not tested (even with WINE-like equivalents) on Linux or Mac OS? I hop between both, but currently host Emby in a convoluted-of-sorts Debian environment (well, as a Docker container under CasaOS, and CasaOS itself running as an LXC container under my Proxmox VE homelab server...). If this is uncharted waters, I could possibly take a crack at adapting the codebase if compatibility is needed - or perhaps Emby just gracefully handles .dlls in a host-agnostic way?

Keep up the great work, Vic!

Posted (edited)

The latest code is attached below.  The problems with "Scheduled Tasks", the radio buttons for selecting new EPG or append to current EPG, and the code for building the EPG have been fixed. In fact, the code that builds the EPG has been completely replaced. 

Vic

 

Edited by VicMoore
Posted

Hello @connorscott1Thanks for the kind words.  This project is open source, and we welcome all contributions. The current code was written by myself and @TZTZoro. The code was written for Chrome and Edge browsers. We have tried to keep the code as compatible with other browsers as possible. We have limited time, so extensive testing is not possible.

Welcome @connorscott1

Vic

Posted

@VicMooreAnything I have to do make the refresh EPG button appear in scheduled tasks? I can't find any such button even though I installed the latest version you posted. 

Posted

 

@fillidillsee the image below.  You should see this option when any "TV Source" is installed.

Vic

 

image.png.c824fe3e7cfe01405212810832ee132d.png

Posted

@VicMooreMaybe I am misunderstanding but when clicking that, the content my channels are playing stays the same. The channels are not re-built so to speak. I've tested multiple times.

Posted (edited)

@fillidillYes, that is correct. The EPG data is truncated to the current date and time.  No new EPG data is loaded until the current data is consumed.  This is why when the EPG is created, you have a choice to create an entirely new EPG or to append the new EPG data to the end of the current EPG data.  This is my understanding, and I could be wrong.

Vic

Edited by VicMoore
Posted

@fillidillI sent a note to the Emby plugin forum, asking if my assumptions about "Refresh Guide" are correct.

Vic

  • Thanks 1
Posted (edited)

@connorscott1
you can install any plugin you want, the emby containers contain all the runtime requirements and such to run emby or other ways that emby is packaged, i do not have windows either
i compile the .dll directly to my server and reboot emby and it works. you just need to setup your dev enviroment correctly if you want to make any changes, else the .dll is just plug and play

Edited by TZTZoro
Posted

Thanks @TZTZorofor answering the question.

Vic

VicMoore
Posted

I just noticed that the plugin is playing the first few days of the tv guide over and over again.  This is caused by a simple oversight on my part. I will try to fix it tomorrow.  After the big hurricane there are a lot of limbs to be cleaned up in the yard. This may hamper my computer time.  Even so, I will get this bug fixed ASAP.  This fix will also fix the scheduled task for TV Guide refresh.

 

For those following the thread between @mickle026and myself, the plugin code now includes a Web Route between the JS and C# code.

Vic

  • Thanks 1
VicMoore
Posted

I have finished rewriting the C# that builds the TV Guide.  It now properly moves across the channel data created by the GUI.  I will test this code today and tomorrow and then it will be posted.  The C# code is much easier to understand.

Vic

VicMoore
Posted (edited)

Attached is the latest code.  I am still testing it.  

Vic

 

Edited by VicMoore
VicMoore
Posted

@mickle026I am greatly enjoying studying the plugin you sent me.  I will obey the conditions you specified.  The code is so cool.

Thanks, Vic

 

mickle026
Posted
14 hours ago, VicMoore said:

@mickle026I am greatly enjoying studying the plugin you sent me.  I will obey the conditions you specified.  The code is so cool.

Thanks, Vic

 

Thanks @VicMoore

I hope the code and the code I shared in the Developer Api section helps you to use the WebRoutes and the EPG into classes in the C# to improve your already great plugin from the server side and scheduled task.
I know there is quite a lot to take in, but I believe that you'll get there much quicker than I did. :)

VicMoore
Posted

@mickle026Yes I now understand WebRouts. I greatly appreciate the tutoring. My C# skills are also improving. 

Question, I am curious what country in western Europe do you live in? 

Vic

mickle026
Posted
7 minutes ago, VicMoore said:

@mickle026Yes I now understand WebRouts. I greatly appreciate the tutoring. My C# skills are also improving. 

Question, I am curious what country in western Europe do you live in? 

Vic

England, UK

VicMoore
Posted (edited)

@mickle026A question that has been on my mind all day.  If I submit a html form, will it show up at the POST endpoint we defined in the C# code?

Vic

Edited by VicMoore
mickle026
Posted (edited)
45 minutes ago, VicMoore said:

@mickle026A question that has been on my mind all day.  If I submit a html form, will it show up at the POST endpoint we defined in the C# code?

Vic

 

I believe a form submit default is GET, but you can change that to POST, the action url would be the same as your endpoint webroute

<form class="product-form" action="/admin/add-product" method="POST">

I dont think it would be json encoded though... so might have to read it as a stream and decode it yourself at the server side.  I never tried this, so if you do let me know.  You could dump it to a text file, like I showed you with the EPG json server side saving, and see what it is.

Does this help?

Edited by mickle026
VicMoore
Posted

@mickle026Yes that's very helpful.  I am going to give it a try this weekend;

Thanks, Vic

VicMoore
Posted

Attached below is the latest code.  The code worked perfectly over the 24-hour test.  I have only one thing to add. In the C# code I will check to confirm that the scheduled task for refresh TV guide is set properly. If it's not set, then I will set it.

The PseudoTV code is getting close to being finished and debugged.  If anyone has any problems, please report them ASAP so I can fix them.

Vic

PseudoTV.zip PseudoTV.dll

fillidill
Posted

@VicMooreHello Vic! Great work. I have found another thing you maybe want to look at :)

I've added a channel that is populated with videos from a library of type "Home videos & photos" where I have automatically downloaded game trailers but it seems to fail to generate a channel correctly. The Live TV source is created but with error (see attached log) and when clicking on the channel to play it gives me "Object reference not set to an instance of an object.". Is it possible to support this library type? 

And one more question but that is maybe out of your scope. It seems videos that are played don't have the same default subtitle selection as when playing them normally in Emby. Some of my media have DVDSUB as well as srt and for some reason DVDSUB is chosen instead of the usual srt. 

emby.log

VicMoore
Posted

Good morning @fillidillThe log shows that your first channel has no content. That caused the error. Could you please send me a copy of your browser console when you finish building the EPG?  That will tell me what went wrong.

It would also help to know how you were building the channel. That way I could duplicate the problem.

I don't have an answer for your DVDSUB question.  PseudoTV does not play the content added to the EPG.  Playing content is in the EMBY domain.  I will check to make sure I am not doing anything stupid that might change the choices EMBY makes.

Vic

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