NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Extras Pluto TV.

 
  • 0 Vote(s) - 0 Average
Pluto TV.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 36,224
Threads: 722
Joined: May 2006
#31
2020-12-26, 08:53 PM
Hm I don't know what to suggest. If you type

curl http://localhost:8866/ -v

Is there a line something like

< Location: login.html?salt=c53ed4ef-60d7-4e4e-b5d7-ec9387750c8b

Martin
arkennedy75
Offline

Member

Posts: 170
Threads: 42
Joined: Jan 2005
#32
2020-12-26, 08:58 PM
(2020-12-26, 08:53 PM)mvallevand Wrote: Hm I don't know what to suggest.  If  you type

curl http://localhost:8866/ -v

Is there a line something like

< Location: login.html?salt=c53ed4ef-60d7-4e4e-b5d7-ec9387750c8b

Martin

C:\Users\Public\NPVR-data\scripts\plutotv>curl http://localhost:8866/ -v
*  Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8866 (#0)
> GET / HTTP/1.1
> Host: localhost:8866
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Sat, 26 Dec 2020 20:57:50 GMT
< Server: Kestrel
< Content-Length: 0
< Cache-Control: no-cache
< Pragma: no-cache
< Expires: -1
< Location: login.html?salt=36ffe524-cb40-4859-995c-7a7327338d66
< Set-Cookie: .AspNetCore.Session=CfDJ8MlgWpYGm4REmj2F0yaCdlIblmNdZpQfOSM9d%2BeMraJNmCQMx3vVn62s9oHkpiMElg1ZeqiWT%2BP6b4pe%2BqGIcavmiN77uqne1gZO6CDYhSmMbWez6I7dA%2BwRDIUYyDkjwoeuw%2BFu70bmiYVWIORgnNpnVWjJmbg4gXn8qSuuneiZ; path=/; samesite=lax; httponly
<
* Connection #0 to host localhost left intact
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,513
Threads: 141
Joined: Dec 2006
#33
2020-12-26, 09:22 PM
if in GenerateExtras(), you print out channels on a bad return code, I think you'll get a message that describes the error that's occuring:

Code:
    if not rc:
        print ("Please update your NextPVR username/password")
        print (f"  payload: {channels}")
        sys.exit()
NPVR Server: Win10 / AMD Phenom II X4 965 / 8gRAM / ATI Radeon 7700 Series / Hauppauge 2250
Misc: HDHR Prime, rPI LibreElec & Amazon FireStick Kodi clients
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 36,224
Threads: 722
Joined: May 2006
#34
2020-12-26, 09:25 PM (This post was last modified: 2020-12-26, 09:27 PM by mvallevand.)
I have a debug version coming I can't attach a file in Safari.  Ok  this is from Firefox.  Replace pluto.py with this and we will see what NextPVR is telling us.

Martin
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,513
Threads: 141
Joined: Dec 2006
#35
2020-12-26, 09:38 PM (This post was last modified: 2020-12-26, 09:38 PM by JavaWiz.)
Sure you uploaded the right file? I don't see any differences from the prior version...
NPVR Server: Win10 / AMD Phenom II X4 965 / 8gRAM / ATI Radeon 7700 Series / Hauppauge 2250
Misc: HDHR Prime, rPI LibreElec & Amazon FireStick Kodi clients
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 36,224
Threads: 722
Joined: May 2006
#36
2020-12-26, 09:41 PM
Oops here it is  replace lib/libnextpvr.py

Martin


Attached Files
.zip   update.zip (Size: 1.32 KB / Downloads: 2)
arkennedy75
Offline

Member

Posts: 170
Threads: 42
Joined: Jan 2005
#37
2020-12-26, 10:18 PM
(2020-12-26, 09:41 PM)mvallevand Wrote: Oops here it is  replace lib/libnextpvr.py

Martin

Thank for the help.  This is what I get with the updated file....

C:\Users\Public\NPVR-data\scripts\plutotv>python pluto.py install
Generating XMLTV file in C:\Users\Public\NPVR-data\
Found 297 stations
Generating Extra file in C:\Users\Public\NPVR-data\
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="fonts.css">
    <link rel="stylesheet" href="vendor/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="local.css">
    <link href="vendor/font-awesome/css/all.min.css" type="text/css" rel="stylesheet">

    <style>
        .card {
            width: 390px;
            max-width: 95%;
        }

        .input-group-text {
            background-color: #888888;
        }
    </style>
</head>
<body>
    <div class="container-fluid" id="app">
        <div class="container">
            <div class="card card-login mx-auto text-center bg-light">
                <div class="card-header mx-auto">
                    <h5><span class="logo_title mt-5">Login Required </span></h5>
                </div>
                <div class="card-body">
                    <form action="" method="post">
                        <div class="input-group form-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text"><i class="fa fa-user"></i></span>
                            </div>
                            <input type="text" id="email" class="form-control" placeholder="Username" autofocus>
                        </div>
                        <div class="input-group form-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text"><i class="fa fa-key"></i></span>
                            </div>
                            <input type="password" id="password" class="form-control" placeholder="Password">
                        </div>
                        <div class="row">
                            <div class="form-check col-6">
                                <!--
                                <input type="checkbox" class="form-check-input" id="revealPassword">
                                <label class="form-check-label" for="revealPassword">Show Password</label>
                                    -->
                            </div>
                            <div class="form-check col-6">
                                <p class="float-right">
                                    <input type="checkbox" class="form-check-input" id="rememberMeCheck">
                                    <label class="form-check-label" for="rememberMeCheck">Remember Me</label>
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <input id="loginButton" type="reset" name="btnLogin" value="Login" class="btn btn-primary float-right login_btn">
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <hr />
        <div class="col-12 text-center">
            <span id="message" class="text-danger"></span><hr />
        </div>
    </div>

    <script src="js/jquery-3.4.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="vendor/bootstrap/bootstrap.min.js"></script>
    <script src="js/MD5.js"></script>
    <script src="js/utility.js"></script>

    <script>
        if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
            $('head').append('<meta name="viewport" content="width=device-width, initial-scale=1"/>');
        }

        window.addEventListener("load", function (event)
        {
            sessionStorage.removeItem("allow_settings");

            var message = getParameterByName("message");
            if (message != null && message != "") {
                $("#message").text(message);
            }

            $("#loginButton").click(function () {
                doLogin();
            });

            $("#revealPassword").click(function () {
                console.log("reveal");
            });

            $(document).keyup(function (e) {
                if ($("#password").is(":focus") && (e.keyCode == 13)) {
                    doLogin();
                }
                if ($("#email").is(":focus") && (e.keyCode == 13)) {
                    doLogin();
                }
            });
        });

        function doLogin() {
            var salt = getParameterByName("salt");
            var username = $("#email").val();
            var password = MD5($("#password").val());
            var combined = MD5(salt + ":" + username + ":" + password);

            var url = 'login.html?hash=' + combined;;
            if ($("#rememberMeCheck").is(":checked")) {
                url += "&remember=true";
            }
            window.location.href = url;
        }
    </script>
</body>
</html>
{'stat': 'Failed', 'code': 8, 'msg': 'Invalid Session.'}
Please update your NextPVR username/password
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 36,224
Threads: 722
Joined: May 2006
#38
2020-12-26, 11:12 PM (This post was last modified: 2020-12-26, 11:15 PM by mvallevand.)
When you log on to NextPVR on this machine via the browser do you have any issue? More specifically to 127.0.0.1. If so does it work with localhost?

Martin
arkennedy75
Offline

Member

Posts: 170
Threads: 42
Joined: Jan 2005
#39
2020-12-26, 11:46 PM
(2020-12-26, 11:12 PM)mvallevand Wrote: When you log on to NextPVR on this machine via the browser do you have any issue?  More specifically to 127.0.0.1. If so does it work with localhost?

Martin

I am able to access nextpvr via browser with both http://127.0.0.1:8866/channels.html and http://localhost:8866/guide.html
2leftfeet
Offline

Senior Member

Posts: 487
Threads: 48
Joined: Jan 2015
#40
2020-12-27, 12:03 AM
Martin,

Two questions:
1. Is there a way to get more than 6 hours worth of EPG xmltv data from Pluto or is that fixed by Pluto itself.
2. I have noticed that when a channel goes to a local commercial (message stating "they will be right back"), streaming stops. This happens on both the web client and on a kodi client. Is there a way around this?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 2 3 4 5 6 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Alternate Pluto TV extra. mvallevand 2 168 2020-12-29, 07:50 PM
Last Post: mvallevand
  A couple of questions on Pluto TV mvallevand 4 152 2020-12-28, 02:29 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode