streamlink / streamlink

Streamlink is a CLI utility which pipes video streams from various services into a video player
https://streamlink.github.io/
BSD 2-Clause "Simplified" License
9.92k stars 1.1k forks source link

Plugin request: USTVnow #911

Closed hpmueller1971 closed 6 years ago

hpmueller1971 commented 7 years ago

Checklist

Description

Hi, i would like to request a plugin for USTVnow. They offer free access to 7 US TV Channels and paid access to 30 channels, some in HD.

Access-URL: http://m.ustvnow.com/iphone (iStuff) http://www.ustvnow.com/gtv/ (SmartTVs) http://watch.ustvnow.com/guide (Webbrowsers)

The direct links are javascript-obfuscated and i can't see deep-links to the programs

They use various protocols, including HLS and RTMP, but HLS access only works for 30 days on the free account. HLS seems to offer a bit more quality (even on the SD-Only free account)

There are already several projects in python that can produce an m3u playlist (the urls are only valid for about 30mins):

https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist (HLS playlist, worked a week ago) https://github.com/guilleiguaran/ustvnow-m3u-server (RTMP playlist, stopped working about a year ago).

A choice of the protocol(s) would be great (as mentioned, HLS only works for 30 days for free), but i would be happy with anything that "just works" :)

Thanks :D

gravyboat commented 7 years ago

Hmm this one might be a bit questionable, if they're obfuscating links or doing any sort of encryption it might be difficult to support. Looking at that script that was working a week ago, it looks like they were specifically pulling it as a mobile stream, so that's probably fixed whatever mechanic was allowing that bypass. Thanks for the request, we'll see if someone wants to investigate it.

hpmueller1971 commented 7 years ago

Hiya, i'm not sure obfuscating was the right term, i meant they are not simply using www.ustvnow.com/abc etc links in the browser but some javascript-links, but i'm pretty sure they don't use encryption, at least when i was testing it a year ago, the rtmp links where standard rtmp (not rtmps etc)... Also, the hls playlists worked fine last week (before my trial expired) with tvheadend, which does NOT support encrypted hls-stream...

But then again, you can probably see more from the two python-examples than i can ever tell you ;). Just one thing i forgot, they also offer access via Roku, so there has to be a (relativly) stable api... In any case, thanks for your time :)

beardypig commented 7 years ago

Sounds cool, I'll take a look :) Edit: thanks for the detailed request!

markosjal commented 6 years ago

Just FYI I am using https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist in termux on android and generating a playlist that works beautfully.

What I have been unable to detgermine is how long the links are valid it seems somewhat random

You probably should try the mathgrinds USTVNow code