Skip to content

plugins.dlive: rewrite and fix VODs #5623

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

Conversation

bastimeyer
Copy link
Member

Follow-up of #5622

matchers

$ ./script/test-plugin-urls.py dlive
:: Finding streams for URL: https://dlive.tv/cryptokaprika
:: Found streams: src, worst, best
:: Finding streams for URL: https://dlive.tv/cryptokaprika#hash
:: Found streams: src, worst, best
:: Finding streams for URL: https://dlive.tv/cryptokaprika?query
:: Found streams: src, worst, best
:: Finding streams for URL: https://dlive.tv/p/countrycafebgky+oLCFcknSR
:: Found streams: src, worst, best
:: Finding streams for URL: https://dlive.tv/p/countrycafebgky+oLCFcknSR#hash
:: Found streams: src, worst, best
:: Finding streams for URL: https://dlive.tv/p/countrycafebgky+oLCFcknSR?query
:: Found streams: src, worst, best

live (correct HLS stream segments with Referer header)

$ streamlink -l debug https://dlive.tv/cryptokaprika best
[cli][debug] OS:         Linux-6.5.6-1-git-x86_64-with-glibc2.38
[cli][debug] Python:     3.12.0
[cli][debug] OpenSSL:    OpenSSL 3.1.3 19 Sep 2023
[cli][debug] Streamlink: 6.2.1+38.gbc25d859
[cli][debug] Dependencies:
[cli][debug]  certifi: 2023.7.22
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 4.9.3
[cli][debug]  pycountry: 22.3.5
[cli][debug]  pycryptodome: 3.19.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.31.0
[cli][debug]  trio: 0.22.2
[cli][debug]  trio-websocket: 0.11.1
[cli][debug]  typing-extensions: 4.8.0
[cli][debug]  urllib3: 2.0.6
[cli][debug]  websocket-client: 1.6.4
[cli][debug] Arguments:
[cli][debug]  url=https://dlive.tv/cryptokaprika
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][info] Found matching plugin dlive for URL https://dlive.tv/cryptokaprika
[plugins.dlive][debug] Getting live HLS streams for cryptokaprika
[utils.l10n][debug] Language code: en_US
[cli][info] Available streams: src (worst, best)
[cli][info] Opening stream: src (hls)
[cli][info] Starting player: mpv
[stream.hls][debug] Reloading playlist
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] First Sequence: 5254; Last Sequence: 5259
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 5257; End Sequence: None
[stream.hls][debug] Adding segment 5257 to queue
[stream.hls][debug] Adding segment 5258 to queue
[stream.hls][debug] Adding segment 5259 to queue
[stream.hls][debug] Writing segment 5257 to output
[stream.hls][debug] Segment 5257 complete
[cli.output][debug] Opening subprocess: ['/home/basti/.local/bin/mpv', '--force-media-title=https://dlive.tv/cryptokaprika', '-']
[stream.hls][debug] Writing segment 5258 to output
[stream.hls][debug] Segment 5258 complete
[cli][debug] Writing stream to output
[stream.hls][debug] Writing segment 5259 to output
[stream.hls][debug] Segment 5259 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 5260 to queue
[stream.hls][debug] Adding segment 5261 to queue
[stream.hls][debug] Writing segment 5260 to output
[stream.hls][debug] Segment 5260 complete
[stream.hls][debug] Writing segment 5261 to output
[stream.hls][debug] Segment 5261 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 5262 to queue
[stream.hls][debug] Writing segment 5262 to output
[stream.hls][debug] Segment 5262 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...

vod

$ streamlink -l debug https://dlive.tv/p/countrycafebgky+oLCFcknSR best
[cli][debug] OS:         Linux-6.5.6-1-git-x86_64-with-glibc2.38
[cli][debug] Python:     3.12.0
[cli][debug] OpenSSL:    OpenSSL 3.1.3 19 Sep 2023
[cli][debug] Streamlink: 6.2.1+38.gbc25d859
[cli][debug] Dependencies:
[cli][debug]  certifi: 2023.7.22
[cli][debug]  isodate: 0.6.1
[cli][debug]  lxml: 4.9.3
[cli][debug]  pycountry: 22.3.5
[cli][debug]  pycryptodome: 3.19.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.31.0
[cli][debug]  trio: 0.22.2
[cli][debug]  trio-websocket: 0.11.1
[cli][debug]  typing-extensions: 4.8.0
[cli][debug]  urllib3: 2.0.6
[cli][debug]  websocket-client: 1.6.4
[cli][debug] Arguments:
[cli][debug]  url=https://dlive.tv/p/countrycafebgky+oLCFcknSR
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][info] Found matching plugin dlive for URL https://dlive.tv/p/countrycafebgky+oLCFcknSR
[plugins.dlive][debug] Getting video HLS streams for countrycafebgky+oLCFcknSR
[utils.l10n][debug] Language code: en_US
[cli][info] Available streams: src (worst, best)
[cli][info] Opening stream: src (hls)
[cli][info] Starting player: mpv
[stream.hls][debug] Reloading playlist
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] First Sequence: 0; Last Sequence: 1492
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1492
[stream.hls][debug] Adding segment 0 to queue
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
[stream.hls][debug] Adding segment 4 to queue
[stream.hls][debug] Adding segment 5 to queue
[stream.hls][debug] Adding segment 6 to queue
[stream.hls][debug] Adding segment 7 to queue
[stream.hls][debug] Adding segment 8 to queue
[stream.hls][debug] Adding segment 9 to queue
[stream.hls][debug] Adding segment 10 to queue
[stream.hls][debug] Adding segment 11 to queue
[stream.hls][debug] Adding segment 12 to queue
[stream.hls][debug] Adding segment 13 to queue
[stream.hls][debug] Adding segment 14 to queue
[stream.hls][debug] Adding segment 15 to queue
[stream.hls][debug] Adding segment 16 to queue
[stream.hls][debug] Adding segment 17 to queue
[stream.hls][debug] Adding segment 18 to queue
[stream.hls][debug] Adding segment 19 to queue
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] Writing segment 0 to output
[stream.hls][debug] Segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[cli.output][debug] Opening subprocess: ['/home/basti/.local/bin/mpv', '--force-media-title=https://dlive.tv/p/countrycafebgky+oLCFcknSR', '-']
[stream.hls][debug] Writing segment 1 to output
[stream.hls][debug] Segment 1 complete
[stream.hls][debug] Adding segment 23 to queue
[stream.hls][debug] Writing segment 2 to output
[cli][debug] Writing stream to output
[stream.hls][debug] Segment 2 complete
[stream.hls][debug] Writing segment 3 to output
[stream.hls][debug] Adding segment 24 to queue
[stream.hls][debug] Segment 3 complete
[stream.hls][debug] Writing segment 4 to output
[stream.hls][debug] Adding segment 25 to queue
[stream.hls][debug] Segment 4 complete
[stream.hls][debug] Writing segment 5 to output
[stream.hls][debug] Adding segment 26 to queue
[stream.hls][debug] Segment 5 complete
[stream.hls][debug] Writing segment 6 to output
[stream.hls][debug] Adding segment 27 to queue
[stream.hls][debug] Segment 6 complete
[stream.hls][debug] Adding segment 28 to queue
[stream.hls][debug] Writing segment 7 to output
[stream.hls][debug] Segment 7 complete
[stream.hls][debug] Adding segment 29 to queue
[stream.hls][debug] Writing segment 8 to output
[stream.hls][debug] Segment 8 complete
[stream.hls][debug] Adding segment 30 to queue
[stream.hls][debug] Writing segment 9 to output
[stream.hls][debug] Segment 9 complete
[stream.hls][debug] Adding segment 31 to queue
[stream.hls][debug] Writing segment 10 to output
[stream.hls][debug] Segment 10 complete
[stream.hls][debug] Adding segment 32 to queue
[stream.hls][debug] Writing segment 11 to output
[stream.hls][debug] Segment 11 complete
[cli][info] Player closed
[stream.hls][debug] Adding segment 33 to queue
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.hls][debug] Writing segment 12 to output
[stream.hls][debug] Segment 12 complete
[cli][info] Stream ended
[cli][info] Closing currently open stream...

metadata

streamlink -j https://dlive.tv/p/countrycafebgky+oLCFcknSR | jq .metadata
{
  "id": "countrycafebgky+oLCFcknSR",
  "author": "countrycafebgky",
  "category": "IRL",
  "title": "Live Country Cafe Restaurant"
}

@bastimeyer bastimeyer added the plugin issue A Plugin does not work correctly label Oct 18, 2023
@bastimeyer bastimeyer merged commit 6f7b770 into streamlink:master Oct 18, 2023
@bastimeyer bastimeyer deleted the plugins/dlive/rewrite-fix-vods branch October 18, 2023 15:59
@bastimeyer bastimeyer mentioned this pull request Oct 19, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin issue A Plugin does not work correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant