Skip to content

Conversation

@bastimeyer
Copy link
Member

Resolves #6028
https://en.wikipedia.org/wiki/CNBC-e

Content is geo-restricted. Checked using a VPN from Cyprus...

@ipstreet312 Please check and post a debug log
https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#pull-request-feedback


Geo-restriction

$ streamlink https://www.cnbce.com/canli-yayin
[cli][info] Found matching plugin cnbce for URL https://www.cnbce.com/canli-yayin
[plugins.cnbce][error] Could not access stream (geo-blocked content, etc.)
error: No playable streams found on this URL: https://www.cnbce.com/canli-yayin

With VPN

$ streamlink -l debug https://www.cnbce.com/canli-yayin best
[cli][debug] OS:         Linux-6.9.3-1-git-x86_64-with-glibc2.39
[cli][debug] Python:     3.12.3
[cli][debug] OpenSSL:    OpenSSL 3.3.1 4 Jun 2024
[cli][debug] Streamlink: 6.7.4+20.g225a8ed2
[cli][debug] Dependencies:
[cli][debug]  certifi: 2024.6.2
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 5.2.2
[cli][debug]  pycountry: 24.6.1
[cli][debug]  pycryptodome: 3.20.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.32.3
[cli][debug]  trio: 0.25.1
[cli][debug]  trio-websocket: 0.11.1
[cli][debug]  typing-extensions: 4.12.1
[cli][debug]  urllib3: 2.2.1
[cli][debug]  websocket-client: 1.8.0
[cli][debug] Arguments:
[cli][debug]  url=https://www.cnbce.com/canli-yayin
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=/usr/bin/mpv
[cli][info] Found matching plugin cnbce for URL https://www.cnbce.com/canli-yayin
[utils.l10n][debug] Language code: en_US
[cli][info] Available streams: 360p (worst), 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (hls)
[cli][info] Starting player: /usr/bin/mpv
[stream.hls][debug] Reloading playlist
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] First Sequence: 40165; Last Sequence: 40344
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 40342; End Sequence: None
[stream.hls][debug] Adding segment 40342 to queue
[stream.hls][debug] Adding segment 40343 to queue
[stream.hls][debug] Adding segment 40344 to queue
[stream.hls][debug] Writing segment 40342 to output
[stream.hls][debug] Segment 40342 complete
[cli.output][debug] Opening subprocess: ['/usr/bin/mpv', '--force-media-title=https://www.cnbce.com/canli-yayin', '-']
[stream.hls][debug] Writing segment 40343 to output
[stream.hls][debug] Segment 40343 complete
[cli][debug] Writing stream to output
[stream.hls][debug] Writing segment 40344 to output
[stream.hls][debug] Segment 40344 complete
[cli][info] Player closed
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[cli][info] Stream ended
[cli][info] Closing currently open stream...

@ipstreet312
Copy link

#6028 @bastimeyer Thank you very much for you looking and provided analysis with files.

Since not having a VPN I couldn't move forward any further sorry, unfortunately.

Best yours & Regards

@bastimeyer
Copy link
Member Author

So you're asking for a plugin implementation without having any access to the stream yourself at all (via a Turkish IP address or anywhere else where it's not blocked)... lol... What is your motivation then? Wasting someone else's time? Making someone else work for your own projects for free?

In all seriousness, these kinds of requests are always such major BS that I'm thinking about rejecting any Turkish TV channels or plugins where it's just a trivial single HTTP API call in order to get the stream URL from now on.

provided analysis with files

I'm not providing "analysis with files"... I'm opening a pull request with a new plugin in order to support this site/stream in Streamlink.

I am not here to help you with your Streamlink fork where you apparently gather HLS URLs for third party applications and where you failed to implement this plugin yourself and apparently mindlessly copied the plugin code from an existing one, hoping that it would magically work:

Considering that you immediately went ahead and copied the code of my commit, I'm going to close this now. This is beyond ridiculous.
https://github.com/ipstreet312/streamlink/commit/7e4b2e5d6e405911c5df8b0045757a31a45bde34

Honestly, this kind of behavior should not be tolerated here.

@bastimeyer bastimeyer closed this Jun 11, 2024
@bastimeyer bastimeyer deleted the plugins/cnbce/init branch June 11, 2024 14:03
@ipstreet312
Copy link

ipstreet312 commented Jun 11, 2024

Sorry my aim is not to generate disagrement, I know that some stream works only when i am travelling, due to georestriction and can be only benefict only from that location. However I copied file in tests purpose via github by curiosity. It was a nice to have actually if it was working which is not the case. Regards

@gravyboat
Copy link
Member

@bastimeyer

In all seriousness, these kinds of requests are always such major BS that I'm thinking about rejecting any Turkish TV channels or plugins where it's just a trivial single HTTP API call in order to get the stream URL from now on.

Seems pretty reasonable to me and I'd be in favor of a new rule saying as much. This was a big reason we added the rule about streams which were just rebroadcasting local content due to the huge number of spam issues and plugin requests that were received.

@gokberkgunes
Copy link

Greetings.

I was looking for streaming this channel using streamlink. I came across with this pull request. I have access to the channel without any VPN; thus, I will provide log for the channel instead of the person who requested the functionality. Please reconsider merging this pull request for sake of others.

$ streamlink -l debug https://www.cnbce.com/canli-yayin best --player mpv                        
[session][info] Plugin twitch is being overridden by /home/gg/.local/share/streamlink/plugins/twitch.py
[cli][debug] OS:         Linux-6.9.3-arch1-1-x86_64-with-glibc2.39
[cli][debug] Python:     3.12.3
[cli][debug] OpenSSL:    OpenSSL 3.3.0 9 Apr 2024
[cli][debug] Streamlink: 6.7.4
[cli][debug] Dependencies:
[cli][debug]  certifi: 2024.2.2
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 5.2.2
[cli][debug]  pycountry: 23.12.11
[cli][debug]  pycryptodome: 3.20.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.32.3
[cli][debug]  trio: 0.25.1
[cli][debug]  trio-websocket: 0.11.1
[cli][debug]  typing-extensions: 4.12.0
[cli][debug]  urllib3: 1.26.18
[cli][debug]  websocket-client: 1.8.0
[cli][debug] Arguments:
[cli][debug]  url=https://www.cnbce.com/canli-yayin
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][info] Found matching plugin cnbce for URL https://www.cnbce.com/canli-yayin
[utils.l10n][debug] Language code: en_US
[cli][info] Available streams: 360p (worst), 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (hls)
[cli][info] Starting player: mpv
[stream.hls][debug] Reloading playlist
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] First Sequence: 57004; Last Sequence: 57183
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 57181; End Sequence: None
[stream.hls][debug] Adding segment 57181 to queue
[stream.hls][debug] Adding segment 57182 to queue
[stream.hls][debug] Adding segment 57183 to queue
[stream.hls][debug] Writing segment 57181 to output
[stream.hls][debug] Segment 57181 complete
[cli.output][debug] Opening subprocess: ['/usr/bin/mpv', '--force-media-title=https://www.cnbce.com/canli-yayin', '-']
[stream.hls][debug] Writing segment 57182 to output
[stream.hls][debug] Segment 57182 complete
[cli][debug] Writing stream to output
[stream.hls][debug] Writing segment 57183 to output
[stream.hls][debug] Segment 57183 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 57184 to queue
[stream.hls][debug] Adding segment 57185 to queue
[stream.hls][debug] Writing segment 57184 to output
[stream.hls][debug] Segment 57184 complete
[stream.hls][debug] Writing segment 57185 to output
[stream.hls][debug] Segment 57185 complete
[cli][info] Player closed
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[cli][info] Stream ended
[cli][info] Closing currently open stream...

@bastimeyer bastimeyer restored the plugins/cnbce/init branch June 13, 2024 18:47
@bastimeyer bastimeyer reopened this Jun 13, 2024
@bastimeyer bastimeyer merged commit 97b1f79 into streamlink:master Jun 13, 2024
@bastimeyer bastimeyer deleted the plugins/cnbce/init branch June 13, 2024 18:50
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.

cnbce.com / ercdn.net

4 participants