Jump to content

Pseudo TV for Emby


VicMoore

Recommended Posts

VicMoore

hello @TZTZoro, are you using the latest code?  Does this always happen. You might try refreshing the page. What you are seeing is a "race" problem.  The main code in the JS file is not getting executed. Try the latest code and let me know what happens.

Vic

Link to comment
Share on other sites

TZTZoro

I do not know what you call the latest code but the log says PseudoTV, Version=1.0.1.870 and i downloaded it today from your first post.

I tried refreshing around 10-20 times and the best i got was the red button behind the header, and after clicking start i always got the white screen

Link to comment
Share on other sites

kjhedges

I too have the same issue as described by TZTZoro

Also on Emby Latest Beta and PseudoTV latest version. 

Have been quietly updating the PseudoTV Plugin when you have released updates, but the same issue has been there a while.

Link to comment
Share on other sites

VicMoore

@TZTZoroand @kjhedgesIn a few minutes I will add a new plugin that should help isolate the problem. I will post it here, rather than the first page.

Vic

 

  • Like 2
Link to comment
Share on other sites

kjhedges

Im afraid also with 1.0.1.889 Still the same issue for me

 

Thats in both Firefox and Chrome Browsers

Edited by kjhedges
Link to comment
Share on other sites

TZTZoro

@VicMoore
I just added it, it shows the same behavior
I removed the old one, restarted the server, added the new one, restarted the server

should i look into the debug logs or what would you prefer?

Link to comment
Share on other sites

VicMoore

Can you send me a screen shot? And look in the browser console for errors.

I have only tested the code on Edge and Chrome.

Vic

Link to comment
Share on other sites

TZTZoro

it shows on top but it is not clickable after editing the html F12
it seems like you added more <br> but addi ng a style top, left and position absolute that is how i move it in frame
 

image.png

Link to comment
Share on other sites

kjhedges

This is Firefox console error

Uncaught (in promise) TypeError: nameArray is undefined

    activeChannels http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:2965
    getActiveChannels http://192.168.4.34:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:2963
 
 
Edit-  also found this error, unsure if relevant
 

Uncaught TypeError: slideeElement is null
    init http://192.168.4.34:8096/web/modules/scroller/smoothscroller.js?v=4.8.0.66:1
    value http://192.168.4.34:8096/web/modules/emby-elements/emby-scroller/emby-scroller.js?v=4.8.0.66:1
    removeAndDestroy http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    loadView http://192.168.4.34:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
smoothscroller.js:1:11126

 
 
Also a screenshot of when you click to add TV Source

Untitled.png

Edited by kjhedges
Link to comment
Share on other sites

TZTZoro

I am using firefox

 

Uncaught (in promise) TypeError: nameArray is undefined
    activeChannels http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:2965
    getActiveChannels http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:2963
    init http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3033
    fillTunerHostInfo http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3074
    reload http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3062
    promise callback*reload http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3058
    <anonymous> http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3255
    onNewViewDisplayed http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    onViewChange http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    promise callback*onViewChange http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    promise callback*ViewManager.prototype.loadView/< http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    promise callback*ViewManager.prototype.loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    initRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*initRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*handleRoute/</< http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*AppRouter.prototype.handleSignedInResult/< http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleConnectionResult http://host1:8096/web/modules/common/baseapprouter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    dispatch http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    replace http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    start http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    page http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    start http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*appRouter.start http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    onAppReady http://host1:8096/web/app.js?v=4.8.0.66:1
    promise callback*onAppReady http://host1:8096/web/app.js?v=4.8.0.66:1
    promise callback*start http://host1:8096/web/app.js?v=4.8.0.66:1
    <anonymous> http://host1:8096/web/app.js?v=4.8.0.66:1
    <anonymous> http://host1:8096/web/app.js?v=4.8.0.66:1
configurationpage:2965:25
    getActiveChannels http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3000
    InterpretGeneratorResume self-hosted:1465
    AsyncFunctionNext self-hosted:852
    (Async: async)
    init http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3033
    InterpretGeneratorResume self-hosted:1465
    AsyncFunctionNext self-hosted:852
    (Async: async)
    fillTunerHostInfo http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3074
    reload http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3062
    (Async: promise callback)
    reload http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3058
    <anonymous> http://host1:8096/web/configurationpage?name=pseudotvconfigjs&v=4.8.0.66:3255
    onNewViewDisplayed http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    onViewChange http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    (Async: promise callback)
    onViewChange http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    (Async: promise callback)
    loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    (Async: promise callback)
    loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    (Async: promise callback)
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    initRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    (Async: promise callback)
    initRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    (Async: promise callback)
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    (Async: promise callback)
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    (Async: promise callback)
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleConnectionResult http://host1:8096/web/modules/common/baseapprouter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    dispatch http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    replace http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    start http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    page http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    start http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    (Async: promise callback)
    start http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    onAppReady http://host1:8096/web/app.js?v=4.8.0.66:1
    (Async: promise callback)
    onAppReady http://host1:8096/web/app.js?v=4.8.0.66:1
    (Async: promise callback)
    start http://host1:8096/web/app.js?v=4.8.0.66:1
    <anonymous> http://host1:8096/web/app.js?v=4.8.0.66:1
    <anonymous> http://host1:8096/web/app.js?v=4.8.0.66:1


 

Uncaught TypeError: slideeElement is null
    init http://host1:8096/web/modules/scroller/smoothscroller.js?v=4.8.0.66:1
    value http://host1:8096/web/modules/emby-elements/emby-scroller/emby-scroller.js?v=4.8.0.66:1
    loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    promise callback*ViewManager.prototype.loadView http://host1:8096/web/modules/viewmanager/viewmanager.js?v=4.8.0.66:1
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*loadContentUrl http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    initRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*initRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*handleRoute/</< http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*AppRouter.prototype.handleSignedInResult/< http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleSignedInResult http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    handleConnectionResult http://host1:8096/web/modules/common/baseapprouter.js?v=4.8.0.66:1
    handleRoute http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    dispatch http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    replace http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    start http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    page http://host1:8096/web/modules/pagejs/page.js?v=4.8.0.66:1
    start http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    promise callback*appRouter.start http://host1:8096/web/modules/approuter.js?v=4.8.0.66:1
    onAppReady http://host1:8096/web/app.js?v=4.8.0.66:1
    promise callback*onAppReady http://host1:8096/web/app.js?v=4.8.0.66:1
    promise callback*start http://host1:8096/web/app.js?v=4.8.0.66:1
    <anonymous> http://host1:8096/web/app.js?v=4.8.0.66:1
    <anonymous> http://host1:8096/web/app.js?v=4.8.0.66:1
smoothscroller.js:1:11126

edit:
i also tried brave and edge and both give similar looking result, didnt check the console

Edited by TZTZoro
Link to comment
Share on other sites

VicMoore

@TZTZoroThat's exactly what I was trying to do. I added three <br> to bring the "Click to start"  down so you can click on it.

Vic

Link to comment
Share on other sites

TZTZoro

the same again
image.png.d413d165e51f6a9e5dcba90b21862a2c.png

Could you maybe add so it becomes easier with testing

top:4em; position: relative;

 

Link to comment
Share on other sites

VicMoore

@TZTZoroYes I will right now.  I greatly appreciate your help.

Vic

Link to comment
Share on other sites

TZTZoro

4em is maybe still a bit little, this is with 6em did the conversion wrong (sorry)
image.png.89ecae381e4c18f9db6f99d4ff9317bd.png

Link to comment
Share on other sites

VicMoore

The code is below. Let me know if I added the html style to the correct div.

 

What version of Emby are you using?

Vic

PseudoTV.dll

Link to comment
Share on other sites

TZTZoro

The button is still a race condition, most of the time trying to do it on the third time works

the button is clickable now
I am running emby 4.8.0.66

 

Link to comment
Share on other sites

VicMoore

I am running on 4.7.14.0

Link to comment
Share on other sites

VicMoore

@TZTZoroI will look for a solution. Let me know if you have any ideas.  I appreciate your help and testing.

Vic

Link to comment
Share on other sites

VicMoore

@kjhedgesThats a good idea. I will do that after church today.

Vic

  • Like 1
Link to comment
Share on other sites

TZTZoro
45 minutes ago, VicMoore said:

@TZTZoroand @kjhedgesI think I found the problem.  Try the code below;

Vic

PseudoTV.dll 204.5 kB · 2 downloads

I tried this version, i skipped the other

i never get a start button i am not sure if that is automated

 

<div is="emby-scroller" class="view flex flex-direction-column scrollFrameY flex-grow emby-scroller page page-withFullDrawer page-withDockedDrawer scrollY" data-mousewheel="true" data-horizontal="false" data-centerfocus="card" data-controller="__plugin/pseudotvconfigjs" data-title="TV Source Setup">
    <!--
    <div class="scrollSlider flex-grow flex-direction-column padded-left padded-left-page padded-right padded-top-page padded-bottom-page settingsContainer">
    -->

    <div id="masterContainer">
        <div id="helpNode">
        </div>

        <div id="titleNode">
        </div>

        <div id="buttonNode">
        </div>

        <div class="scrollDiv">
            <div id="pageNode">
            </div>
        </div>

        <div id="modalNode">
        </div>
    </div>

    <form id="theForm">
        <div id="mainButtons">
            <input type="hidden" class="fldDeviceId">

            <!--
            <button is="emby-button" type="submit" class="raised button-submit block">
                <span class="saveButtonText"></span>
            </button>
            <button is="emby-button" type="button" class="raised button-cancel block btnCancel">
                <span>Cancel</span>
            </button>
            -->

        </div>
        <div class="verticalSection">
            <div class="inputContainer fldFriendlyName hide">
                <label class="inputLabel" for="embyinput2">LabelFriendlyName</label><input is="emby-input" type="text" class="txtFriendlyName emby-input emby-input-largerfont emby-input-smaller" label="LabelFriendlyName" autocomplete="off" id="embyinput2">
            </div>
        </div>
    </form>

</div>

that is the html what i get
and i am still getting Uncaught (in promise) TypeError: nameArray is undefined in configurationpage.js at line 2794
sorry i am not familiar with javascript but maybe the declaration scope is wrong but i suppose not because it works in v4.7
i do not know what smoothscroller.js does but maybe you use it somewhere and there is a try except catch thingy and your variables dont get initialized/completely filled and that other parts of your code dont work? like a dict where for example a key is missing and that is why other parts dont work or something else

Edited by TZTZoro
Not adding multiple emssages
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...