Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress? #73

Open
joe71101 opened this issue Sep 14, 2021 · 9 comments
Open

Progress? #73

joe71101 opened this issue Sep 14, 2021 · 9 comments

Comments

@joe71101
Copy link

So is this addon officially dead in the water? Most live TV doesn't work, many times the movies/TV shows are pulling dead links. If it is dead then that's OK, just wondering if we should hold out hope for a return to glory or not?

@jewbmx
Copy link

jewbmx commented Sep 14, 2021

I haven't "seen" or heard from Tempest in a long while so ya might wanna use something else for a while like the oath or something and then just wait and see if Tempest does return lol.
If ya need some iptv to use you can probably add this in pretty easily. Its what ive been using altho its a bit glitchy like most iptv stuff lol
https://github.com/jewbmx/ScraperWork/blob/main/indexers/webOasis.py

@Tredap
Copy link

Tredap commented Oct 31, 2021

Hey everyone if you're looking for a good USTVgo alternative to Tempest try Arxtic-Ape. It's working fine for me thus far. https://github.com/arxtic-ape

@simakuutio
Copy link

Yep, that works like a charm, it have different approach which bypass very nicely that "vpn" check.

@simakuutio
Copy link

And now that one broke too because ustvgo changed something... Let's hope developer is still around, I did evaluate change a little bit and it shouldn't be too hard to fix (some .php things changed to .js).

@jewbmx
Copy link

jewbmx commented Jan 15, 2022

If you guys need a simple iptv source you can just grab my webOasis indexer thats in my ScraperWork repo, then toss it in whatever addon ya got with some easy lines of code 😉. The radio and tv features work pretty decent.

@simakuutio
Copy link

Ok, let's pinpoint to the code where change is needed... old code looks like this (part of the function):

   def resolve(self,url):
            #url = 'https://ustvgo.tv/{}'.format(url)
            html = requests.get(url, headers={'user-agent': constants.USER_AGENT}).text
            fid = re.findall('/clappr\.php\?stream=([^\"\']+)', html)

ustvgo have now that clappr replaced with .js version. Someone with more skills than I have should see how those parameters should be passed to it, I bet it's rather close but not exactly the same. Looking forwards to hear some ideas.

@jewbmx
Copy link

jewbmx commented Jan 15, 2022

I see this from my site snoop that seems right but completely untested lol..

view-source:https://ustvgo.tv/amc-live/

<iframe src='/player.php?stream=AMC' allowfullscreen="" scrolling="no" frameborder="0"></iframe>

view-source:https://ustvgo.tv/player.php?stream=AMC

var hls_src='https://h1.ustvgo.la/AMC/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MS8xNS8yMDIyIDM6MzQ6NTIgUE0maGFzaF92YWx1ZT1xNFpNUWx2LzhYSWZYUnNvY09LRmFRPT0mdmFsaWRtaW51dGVzPTI0MA==';

Thats on mobile and pretty easy to test with some channels to see if it works lol.

Might wanna check reddit or a more active iptv type of github page also lol

@jewbmx
Copy link

jewbmx commented Jan 15, 2022

If that bullshit at the beginning of re.findall is what you see as an issue, try removing it some to be like re.findall('stream=(blahblah)', html)

@simakuutio
Copy link

Well, that's not the only place where it's needed... let's put whole function here so you can see it easier:

    def resolve(self,url):
            #url = 'https://ustvgo.tv/{}'.format(url)
            html = requests.get(url, headers={'user-agent': constants.USER_AGENT}).text
            fid = re.findall('/clappr\.php\?stream=([^\"\']+)', html)
            if len(fid) == 0:
                    return ' '
            fid = fid[0]
            post_url = 'https://ustvgo.tv/data.php'
            data = {'stream': fid}
            play_url = requests.post(post_url, data=data, headers={'origin':'https://ustvgo.tv', 'referer':'https://ustvgo.tv/clappr.php?stream={}'.format(fid), 'x-requested-with': 'XMLHttpRequest'}).text
            head = {'referer': 'https://ustvgo.tv/clappr.php?stream={}', 'user-agent': constants.USER_AGENT}
            return '{}|{}'.format(play_url, urlencode(head)), False

So it's needed also for that header ... "removing bullshit" doesn't solve anything here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants