Streamlink: Usage of ustv plugin ?

Created on 9 Jun 2018  Â·  36Comments  Â·  Source: streamlink/streamlink

Hey guys! I'm struggling with ustvnow plugin and i couldn't figure it out. Username checked password checked but what is station code ? How can i find it ? Is that enough to use it ? Thanks.

question

All 36 comments

Unfortunately you need to know the station code, which is the internal name for the channel. They are a bit cryptic, but if you the url and don’t give a station code it should print them out.

Thanks for the reply. I don't get it should i enter url to streamlink for print them out ? I can't actually get any link ustvnow made you watch all channels in home screen. Can you please give me a little more detail ?

Did you try anything? streamlink http://watch.ustvnow.com/ with the username and password?

...Username checked password checked...

How did you write the credentials command line (argument?) aykuter ?
--ustvnow-email=xxx --ustvnow-password=xxx
ustvnow username: xxx USTV Now account password: xxx etc., etc. won't work,
so how would it (precisely) look ?
```
C:\Users\Ordval>call streamlink.exe "http://watch.ustvnow.com/" best
Enter ustvnow username: [email protected]
Enter USTV Now account password:
[console][info] Frdvalound matching plugin ustvnow for URL http://watch.ustvnow.com/
[plugin.ustvnow][error] Station code not provided, use --ustvnow-station-code.
[plugin.ustvnow][error] Available stations are: discovery, whtm, animalplanet, tlchd, espntwo, whvl, sndnc, foxnews, wlyh, nickelodeon, whphd, syfy, natgeo, bbca, wpmt, fxhd, usahd, wpsu, frfrm, amchd, bravo, comedycentral, spiketv
error: No playable streams found on this URL: http://watch.ustvnow.com/

The input in cmd won't accept a password (not even through a batch)
so I had to leave the field empty.

C:\Users\Ordval>call streamlink.exe "http://watch.ustvnow.com/watch/whphd" best
Enter ustvnow username: [email protected]
Enter USTV Now account password:
[console][info] Found matching plugin ustvnow for URL http://watch.ustvnow.com/watch/whphd
error: Unable to open URL: http://m.ustvnow.com/stream/1/live/view (403 Client Error: Forbidden for url: http://m.ustvnow.com/stream/1/live/view?br_n=Firefox&br_v=52&br_d=desktop&scode=whphd)
```
if indeed "whphd" is CBS.

@Ordval that should work, could you file a bug ?

I've never written a bug file nor a report, however, the "Submit new issue"-button is greyed out,
also for the form in its original state.

I tried this one (i see this arguments on streamlink's webpage) :
streamlink http://watch.ustvnow.com/ --ustvnow-username [email protected] --ustvnow-password xxxxx
but it's giving me error :
streamlink-script.py: error: unrecognized arguments: --ustvnow-username xxx@xxxxx --ustvnow-password xxxxxx

And i tried @Ordval suggestions too but failed.

error: No plugin can handle URL: http://watch.ustvnow.com/watch/whphd

Whats the correct usage of plugin ? I will try it like that so i will tell you if anything wrong

@aykuter looks like you are not using the latest version, you should upgrade to 0.13.0 to get the ustvnow plugin.

@Ordval this link doesn’t work? https://github.com/streamlink/streamlink/issues/new

@beardypig I updated it and i'm taking this output:

C:\Program Files (x86)\Streamlink\bin>streamlink http://watch.ustvnow.com/ --ustvnow-username xxxx@xxxxxx --ustvnow-password xxxxx --ustvnow-station-code whtm --best
[console][warning] The option --best-stream-default is deprecated since version 1.9.0, use '--default-stream best' instead.
[console][info] Found matching plugin ustvnow for URL http://watch.ustvnow.com/
[console][info] Available streams: 136p (worst), 270p, 360p, 720p_alt, 720p (best)
[console][info] Opening stream: 720p (hls)
[console][info] Starting player: "C:\Program Files\VideoLAN\VLC\vlc.exe"

It's starts playing but saying me stream ended after 4-5 seconds

Now it's not even starts playing. Here output :

C:\Program Files (x86)\Streamlink\bin>streamlink http://watch.ustvnow.com/ --ustvnow-username xxxxxxxxxxxxx@xxxxxxxxxx --ustvnow-password xxxxxx--ustvnow-station-code whtm --default-stream best
[console][info] Found matching plugin ustvnow for URL http://watch.ustvnow.com/
[console][info] Available streams: 136p (worst), 270p, 360p, 720p_alt, 720p (best)
[console][info] Opening stream: 720p (hls)
[console][error] Try 1/1: Could not open stream <HLSStream('http://ilvc04.ak.ustvnow.com/ilv10/smil:7E450WHTMUSTVNOW/chunklist_b2383872.m3u8?hdnts=st=1528761600~exp=1528790400~acl=*~hmac=b3fc6947e11ae99b95794cbd00efde12f648d2d2a1bab5077a00f75551791e20&hdntl=exp=1528848102~acl=*~data=hdntl~hmac=739262aaac064c4a57de01bd34d2ece106069e9d82d14e1790576ffb2e705771&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuIjoiMTc1M2I5IiwidCI6InBhMmo3YW1tdHNnZG84YzhicG50cnkxdHduenYiLCJpIjoiYmM3NzE2YjgiLCJzIjoid2h0bSJ9.ElBttciMS7ViJVyNudsawQo0b34IdAfbRUKZ2kF18z4')> (Failed to read data from stream: Read timeout)
error: Could not open stream <HLSStream('http://ilvc04.ak.ustvnow.com/ilv10/smil:7E450WHTMUSTVNOW/chunklist_b2383872.m3u8?hdnts=st=1528761600~exp=1528790400~acl=*~hmac=b3fc6947e11ae99b95794cbd00efde12f648d2d2a1bab5077a00f75551791e20&hdntl=exp=1528848102~acl=*~data=hdntl~hmac=739262aaac064c4a57de01bd34d2ece106069e9d82d14e1790576ffb2e705771&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuIjoiMTc1M2I5IiwidCI6InBhMmo3YW1tdHNnZG84YzhicG50cnkxdHduenYiLCJpIjoiYmM3NzE2YjgiLCJzIjoid2h0bSJ9.ElBttciMS7ViJVyNudsawQo0b34IdAfbRUKZ2kF18z4')>, tried 1 times, exiting
[console][info] Closing currently open stream...

I tried another station code and it's worked again but it's froze after every 4 seconds and keeps playing after 10 seconds. I don't think it's a problem about streamlink so we can close it i guess. Thanks for all your help @beardypig i'm really grateful

@beardypig

@Ordval this link doesn’t work? https://github.com/streamlink/streamlink/issues/new

Still greyed out. Do the acceptance of cookies play any role in this ? Well, restarted Firefox.
Reload of the page makes the button highlight for a moment, then greys down.

Following aykuter's example, with and without --default-stream, I also get it to open
but only with the worst quality:

C:\Users\Ordval>call streamlink.exe "http://watch.ustvnow.com/" --ustvnow-username [email protected] --ustvnow-password xxxx --ustvnow-station-code whtm --default-stream best
[console][info] Found matching plugin ustvnow for URL http://watch.ustvnow.com/
[console][info] Available streams: 270p (worst, best)
[console][info] Opening stream: 270p (hls)
[console][info] Starting player: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
[console][info] Player closed
[console][info] Stream ended
[console][info] Closing currently open stream...
C:\Users\Ordval>call streamlink.exe "http://watch.ustvnow.com/"  --ustvnow-username [email protected] --ustvnow-password xxxx --ustvnow-station-code whphd --default-stream 720p
[console][info] Found matching plugin ustvnow for URL http://watch.ustvnow.com/
error: The specified stream(s) '720p' could not be found.
       Available streams: 270p (worst, best) 

I usually use “Video Download Helper” to get maximum quality.
We have installed Streamlink to different directories, does that play any role ?
C:\Users\Ordval\AppData\Local\Streamlink
I just let S. install itself where it wants to, doing it the cumbersome way: uninstall, reinstall.

@aykuter Do you have a paid for subscription
or did you subscribe rather recently ?

You have to enter a title and edit the template in order to be able to submit an issue.

Embarrassing. Could you see my awkward mistake with the title ?
Seems perhaps aykuter have rectified this topic's problem
so I'll have to wait and see if beardypig still want the, I suppose, Bug report.

@Ordval better to file a report, otherwise you’re issue will get lost :)

Only some streams are available at 720p, and some channels you need to subscribe. From what I saw (don’t have a subscription) I could only get pretty low quality streams.

@Ordval I created my account 1 week ago and it's free not paid.
@beardypig I tried this script too with my free account.
ustvnow-client by stephensolis(github)
It's creating m3u8 file but i can't watch it with vlc player. Owner of script says :

USTVnow blocks the default VLC user-agent string

So when i try to watch it with another m3u8 player it's working perfectly on 720p quality without any freeze problem. I don't have much experience but streamlink's problem will be user-agent for ustvnow script.

@aykuter
Most likely your account will change to lower quality's after a month or so.
Now I suspect, you can use all of their channels ?

@Ordval Nope i only have 6 channels available. I will create new account after a month it's no big deal for me.

Do you use a new e-mail address each time ?

Yes i'm creating new e-mail each time.

What is the station code for ABC ?
Invalid station-code: wgal

Here is what I get...

"ABC" = whtm
"CBS" = whphd
"CW" = wlyh
"FOX" = wpmt
"My9" = whvl
"PBS" = wpsu
"Paramount Network" = spiketv
"AMC" = amchd
"Animal Planet" = animalplanet
"BBCA" = bbca
"Bravo" = bravo
"Comedy Central" = comedycentral
"Discovery Channel" = discovery
"ESPN2" = espntwo
"Fox News Channel" = foxnews
"Freeform" = frfrm
"FX" = fxhd
"National Geographic Channel" = natgeo
"Nickelodeon" = nickelodeon
"SundanceTV" = sndnc
"Syfy" = syfy
"The Learning Channel" = tlchd
"USA" = usahd

You truly go out of your way to do it even more profound, Thank you,
but I was quite tired when I wrote my question.
“wgal” should of course have referred to NBC as it says on its URL
[http://m.ustvnow.com/images/WGAL.png].

I can get a quality 4 stream with V. D. H. as I wrote higher up,
(just alter the now1) so shouldn't there be a station code here to ?

@Ordval these are the codes I see with my free account (over 2 years old) ... not sure if there are more that I don't see :)

Try open it plainly in your browser.

@Ordval for CBS I only get the one stream quality in the browser too.

No, try opening NBC just by clicking on either its icon or allowed TV program item.
(Here, I've just mentioned the stream qualities in passing).

I still only get the one stream quality. Maybe you can be more specific and give some more details @Ordval.

My new raised question is (sorry bastimeyer):
What is NBC's station code, if it won't open with wgal through the Plug-In ?
Because as you could see, it would open with a free account in the Browser, right ?

(You can lose the quality issue unless you want to make the Plug-In add any change(-s)
to the quality like d3n1s did with his “USTVNow” app.
Today his gone Pay-for, but if he still would have supported it freely,
we could have received a stream, that in its first part could look like this:
http://ilvc05.ec.ustvnow.com/ilv01/mp4:67F85WGALUSTVNOW4/chunklist.m3u8?f1a2823da53acb9b9d72... etc.
observe the NOW4 part,
but unless you want to make any such modification, drop that particular subject).

NBC missing looks like a bug. But we don’t want to circumvent their premium content protection - I assume you can only get the HD streams with a subscription?

I would assume the same, but it has become a habit using it.
I mean, there is something strangely monophonic-like with the sound
so I haven't considered it to be the full premium quality even at the 4th level.

@bastimeyer Well, ... aren't I'm being "off topic" ?

I think we've exhausted all the discussion for this topic and have gone above and beyond in terms of support so I'm going to close it now. We can't get the HD streams since we don't circumvent DRM so I don't think there's anything else to discuss on the topic of usage. Thanks for all the assistance @beardypig.

Well, there is a bug here. NBC is missing and should be available :)

@beardypig Yeah but let's open a new issue for that, this one is getting off-topic.

Thank You beardypig for the new update !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Junior1544 picture Junior1544  Â·  55Comments

cdrage picture cdrage  Â·  45Comments

thinkpad4 picture thinkpad4  Â·  37Comments

bobvargas picture bobvargas  Â·  104Comments

whady picture whady  Â·  35Comments