Skip to content

plugins.nowtvtr: new plugin #5827

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

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

bastimeyer
Copy link
Member

Resolves #5826

Their news channel appears to be geo-blocked, so I can't test this.

@ipstreet312, please check and see if any streams (not covered by the tests) are not working...
https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#pull-request-feedback


$ ./script/test-plugin-urls.py nowtvtr
:: Finding streams for URL: https://www.nowtv.com.tr/Gaddar/bolumler
:: Found streams: 360p, 480p, 720p, 1080p, worst, best
:: Finding streams for URL: https://www.nowtv.com.tr/Memet-Ozer-ile-Mutfakta/bolumler
:: Found streams: 360p, 480p, 720p, 1080p, worst, best
:: Finding streams for URL: https://www.nowtv.com.tr/canli-yayin
:: Found streams: 360p, 480p, 720p, worst, best
:: Finding streams for URL: https://www.nowtv.com.tr/now-haber
!! Error while fetching streams
:: Finding streams for URL: https://www.nowtv.com.tr/yayin-akisi
:: Found streams: 360p, 480p, 720p, 1080p, worst, best

This plugin replaces the removed foxtr plugin
@ipstreet312
Copy link

Sorry, still sinces hours on how to give feedback... i dont have skills :((((( . Can someone else help us ?

@ipstreet312
Copy link

ipstreet312 commented Feb 13, 2024

@bastimeyer : i succeded in test, please see result :
PS C:\Users\xxxxx> streamlink https://www.nowtv.com.tr/canli-yayin best
[cli][info] Found matching plugin nowtvtr for URL https://www.nowtv.com.tr/canli-yayin
[cli][info] Available streams: 360p (worst), 480p, 720p (best)
[cli][info] Opening stream: 720p (hls)
[cli][info] Starting player: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
I don't know the next step for you needed, as no more action from my side possible ? Thanks, best regards

@bastimeyer
Copy link
Member Author

Well, congrats, but I was looking for feedback whether there's any content on that site which does not work with this plugin implementation. As mentioned, there are some geo-blocked streams...

@bastimeyer
Copy link
Member Author

Going to merge this now... Apparently, the news channel wasn't available at the time, but it's now, and it's working fine. I couldn't find any other content that's not working, but if I'm wrong, then a new plugin issue should be opened (if it makes even sense).

@bastimeyer bastimeyer merged commit 98f2dae into streamlink:master Feb 13, 2024
@bastimeyer bastimeyer deleted the plugins/foxtr-nowtvtr branch February 13, 2024 13:54
@ipstreet312
Copy link

ipstreet312 commented Feb 14, 2024

Hello @bastimeyer thank you again for your updates. Yesterday url access was Ok but since today we get Exception Error :
streamlink.exceptions.PluginError: Unable to open URL: https://www.nowtv.com.tr/canli-yayin (HTTPSConnectionPool(host='www.nowtv.com.tr', port=443): Max retries exceeded with url: /canli-yayin (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f3b6e86d610>: Failed to resolve 'www.nowtv.com.tr' ([Errno -3] Temporary failure in name resolution)")))
More worklow info : https://github.com/ipstreet312/freeiptv/actions/workflows/nownew.yml
I can't found more info on that "name resolution" issue whitin the project even a similar issue for helping me to resolve it.
Is there a workaround or a possible fix ? Thank you, best regards

@mkbloke
Copy link
Member

mkbloke commented Feb 14, 2024

It's a DNS issue. Only one of their name servers is returning an A record for www.nowtv.com.tr.

Nothing can be done about it here.

@bastimeyer
Copy link
Member Author

Force IPv4:

$ streamlink -4 'https://www.nowtv.com.tr/canli-yayin' best
[cli][info] Found matching plugin nowtvtr for URL https://www.nowtv.com.tr/canli-yayin
[cli][info] Available streams: 360p (worst), 480p, 720p (best)
[cli][info] Opening stream: 720p (hls)
[cli][info] Starting player: /usr/bin/mpv
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...

$ streamlink -6 'https://www.nowtv.com.tr/canli-yayin' best
[cli][info] Found matching plugin nowtvtr for URL https://www.nowtv.com.tr/canli-yayin
error: Unable to open URL: https://www.nowtv.com.tr/canli-yayin (HTTPSConnectionPool(host='www.nowtv.com.tr', port=443): Max retries exceeded with url: /canli-yayin (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f576e662270>: Failed to resolve 'www.nowtv.com.tr' ([Errno -5] No address associated with hostname)")))

@ipstreet312
Copy link

Thanks a lot for your help contributions.
py line added : session = streamlink.session.Streamlink(options={"ipv4": True})
working fine finally. Bests !

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

Successfully merging this pull request may close these issues.

plugins.foxtr: name changed to nowtvtr
3 participants