-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Australia 9 Channels Issues #116
Comments
Hi, |
getting tivimate to get a url from kodi isnt really possible. |
Ah ok thanks anyhow, I'm only a homelabber running truenas scale, some VM's and Docker Desktop, coding is out of my reach. |
Perhaps automation requests are being sent to frequently, and too predictably. Maybe implement it do be done randomly, perhaps once every few hours, then once between 30 and 45 minutes in between. |
I suspect it's simply seeing multiple ips using the same token. I've heard
users using a dontbugme login creds having that account suspended too.
…On Sun, 4 Aug 2024, 16:29 paul19920801, ***@***.***> wrote:
Perhaps automation requests are being sent to frequently, and too
predictably. Maybe implement it do be done randomly, perhaps once every few
hours, then once between 30 and 45 minutes in between.
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPQAKLO5GAWGZ22TKOYMSTZPWU4HAVCNFSM6AAAAABL3YHZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGI4TSOBYGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've managed to successfully extract a tokenized url for each channel manually from 9now.com.au, and the streams still work after 48 hours. Tested in VLC, Chrome browser and Tivimate. They also work with and without VPN so at least 2 IPs. I don't want to share them incase more than 2 IPs triggers an account suspension. Requires the M3U Sniffer extension for Chrome. Navigate to each channel on 9now and grab the url that begins with either of the two syntaxes below:
It's a bloody big url with over 1500 characters. But they work so far. |
That's the exact same as we used to use. They will get blocked when you
have as many users using it.
…On Sun, 4 Aug 2024, 17:50 oismacca, ***@***.***> wrote:
I've managed to successfully extract a tokenized url for each channel
manually from 9now.com.au, and the streams still work after 48 hours.
Tested in VLC, Chrome browser and Tivimate. They also work with and without
VPN so at least 2 IPs. I don't want to share them incase more than 2 IPs
triggers an account suspension.
Requires the M3U Sniffer
<https://chromewebstore.google.com/detail/m3u8-sniffer-tv-find-and/akkncdpkjlfanomlnpmmolafofpnpjgn>
extension for Chrome. Navigate to each channel on 9now and grab the url
that begins with either of the two syntaxes below:
https://csm-e-nineau1-eb.bln1.yospace.com/csm/extlive/nnaprd01,prod-simulcast-..
..
https://9now-livestreams-fhd-t.akamaized.net/t/prod/simulcast/......
It's a bloody big url with over 1500 characters. But they work so far.
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPQAKK2MD2YG5QV2AUT2BLZPW6MBAVCNFSM6AAAAABL3YHZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGM2TIMZRGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Do you know if these urls eventually expire? I'm surprised I'm getting 48+ hours out of them so far. |
What would it require to import the tokenized urls into nextpvr? I'm thinking along the lines of an app/webserver which automatically do it - this would require each user to use their own token, which should automatically get generated, then the url that's exported from the app is what one would import into nextpvr. |
This is what my server does. It uses a constant url that redirects to
latest streams. There code floating around that's copied the auth etc from
my plugin. It just gets the url and then 302 redirect to the latest.
There is even my kodi.proxy which can run my addon's outside of Kodi to get
the links etc. ppl use that with tvheadend.
It's still not an easy solution. But if anyone has a server running, not
too hard to setup your own redirect service using your own auth
…On Sun, 4 Aug 2024, 18:42 paul19920801, ***@***.***> wrote:
What would it require to import the tokenized urls into nextpvr?
I'm thinking along the lines of an app/webserver which automatically do it
- this would require each user to use their own token, which should
automatically get generated, then the url that's exported from the app is
what one would import into nextpvr.
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPQAKPMFTQQM3FUNMIDVILZPXENFAVCNFSM6AAAAABL3YHZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGM3TAOBUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
If anybody gets said redirect server working as a docker container that would be brilliant! |
I hope there is a fix. wife is on my case. |
I've been trying to work out how they generate the token. I get tokenized urls for the SBS streams which is an easy php redirect that calls an api via curl with the right auth headers. The results in a json with the stream url. But it looks like 9now uses some on-the-fly base64 stuff across multiple js scripts to generate the token instead of an api call. It's like they're hiding the token other than in the url? Bit above my head I think, my skills go as far as php/curl/java. |
everything you need is in my slyguy 9now plugin or that other code above |
Just want to share these flask apps that have been tested on Ubuntu 24.04 server. All codes here are based entirely on Matt's 9now addon so all credits go to him. flask app to activate device and acquire private refresh_token: ` app = Flask(name) HEADERS = { device_code_data = None class API:
api = API() def get_new_device_code(): @app.route('/')
@app.route('/check_status', methods=['POST'])
def save_refresh_token(refresh_token):
if name == 'main':
` flask app to get Channel 9 NSW live stream: ` HEADERS = { REFRESH_TOKEN_PATH = '/your_local_path/refresh_token.json' class Settings: settings = Settings() def get_refresh_token(): def print_with_timestamp(message): class API:
def initialize_api():
def update_url_periodically(): app = Flask(name) @app.route('/9') if name == 'main':
` |
I have managed to use the sniffer and play on VLC and Chrome , how do you play this in Tivimate ? |
Try matching the User-Agent setting in Tivimate (either under Settings >
General or Settings > Playlists > [playlist name]) with the user agent in
the URL.
…On Tue, 6 Aug 2024, 4:24 pm LGSAM59, ***@***.***> wrote:
I've managed to successfully extract a tokenized url for each channel
manually from 9now.com.au, and the streams still work after 48 hours.
Tested in VLC, Chrome browser and Tivimate. They also work with and without
VPN so at least 2 IPs. I don't want to share them incase more than 2 IPs
triggers an account suspension.
Requires the M3U Sniffer
<https://chromewebstore.google.com/detail/m3u8-sniffer-tv-find-and/akkncdpkjlfanomlnpmmolafofpnpjgn>
extension for Chrome. Navigate to each channel on 9now and grab the url
that begins with either of the two syntaxes below:
https://csm-e-nineau1-eb.bln1.yospace.com/csm/extlive/nnaprd01,prod-simulcast-..
..
https://9now-livestreams-fhd-t.akamaized.net/t/prod/simulcast/......
It's a bloody big url with over 1500 characters. But they work so far.
I have managed to use the sniffer and play on VLC and Chrome , how do you
play this in Tivimate ?
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADRL4OBBJRVDXLEYCJXNAILZQCB3RAVCNFSM6AAAAABL3YHZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQGY3TSMJVG4>
.
You are receiving this because you commented.Message ID: <matthuisman/i.
***@***.***>
|
This is a very good extension for Chrome/Edge. https://chromewebstore.google.com/detail/videoplayer-mpdm3u8m3uepg/opmeopcambhfimffbomjgemehjkbbmji It autoplays and is capable of decrypting WV encrypted videos on the fly if WV keys are provided. |
Thanks , ended up being a poor copy and paste on my part . Now I just need to find a way to link it to a guide and hope it stays live |
If you keep the IDs the same as Matt's, you can just use his EPG. No reason why it wouldn't work (unless they have been removed from the EPG). Edit: Probably should have elaborated. Add those links to a new m3u playlist and make sure you keep the IDs the same as Matt's. Then it should work using his EPG. |
I'm at the same position, used the sniffer to get a working url, self hosted YOURLS to get a nice short url, but now can't add it to Tivimate without a matching epg? Matt's is still live, but of course the ID's now do not match. Update: I already pipe Xteve to all my Tivimate instances, I will see if I can manually write a m3u file using my links, but with matts ID's. |
I got the EPG working nicely, unfortunately the links do not work in Tivimate, even though they are fine in Chrome? |
Could someone please post the useragent for Tivimate, pretty sure I have messed it up |
I use the Kodi format of Matt's with the pipe, but I have not tested if it is even needed as the M3U has the useragent in it. This is mine
|
Mine works in Chrome and my media player, tivimate gives me a 302 error. [link removed] |
302 isnt an error. 302 = redirect |
Looks like your URL shortener is mundging it. I am anything but an expert, but if I was you and you are worrying about long URLs, why don't you just make a playlist with a short name and host that. It makes no difference how long the URLs inside that list are. So make a playlist called 9.m3u8 and add all 5 Nine networks channels in that. It will even be shorter than your 'shortened' URL. eg cannardy.com/9.m3u8 |
Ah ok, that's precisely what i had done, I have a m3u file called channels 9, it contains all five long url's. Tivimate use a short url from Xteve. I posted the short one for convenience. Though i was testing from it too. I will go add the |useragent to the end of the long urls and test properly thanks. |
I need to update my links twice a day now. The only thing that works for
watching is to change channels as soon as ads start and then change back to
the original channel. This will keep your channel working until the next ad
break. This is the same for me even when watching on the 9now app, so it
seems like 8 have totally stuffed this up. I actually get less screen
freezing in tivimate.
…On Sat, 7 Sept 2024, 18:15 LGSAM59, ***@***.***> wrote:
I take it there are no work arounds for the ad insertion bugs ? seems
worse on 9now
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BK2V7CHIZJ7RPZY6ZMXHZ6LZVKYZ7AVCNFSM6AAAAABL3YHZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGEYTIMRWGQ>
.
You are receiving this because you commented.Message ID: <matthuisman/i.
***@***.***>
|
don't know if it works for what you are using, but I switched to streamlink a while back. It actually just uses ffmpeg under the hood, but it can handle those ad insertions. It can even handle Pluto |
I'm trying to get this to work, but getting a fetching error. I'm guessing i've got my token formatting wrong. How do you get this token? |
I used the associated script that was posted earlier in this thread without changes to generate the token. |
Also, you might want to leave the region and city as nsw and syd, to make sure you get a working token first, then change to get the vic and mel equiv streams. i had not looked into the codes (nsw vs vic etc).. having said this, i just changed my script to have region as vic and channel 9 as live-ch9-mel-ssai, and i was able to get a valid stream back.. |
OK so I got this to work with the refresh token, with nsw syd, tried vic and mel and got no URL. I think I have different goals to most of you all here, as I'm using StreamMaster (basically tvheadend but only for iptv to add into Plex). I got a URL and added it in, but its reporting no streams avaliable (can download and watch via VLC though, so not sure if this is a nsw issue or something else). So one at another brick wall unfortunately, but I feel I'm close... |
If you changed the region, remove the cached_urls.json and rerun the script.. |
Oh sweet that worked :P |
I use tvh, and feed tvh links into plex.. reason i do this is i use pvrlive on android tv, which can pull the channels (and epg) from tvh.. so i get a native interface on the tv with all the channels and guide.. i only do plex live tv when i am not at home.. |
So I tried adding that URL to the 'Networks' section in tvh, and reporting 0 muxes/services/mapped. Am I missing a step here? Thanks for your help! |
I don't feed any m3u's directly into tvh.. i normally wash it with streamlink first... below is the shell script that i use.. i have a simple m3u (that's added to tvh's network tab) that basically call pipe://home/hts/nine/nine.sh with an argument of 9/9gem/9go/9life etc for each stream.. #!/bin/sh |
9 streams are now back in all playlists as they have removed the tokens. Closing this issue. Remember to support me: |
No way!. well thats a win. I literally sent them a support request to remove their tokens stuff about an hour ago. Hahaha. what a coincidence. |
Wow, thanks for looping back on this. I guess I'm surprised that they didn't keep it as an overall improvement as piracy protection for their regular content 🤷 |
Considering people had issues on 9now, I guess they had to rollback for the sake of their viewers instead of keeping it for good. In either case this is so good to hear, love it. Thanks for the update. |
Thanks so much for all your advice and support throughout all this Matt. I have certainly learned a lot about streams....! |
Awesome stuff. Was tuning into the Newcastle and Northern Rivers streams, but just before the Olympics started, bye bye direct links, was sad. Now I am happy again, and can finally go back to these streams. NBN News and the regional advertising for both areas are the main key takeaways of these streams, otherwise programming is the same as the capital cities. For anyone who's new here and are looking for the direct links to the (UPDATED) regional streams... Will these work with the capital cities too? Yes, of course. Just change the city name to "syd" for Sydney, "mel" for Melbourne, "bne" for Brisbane, "adl" for Adelaide, or "per" for Perth. And for the Gold Coast QTQ relay, "gcq" is the one for you. |
Is there anything thst needs to be done for the urls to work? I an no longer getting a 403 error but now get a IllegalStateException error. I have updated the playlists; cleared the cache for the app. What else is needed to get then to work? |
… On Thu, 12 Sept 2024, 21:07 nihonjin98, ***@***.***> wrote:
Is there anything thst needs to be done for the urls to work? I an no
longer getting a 403 error but now get a IllegalStateException error. I
have updated the playlists; cleared the cache for the app. What else is
needed to get then to work?
—
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPQAKPKH72KOGGH2BMA6JDZWFKWTAVCNFSM6AAAAABL3YHZCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBVG4YDAMRZG4>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
I've been using sparkle and have had no issues since channel 9 streams have been updated by Matt. Using sparkle on nvidia shield fwiw |
Yep, tivimate 5.1 problem, roll back to 5.04 |
Do you find the error is consistent? I ask because if I first go to the new stream in Tivimate I get the error, but if I flick to another channel and back it typically works. Made me wonder if I needed to specify something further in the URL (browser type?) to avoid the issue but the above suggests a Tivimate 5.1 issue. |
yup that's the workaround for the error in tivimate, |
I just saw the thread posted above on whirlpool....and did the look at me being late to the party! haha |
Yes it would always appear if i went first to a channel 9 link but if i went to another station first and then to channel 9 it would not give the error. |
locking this convo for the sake of of my email inbox |
Currently the 9 streams are down.
Around the start of olympics they removed the old linear streams that were used
We needed to switch to streams that require a TOKEN
These tokens need to be generated by a 9now user account.
Added automation to do this, however the user accounts keep getting suspended.
Maybe they are detected as bots? or maybe its human's doing it?
Or, could be automation if a token is used by multiple different IPs then kill the account.
Anyway - to get new user accounts - it takes a bit of time to create them and then get the refresh token required
to create access tokens that then are used to get the streams.
Im currently a bit "sick of the back and forth" so not jumping to try to keep fixing it.
For now, I'd recommend using the 9now Kodi addon which generates the token for just your instance (not shared).
Another option is to spin up a server to generate the tokens and then points other IPTV players at that server.
There is abit about that on this ticket: matthuisman/slyguy.addons#825
The text was updated successfully, but these errors were encountered: