Jump to content

Pseudo TV for Emby


Recommended Posts

roofuskit
Posted
2 hours ago, VicMoore said:

@roofuskitThe problem is fixed.  I had accidently hit a key on the keyboard and inserted a ";" into the code. 

The new code is attached below.  Thanks again for bringing this problem to my attention.

Vic

PseudoTV.dll 410 kB · 1 download

That fixed it for me as well. Thank you!

  • Agree 1
VicMoore
Posted

I just rewrote the code that builds the EPG from the channel definitions given in the GUI.  I simplified the code and made it easier to understand.

I currently create EPG data for three weeks. The tv platform loads only 7 days of this data.  I will soon add code to reload the EPG every 7 days to consume all of the data. 

Vic

  • 3 weeks later...
VicMoore
Posted

I forgot to mention that last week I added the "Emby Schedule Task" functionality to the CS code in the plugin. You can now schedule when you want the TV Guide refreshed.

Vic

  • Thanks 1
Posted (edited)

I made a dumb mistake. While testing a few new ideas I commented out some code for testing.  This caused the state not to be saved.  The problem is corrected in the code below.

Vic

 

ALSO:  I fixed another problem that prevents the plugin from displaying the first screen.

 

 

PseudoTV.dll PseudoTV.zip

Edited by VicMoore
  • Thanks 2
Posted

I noticed a bug that can cause the plugin to hang. It has to do with the CS code that refreshes the TV Guide.  If you are having this problem, use the plugin dll below. I will have the bug fixed as soon as I can get to it. Let me know if you are experiencing this problem.

Vic

PseudoTV.dll

Posted

I am rewriting the "Scheduled Task" and the "Build EPG" code for PseudoTv. I just want to make them better.

Vic

Posted

@VicMoore
As soon as I try to add a query from a library with type "Home videos & photos" I get the following when generating channels using the latest version. Is this type not supported?

 

2024-09-14 18:30:17.007 Error LiveTvManager: Error getting programs for channel Comedy TV Channel
	*** Error Report ***
	Version: 4.8.8.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 4.4.302+ (root@build5) (gcc version 12.2.0 (GCC) ) #69057 SMP Fri Jan 12 17:02:28 CST 2024
	Framework: .NET 6.0.25
	OS/Process: x64/x64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /config
	Application path: /system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at PseudoTV.PseudoTVTuner.CreateChannelSchedule(TunerHostInfo tuner, String tunerChannelId)
	   at PseudoTV.PseudoTVTuner.EnsureChannelSchedule(TunerHostInfo tuner, String tunerChannelId)
	   at PseudoTV.PseudoTVTuner.GetProgramsInternal(TunerHostInfo tuner, String tunerChannelId, DateTimeOffset startDateUtc, DateTimeOffset endDateUtc, CancellationToken cancellationToken)
	   at MediaBrowser.Controller.LiveTv.BaseTunerHost.GetProgramsAsync(TunerHostInfo tuner, ChannelInfo tunerChannel, DateTimeOffset startDateUtc, DateTimeOffset endDateUtc, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.GetProgramsAsync(ChannelInfo channel, List`1 listingsProviders, DateTimeOffset startDateUtc, DateTimeOffset endDateUtc, CancellationToken cancellationToken)
	   at Emby.LiveTV.LiveTvManager.RefreshEmbyChannelsInternal(IProgress`1 progress, CancellationToken cancellationToken)
	Source: PseudoTV
	TargetSite: PseudoTV.ChannelSchedule CreateChannelSchedule(MediaBrowser.Model.LiveTv.TunerHostInfo, System.String)
	
2024-09-14 18:30:17.008 Info TaskManager: Refresh Guide Completed after 0 minute(s) and 0 seconds
Posted

Hello @fillidill

I will check this error report out ASAP.  I will report back later today.

Vic

Posted

@fillidillI have duplicated the problem. It's a bug in my code.  I am working on fixing it.  Thanks so much for reporting this problem.

Vic

  • Thanks 1
Posted

@fillidillplease try the plugin below. It should fix the problem.

The bug was in the plugin code that creates the EPG contents from the channel definitions. It's a very small amount of code because the Emby Server does all of the work.  The bug came about because I was trying to be cleaver with the code and shot myself in the foot.  I will rewrite the code soon. I will make it simple and easy to check.

Thanks @fillidillfor reporting this problem. 

Vic

 

PseudoTV.dll

Posted

Ah! There is a second problem. I am working on it. Sorry for not finding all of the problems. I am going to rewrite the entire subroutine. But, in the meantime I will look for a quick fix.

Thanks @fillidillagain for reporting this problem.

Vic

Posted

@fillidillCould you please send me a copy of your Browser console?  

Vic

Posted

@fillidillThanks for the data - I am working on the problem

Vic

  • Like 1
Posted

@fillidilltry this plugin. It's not finished but should work OK.  The missing part is replicating the content to fix 2 weeks, if necessary.

 I rewrote a lot of code and made it much easier to expand and add new options.  I appreciate that you helped me so much.

Vic

PseudoTV.dll

Posted

@VicMooreThat solved it and I can't believe how quick it is to generate the channel 😃 Great work!

Posted

@fillidillGreat - I still have some work to do.  It will take me a couple of days.  You made all of this possible by reporting the bug.  

Vic

  • Like 1
Posted

Hello again!

Yesterday I created a couple of channels in my test emby setup and it all worked. Today when I look at the channels they are all empty like they've run out of content to show. Is the content not looping if it comes to the end, so to speak?

I can make them show stuff again if I in your interface click on "Save channels.." button but running the scheduled task for either "Refresh Internet Channels" or "Refresh Guide" does nothing. Is there any way to schedule a re-build of the channels?

Or is this happening because you are still working on the code as you mentioned? 

Posted (edited)

Hello @fillidillYes the EPG ran out of content. I am adding right now the code to fill up the 14 days of the EPG,. I disabled the scheduled refresh button for testing.

Vic

Edited by VicMoore
Posted

@VicMooreTake your time and no stress 👍 I am just thankful for your development of this amazing plugin.

Posted

I am thinkkng about ttuing the Pseudo plug in & if understand it correctly, the plug in will allow me to add my content into the live guide. I'm thinking I can make a channel that's only everybody loves Raymond, playing on order or.random, I can make a sci-fi channel taking all my tv shows or movies playing in a specific order or even make a comedy channel where it will take all my shows tagged as commedy & play in a specific order. Did I describe the plug in correctly? Thanks Dom

 

Posted (edited)

@fillidillThe new plugin below. It should fill out the entire EPG, regardless of the length of the data that you define. Let me know if it works as you expect.

Vic

PseudoTV.dll

Edited by VicMoore
Posted (edited)

Hello @all4dom it's nice to hear from you.  You are right about the plugin.  PseudoTV is an open source project where users can request changes and add changes of their own.  It's a new project so there will be bugs.  In most cases the bugs are fixed in the same day they are reported.  The latest plugin code is attached below. Please read the first post to learn how to install and use the plugin.  I am always available to help.

Vic

 

Edited by VicMoore
  • Like 1

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