Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plugins.tiktok: new plugin#6073

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
v2wy:master
Jul 8, 2024
Merged

plugins.tiktok: new plugin#6073
bastimeyer merged 1 commit into
streamlink:masterfrom
v2wy:master

Conversation

@v2wy

@v2wy v2wy commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

Closes #6074

@v2wy

v2wy commented Jul 8, 2024

Copy link
Copy Markdown
Contributor Author

#6074

@bastimeyer

bastimeyer commented Jul 8, 2024

Copy link
Copy Markdown
Member

Thanks for the PR.
I force pushed onto your PR branch again with some fixes and improvements.

Same concerns with HTTPStreams as with the douyin plugin, but since their HLS multivariant playlists only include a single media playlist, it's better to use HTTPStreams.

Plugin should be fine otherwise, but please have another look yourself and test a couple of different streams, just in case. Thanks.

$ ./script/test-plugin-urls.py tiktok -m -r CHANNEL twitch_dota2el
:: https://www.tiktok.com/@twitch_dota2el
::  ao, ld, origin, sd, hd, hd_60, uhd_60, worst, best
::   {'id': '7389219855439874849', 'author': 'EL', 'category': None, 'title': 'Road to 7K Immortal Rank #Dota2'}
:: https://www.tiktok.com/@twitch_dota2el/live
::  ao, ld, origin, sd, hd, hd_60, uhd_60, worst, best
::   {'id': '7389219855439874849', 'author': 'EL', 'category': None, 'title': 'Road to 7K Immortal Rank #Dota2'}
$ streamlink -l debug https://www.tiktok.com/@twitch_dota2el best
[cli][debug] OS:         Linux-6.9.8-1-git-x86_64-with-glibc2.39
[cli][debug] Python:     3.12.4
[cli][debug] OpenSSL:    OpenSSL 3.3.1 4 Jun 2024
[cli][debug] Streamlink: 6.8.2+7.g8f9736f8
[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.2
[cli][debug]  urllib3: 2.2.2
[cli][debug]  websocket-client: 1.8.0
[cli][debug] Arguments:
[cli][debug]  url=https://www.tiktok.com/@twitch_dota2el
[cli][debug]  stream=['best']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=/usr/bin/mpv
[cli][info] Found matching plugin tiktok for URL https://www.tiktok.com/@twitch_dota2el
[cli][info] Available streams: ao, ld (worst), origin, sd, hd, hd_60, uhd_60 (best)
[cli][info] Opening stream: uhd_60 (http)
[cli][info] Starting player: /usr/bin/mpv
[cli][debug] Pre-buffering 8192 bytes
[cli.output][debug] Opening subprocess: ['/usr/bin/mpv', '--force-media-title=https://www.tiktok.com/@twitch_dota2el', '-']
[cli][debug] Writing stream to output
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...
$ streamlink https://www.tiktok.com/@azonlug9516
[cli][info] Found matching plugin tiktok for URL https://www.tiktok.com/@azonlug9516
[plugins.tiktok][info] The channel is currently offline
error: No playable streams found on this URL: https://www.tiktok.com/@azonlug9516
$ streamlink https://www.tiktok.com/@dtcfuygvhibjukntcfuygvhjbknl
[cli][info] Found matching plugin tiktok for URL https://www.tiktok.com/@dtcfuygvhibjukntcfuygvhjbknl
error: No playable streams found on this URL: https://www.tiktok.com/@dtcfuygvhibjukntcfuygvhjbknl

@bastimeyer bastimeyer merged commit b80eb68 into streamlink:master Jul 8, 2024
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.

tiktok support

2 participants