Skip to content

Add MRTmk plugin #3097

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 6 commits into from
Aug 23, 2020
Merged

Add MRTmk plugin #3097

merged 6 commits into from
Aug 23, 2020

Conversation

Tr4sK
Copy link
Contributor

@Tr4sK Tr4sK commented Aug 5, 2020

Add plugin to support MRT live stream and VOD.

Website with content: http://play.mrt.com.mk/

Working sample:

tr4sk@bluebox ...gbf1460c-py3.8.egg/streamlink/plugins % streamlink -l trace http://play.mrt.com.mk/live/47 best
[01:50:54,097][cli][debug] OS:         Linux-5.7.10-zen1-1-zen-x86_64-with-glibc2.2.5
[01:50:54,097][cli][debug] Python:     3.8.3
[01:50:54,097][cli][debug] Streamlink: 1.5.0+9.gbf1460c
[01:50:54,098][cli][debug] Requests(2.24.0), Socks(1.7.1), Websocket(0.57.0)
[01:50:54,098][cli][info] Found matching plugin mrtmk for URL http://play.mrt.com.mk/live/47
[01:50:54,196][plugin.mrtmk][debug] Found 1 stream URL
[01:50:54,249][utils.l10n][debug] Language code: fr_FR
[01:50:54,527][cli][info] Available streams: 128k (worst, best)
[01:50:54,527][cli][info] Opening stream: 128k (hls)
[01:50:54,527][stream.hls][debug] Reloading playlist
[01:50:54,684][stream.hls][debug] First Sequence: 7213; Last Sequence: 7216
[01:50:54,684][stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 7214; End Sequence: None
[01:50:54,685][stream.hls][debug] Adding segment 7214 to queue
[01:50:54,685][cli][debug] Pre-buffering 8192 bytes
[01:50:54,685][stream.hls][debug] Adding segment 7215 to queue
[01:50:54,685][stream.hls][debug] Adding segment 7216 to queue
[01:50:55,007][stream.hls][debug] Download of segment 7214 complete
[01:50:55,007][cli][info] Starting player: /usr/bin/vlc
[01:50:55,008][cli.output][debug] Opening subprocess: /usr/bin/vlc --input-title-format http://play.mrt.com.mk/live/47 -
[01:50:55,333][stream.hls][debug] Download of segment 7215 complete
[01:50:55,511][cli][debug] Writing stream to output
[01:50:55,628][stream.hls][debug] Download of segment 7216 complete
[01:51:00,687][stream.hls][debug] Reloading playlist
[01:51:00,880][stream.hls][debug] Adding segment 7217 to queue
[01:51:01,205][stream.hls][debug] Download of segment 7217 complete

For some reason, MRT1, MRT2 and another one that I can't read ask for Flash plugin. This plugin still manage to grab the stream but get rejected.

Here is the failing one

tr4sk@bluebox ...gbf1460c-py3.8.egg/streamlink/plugins % streamlink -l trace http://play.mrt.com.mk/live/42 best
[01:52:34,768][cli][debug] OS:         Linux-5.7.10-zen1-1-zen-x86_64-with-glibc2.2.5
[01:52:34,769][cli][debug] Python:     3.8.3
[01:52:34,769][cli][debug] Streamlink: 1.5.0+9.gbf1460c
[01:52:34,769][cli][debug] Requests(2.24.0), Socks(1.7.1), Websocket(0.57.0)
[01:52:34,769][cli][info] Found matching plugin mrtmk for URL http://play.mrt.com.mk/live/42
[01:52:34,847][plugin.mrtmk][debug] Found 1 stream URL
[01:52:34,913][utils.l10n][debug] Language code: fr_FR
error: Unable to open URL: http://vod-c57.interspace.com:80/channel_abr/42/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OC81LzIwMjAgMTE6NTI6MzQgUE0maGFzaF92YWx1ZT0zTG83MEI0QVRCSHo1cTNnaHh1TS93PT0mdmFsaWRtaW51dGVzPTMwJmlkPTVmMmI0NjQyYzZhNzg= (403 Client Error: Forbidden for url: http://vod-c57.interspace.com:80/channel_abr/42/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OC81LzIwMjAgMTE6NTI6MzQgUE0maGFzaF92YWx1ZT0zTG83MEI0QVRCSHo1cTNnaHh1TS93PT0mdmFsaWRtaW51dGVzPTMwJmlkPTVmMmI0NjQyYzZhNzg=)

@Tr4sK
Copy link
Contributor Author

Tr4sK commented Aug 6, 2020

fighting against robot

@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #3097 into master will decrease coverage by 0.01%.
The diff coverage is 53.57%.

@@            Coverage Diff             @@
##           master    #3097      +/-   ##
==========================================
- Coverage   52.80%   52.78%   -0.02%     
==========================================
  Files         244      245       +1     
  Lines       15559    15587      +28     
==========================================
+ Hits         8216     8228      +12     
- Misses       7343     7359      +16     

@back-to back-to merged commit 38197fa into streamlink:master Aug 23, 2020
resiproxy pushed a commit to resiproxy/streamlink that referenced this pull request Nov 5, 2020
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.

2 participants