Jump to content

Pseudo TV for Emby


VicMoore

Recommended Posts

TZTZoro

Hey @VicMoore

You mean like this?
image.png.31dbd07b9cdb36b7538007d7cc6dd97c.png
it is because you use class page_button2
if you use page_button as your base style/class and then create additional classes for colors if you want is most likely to chance colors, and if you were wondering why page_button2 is blue is because it says background-color: blue;

Link to comment
Share on other sites

VicMoore

ah!!!  See I am teachable 🙂 

Thanks so much. I will make the changes today.  It's good to learn.  You have been so helpful with this project.

Vic

Link to comment
Share on other sites

  • 1 month later...
VicMoore
Posted (edited)

Good morning @TZTZoroAttached below is the latest code. I think you will find it greatly improved. I will post it for everyone later this week. Movies now start at the right time and play sequentially as they should. There are also many new features. 

I have a CSS problem.  When the folder icon is displayed on an image, the tags and genres do not display. For example, when getting movies (clicking the Get Movies button) everything is ok (because there are no folders). When I click the "Get TV Shows" button. The show images don't display the tag and genre lines at the bottom (because they are all folders). In the code (attached below) on line 1428 in pseudotvconfig.js I commented out "folder" so the tags and genres would display properly. This in turn caused the "favorite icon" to not display (the heart icon). 

@TZTZoroI need your skill as a master CSS engineer to sort this problem out. Of course, I understand that you may be busy and unable to help. If so, I understand. I have already call on you too often for help. In either case we remain friends.

Vic

 

 

 

PseudoTV.zip

Edited by VicMoore
Link to comment
Share on other sites

mickle026
On 20/03/2024 at 11:45, VicMoore said:

Good morning @TZTZoroAttached below is the latest code. I think you will find it greatly improved. I will post it for everyone later this week. Movies now start at the right time and play sequentially as they should. There are also many new features. 

I have a CSS problem.  When the folder icon is displayed on an image, the tags and genres do not display. For example, when getting movies (clicking the Get Movies button) everything is ok (because there are no folders). When I click the "Get TV Shows" button. The show images don't display the tag and genre lines at the bottom (because they are all folders). In the code (attached below) on line 1428 in pseudotvconfig.js I commented out "folder" so the tags and genres would display properly. This in turn caused the "favorite icon" to not display (the heart icon). 

@TZTZoroI need your skill as a master CSS engineer to sort this problem out. Of course, I understand that you may be busy and unable to help. If so, I understand. I have already call on you too often for help. In either case we remain friends.

Vic

 

 

 

PseudoTV.zip 1.74 MB · 0 downloads

The built DLL is in your zip, in the codes bin folder in this archive anyway! :) - good work
\PseudoTV\bin\Debug\netstandard2.0\PseudoTV.dll

Link to comment
Share on other sites

VicMoore
Posted (edited)

Hello @mickle026I have a completely new PseudoTV plugin. Could you please take a look at it and let me know if it works for you.   Now programs should play normally.  I want to know if the GUI is simple enough for everyone.  I will update the forum tomorrow or Saturday.

This plugin adds a PseudoTV Tuner.  To bring up the GUI you need to click on "Live TV" to bring up all of the TV Tuners, then click on the PseudoTV tuner.

 

 

Vic

 

Edited by VicMoore
Link to comment
Share on other sites

VicMoore
Posted (edited)

I fixed a bug in the "Search" code.  I forgot to turn the spinner off.  The corrected code is below.

vic

 

 

 

PseudoTV.dll

Edited by VicMoore
  • Thanks 1
Link to comment
Share on other sites

VicMoore

@GrimReaperI have a question. Is it proper to post code if you keep the code in post 1 updated?  Also give the new plugin code a try.  I fixed the problem with media starting at the beginning, rather than the current time. Now all media starts properly at the current time. I also fixed the problem with the EPG items not playing consecutively, one after the other. The GUI is greatly improved and borrows much from bulky. 

Vic

  • Like 1
Link to comment
Share on other sites

kjhedges

@VicMoore

 

Hi,  I added your latest plugin dll.  In the LiveTV section of your plugin, I can create the channel name ect and also added some tv series from the genre of Soap. It displays the 6 TV Series I added for the channel. Then I update the EPG.

This creates the channel I created, but, I see no EPG data. I can also not click on the channel and play, as no streams available. Edit:- Patience was needed by me. Sorry.  I hadnt saved the number of tv series to add.

I am using Version 4.8.3.0 on Linux

I also have iptv channels in Live TV. Where I am grabing EPG data from both Emby Guide Data and External XMLTV. Whether this interferes with the plugin I am unsure.

The 1 channel I created called Soap, I gave a channel number that doesnt conflict with any other channel. Below are 2 images of livetv plugin and livetv listing.

tv1.thumb.png.1bf45f80eccf620a69198a53dfac832a.png

emby2.thumb.png.5871f5d38b30fbf94d86b4c86172dead.png

 

With reference to your image creator. Not sure if it a windows/linux thing. But, When I click to create image. I get this screen.

tv3.thumb.png.cfcdf483ec198b6b12ac16955cbfec4c.png

When I click on get image, It does nothing.  I can adjust sliders ect, and click cancel. But get image does nothing for me.

When I click on "change" nothing happens.

When I click on edit image, I get the same as above, but with your default image not found icon. I can then edit this by crop rotate ect.

 

Edited by kjhedges
Link to comment
Share on other sites

GrimReaper
15 hours ago, VicMoore said:

@GrimReaperI have a question. Is it proper to post code if you keep the code in post 1 updated?

As long as you keep first post updated, doesn't make a difference, you might as well post it for those that follow the thread or just make a note "Original post updated".

Link to comment
Share on other sites

kjhedges

Adding to the above.

This plugin now works great to create TV Channels from your media. Great looking GUI.

 

I did have trouble with the smart search. Not sure if it was me not patient enough again, but I see no results with many different selections.

Link to comment
Share on other sites

VicMoore
Posted (edited)

@kjhedgesThis is just the kind of info I needed. The problem with the image editor must be because you are using linix.  As for the smart search, try selecting just "Not Played" and click search. This should bring up something. If no rules are selected, nothing will happen.  Also, note that the rules at the bottom of the page allow wildcards; namely *.

Did the content in the channel you added to the EPG play OK.?  I don't have a linix system to test on.

You have been a big help...

Vic

 

P.S.  I have only tested the code on Edge and Chrome.  I suspect the problem with the image editor is browser related.

Edited by VicMoore
Link to comment
Share on other sites

kjhedges

Hi Vic,

 

 Yes, the EPG did fill out as it should. It was just my impatience when I started posting.

With regards the smart search,  I see now that atleast 1 of the top filters needs to be selected, and as you say, the wildcards are at the bottom, which with the combination of both I can tehn select relevant items for the channel.

Link to comment
Share on other sites

VicMoore

@kjhedgesI think I need to explain the rules better and how they are used to compose selected media into a channel.  I will get that done tomorrow.

Did you try the Chrome or Edge browsers with the image editor?  

Vic

Link to comment
Share on other sites

kjhedges
9 hours ago, VicMoore said:

Did you try the Chrome or Edge browsers with the image editor? 

I will try varied browsers later today

Have tried Firefox, Opera and Edge. All for me do not allow me to select get image.

 

Edited by kjhedges
Link to comment
Share on other sites

VicMoore

@kjhedgesI think the problem is that the browser is not providing a "secure context". Are you using SSL.  

Vic

Link to comment
Share on other sites

VicMoore
Posted (edited)

@kjhedges The latest plugin is attached.  I tried to remedy all of your concerns.  Your suggestions made the GUI much better. Let me know if the GUI is now easier to understand.

Note that I added two buttons to simplify channel rule making. You can now just click a button for standard selections. This will simplify channel creation for new people. Please share your comments and observations.

Vic

 

 

 

PseudoTV.dll

Edited by VicMoore
Link to comment
Share on other sites

VicMoore
Posted (edited)

@kjhedgesYou have to be on the same LAN from which the browser originated. This is required to access your local disk.

Vic

Edited by VicMoore
Link to comment
Share on other sites

kjhedges

@VicMooreI downloaded your latest plugin version.

It is alot better with new layout. The instructions you placed there also are very helpful.

I created another channel easy enough and the epg update was super fast.

I did notice though, that when I play the channel in the web browser. And if I have, (as I normally do) a web tab open for Emby Server homescreen and also a web tab open for Emby Server dashboard, The channel will open and play on both tabs.

 

Still no go with the image editor though.  I am on same LAN network for both server and browsing computer. I also tried the web browser on the linux computer with the Emby Server. No action when clicking on Get Image.

Link to comment
Share on other sites

VicMoore

@kjhedgesThe issue with playing on both tabs falls outside the EPG. It must be an Emby web client problem.

On another issue, I wonder if the browser console displays any error messages when you try to load an image into the image editor? This problem is very interesting, and I would like to get to the bottom of it. 

I am glad that the new GUI is easier to use. Let me know if you have any more ideas or detect problem areas that need to be fixed.

The entire state of PseudoTV is encapsulated in one object, which is stringified and sent to the server and saved in the TV tuner. This simplifies having more than one EPG. For example, you could have one for every day of the week. I plan to try this soon.

I greatly appreciate your help. You have certainly made PseudoTV much better.

Vic

Link to comment
Share on other sites

kjhedges

I will take a look to see if any console errors a little later.   
 

A question though.  Is it possible to choose if a current tv episode that I view through pseudo does or does not add to legacy Next Up    I would prefer for the items not to add to legacy Next Up

Link to comment
Share on other sites

VicMoore

@kjhedges That's a great idea, but it is part of the Emby code and I cannot change it. I will think about a work around.

Vic

  • Like 1
Link to comment
Share on other sites

kjhedges

@VicMooreBelow is the console error when clicking Get Image.

Uncaught (in promise) TypeError: window.showOpenFilePicker is not a function
    getFile http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfig2js&v=4.8.3.0:570
    onclick http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfig2js&v=4.8.3.0:912
    logoBuilder http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfig2js&v=4.8.3.0:766
    <anonymous> http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:2833
    addMedia_2 http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:2826
    addMedia http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:2234
    getActiveChannels http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:3205
    init http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:3285
    fillTunerHostInfo http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:3332
    reload http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:3314
    promise callback*reload http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:3306
    <anonymous> http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.3.0:3586
    onNewViewDisplayed http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.3.0:1
    onViewChange http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.3.0:1
    promise callback*onViewChange http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.3.0:1
    loadView http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.3.0:1
    promise callback*ViewManager.prototype.loadView/< http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.3.0:1
    promise callback*ViewManager.prototype.loadView http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.3.0:1
    loadContentUrl http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    loadContentUrl http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    promise callback*loadContentUrl http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    initRoute http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    promise callback*initRoute http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    handleRoute http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    promise callback*handleRoute/</< http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    handleRoute http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    promise callback*handleRoute http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    dispatch http://192.168.4.34:8096/web/modules/pagejs/page.js?v=4.8.3.0:1
    show http://192.168.4.34:8096/web/modules/pagejs/page.js?v=4.8.3.0:1
    show http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    showItem http://192.168.4.34:8096/web/modules/approuter.js?v=4.8.3.0:1
    showItem http://192.168.4.34:8096/web/modules/commandprocessor.js?v=4.8.3.0:1
    executeCommandInternal http://192.168.4.34:8096/web/modules/commandprocessor.js?v=4.8.3.0:1
    executeCommandInternal http://192.168.4.34:8096/web/modules/commandprocessor.js?v=4.8.3.0:1
    executeCommand http://192.168.4.34:8096/web/modules/commandprocessor.js?v=4.8.3.0:1
    executeAction http://192.168.4.34:8096/web/modules/shortcuts.js?v=4.8.3.0:1
    onClick http://192.168.4.34:8096/web/modules/shortcuts.js?v=4.8.3.0:1
    onClick http://192.168.4.34:8096/web/modules/emby-elements/emby-itemscontainer/emby-itemscontainer.js?v=4.8.3.0:1
configurationpage:570:45

Link to comment
Share on other sites

VicMoore

@kjhedgesThat's interesting.  I will get back with you in a little while.

Vic

Link to comment
Share on other sites

kjhedges

@VicMooreWas checking the server log and came across this.

2024-03-27 15:58:20.252 Info PseudoTVTuner: ======PseudoTv====== Playback Progress Event, sessionId = 4232731a250be859ff9544769da63ebf, userId = 78911dc6cd164d5cbdb06ddf63d5e174

2024-03-27 15:58:20.252 Info PseudoTVTuner: ======PseudoTv====== Ticks = 29729760000

2024-03-27 15:58:20.252 Info PseudoTVTuner: ======PseudoTv====== sessionId is not in dictionary

Is the sessionid not in dictionary an issue?

 

Link to comment
Share on other sites

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