Twitch.tv playlist parser Original

VLC Playlist Parsers twitch

Source (link to git-repo or to original if based on someone elses unmodified work): https://gist.github.com/stefansundin/c200324149bb00001fef5a252a120fc2

5
7 .8
Description:

Twitch.tv playlist parser

Note that VLC 3.0 includes a Twitch playlist parser by default, but this one is far superior (see the list of features below).

Install:
1. I have included a client_id in this script. If it gets blocked in the future, you can try to get a new one (e.g. by finding out what the Twitch website uses) and update the file.
2. Put the file in the lua/playlist/ directory:
- On Windows: %APPDATA%\vlc\lua\playlist
- On Mac: $HOME/Library/Application Support/org.videolan.vlc/lua/playlist/
- On Linux: ~/.local/share/vlc/lua/playlist/
- On Linux (snap package): ~/snap/vlc/current/.local/share/vlc/lua/playlist/
To install the addon for all users, put the file here instead:
- On Windows: C:\Program Files\VideoLAN\VLC\lua\playlist
- On Mac: /Applications/VLC.app/Contents/MacOS/share/lua/playlist/
- On Linux: /usr/lib/vlc/lua/playlist/
- On Linux (snap package): /snap/vlc/current/usr/lib/vlc/lua/playlist/
3. Open a twitch.tv url using "Open Network Stream..."

On Linux, you can download and install with the following commands:
mkdir -p ~/.local/share/vlc/lua/playlist/
curl -o ~/.local/share/vlc/lua/playlist/twitch.lua https://gist.githubusercontent.com/stefansundin/c200324149bb00001fef5a252a120fc2/raw/twitch.lua

On Mac, you can download and install with the following commands:
mkdir -p "$HOME/Library/Application Support/org.videolan.vlc/lua/playlist/"
curl -o "$HOME/Library/Application Support/org.videolan.vlc/lua/playlist/twitch.lua" https://gist.githubusercontent.com/stefansundin/c200324149bb00001fef5a252a120fc2/raw/twitch.lua

Features:
- Load up a channel and watch live, e.g.: https://www.twitch.tv/speedgaming
- Load an archived video, e.g.: https://www.twitch.tv/videos/113837699
- Load a collection, e.g.: https://www.twitch.tv/videos/112628247?collection=k2Ou9QRbAhUMPw
- Load a game and get the top streams, e.g.: https://www.twitch.tv/directory/game/Minecraft
- Load a game's archived videos, e.g.: https://www.twitch.tv/directory/game/Minecraft/videos/all
- Load a community and get the top streams, e.g.: https://www.twitch.tv/communities/speedrunning
- Load a channel's most recent videos, e.g.: https://www.twitch.tv/speedgaming/videos/all
- Load a channel's collections, e.g.: https://www.twitch.tv/speedgaming/videos?filter=collections
- Load the homepage and get a list of featured streams: https://www.twitch.tv/
- Load the next page.

They changed the Clips API, so this functionality is currently broken:
- Load Twitch Clips, e.g.: https://clips.twitch.tv/AmazonianKnottyLapwingSwiftRage
- Load a channel's clips, e.g.: https://www.twitch.tv/speedgaming/videos?filter=clips
- Load a game's clips, e.g.: https://www.twitch.tv/directory/game/Minecraft/clips

If you are experiencing issues (e.g. seeking), make sure that you are using VLC 3.0. You can also try nightlies: https://nightlies.videolan.org/

In order to load VODs with a timestamp in the url (e.g. ?t=1h10m10s), then you must also install the Twitch.tv extension from here: https://gist.githubusercontent.com/stefansundin/c200324149bb00001fef5a252a120fc2/raw/twitch-extension.lua
Note that this extension must be activated in the VLC menu each time VLC is started (if you know of a workaround for this, please let me know in the comments below).

If you like this addon, please rate in the top right corner of this page. If you have any issues, please report them in the comments below, or in the git repository. Thank you!

Enjoy!!
Last changelog:

v0.2.3 2 months ago

Fix loading the list of a channel's old videos. Remove support for clips as it is broken and not easy to fix.

joren0001

2 months ago

Parser does not load list of past/all broadcasts
NEED FIX!

https://www.twitch.tv/???/videos?filter=archives
https://www.twitch.tv/???/videos?filter=all

Report

C

stefansundin

2 months ago

This is now fixed in v0.2.3. Enjoy!

Report

joren0001

2 months ago

THANKS!<3

Report

C

stefansundin

2 months ago

Hello. I wasn't notified of your comments for some reason. Please calm down and hopefully I will get to it in the next few days. Thank you.

Report

joren0001

2 months ago

don't work pages like: videos?filter=archives&sort=time

Report

joren0001

2 months ago

Please fix that! :(

Report

mantra

1 year ago

Constantly advertising since today?

Report

C

stefansundin

1 year ago

Note that Twitch API v3 is shutting down very soon. I think everything in this playlist parser will continue to work (if you have the latest version), but in case you notice something broken, please let me know.

Report

joren0001

2 months ago

don't work pages like: videos?filter=archives&sort=time

Report

avers

1 year ago

I don't know if it is new API or your parser or just my stupidity, but there is no option in the playlist for 1080p quality, only 720p.

Report

C

stefansundin

1 year ago

Not your fault.. I just uploaded a new version to fix it. I also added a stream for audio only. Thanks for reporting!

By the way.. is it just me, or are there ads on these stream now? I don't think there were any before.. :(

Report

avers

1 year ago

I have encountered another issue. After some minutes it completely stops loading VOD. Even though i have enough speed to watch it without buffering.

Report

avers

1 year ago

interestingly enough it only happens if i change the playback speed of the video.

Report

C

stefansundin

1 year ago

Interesting. I haven't really tried speeding up the video, but in my quick test right now, I am not encountering any issues...

Can you check if you are running the latest version of VLC?

Report

avers

1 year ago

Not the nightlies but yes.

Everything is working fine right until the point where it doesnt.

When it happens there is no activity in task manager. Like it stops even trying to keep up.

Even if my internet speed is not enough for the playback speed I used it probably shouldn't just give up, should it? (:

Report

C

stefansundin

1 year ago

Hmm.. I don't think the nightlies are necessary anymore. Before 3.0 was released, there were a lot of differences. I should probably remove it from the description since it shouldn't be that relevant anymore.

What happens if you try using a lesser quality? That should rule out the internet speed from being a problem.

Sorry, wish I could help more.

Report

phigi

1 year ago

How i can change quality? :-/

Report

C

stefansundin

1 year ago

You need to change to the playlist view and then pick the quality you want there. Alternatively, click the Next button to change to the next playlist item, which will be lower quality.

Report

9

rudiharianto

1 year ago

9 +mantap mamen

Report

9

barsukdaetpizdi

2 years ago

9 Good addon, thx

Report

bernicestockstill

2 years ago

Very interesting

Report

mp176

3 years ago

Awesome. Thanks for this addon. I so wanted this one. Thanks again!

Report

9

lib2k

3 years ago

Works great!
Is it possible to parse a link with start time variable?
If I use https://www.twitch.tv/videos/xxxxxxx?t=02h10m15s it still streams from the very beginning instead of the specified time.
Follow up question: is it possible to display the proper time on the seekbar in VLC or will it always stay at 0=:00 when streaming?

Thanks!

Report

C

stefansundin

3 years ago

It seems like it should be possible, by setting a playlist option called "start-time", but I just tried it and it doesn't seem to work. I think VLC doesn't remember it when it goes out to read the m3u8 playlist file. I can't get it to work, sorry.
If you try one of the recent nightlies for VLC 3.0, you can actually see the time remaining. Seeking is still not that great though. I tried version "vlc-3.0.0-20170426-0444-git" on Mac, and I could see the time there. The nightlies are a bit in flux, some versions work very badly while some work better. You might have to test around a bit. Go to nightlies.videolan.org to find a build.
Thanks for the comment!

Report

9

lib2k

3 years ago

I tried using the start-time option but had the same result, it would play back from the start.
Streaming an 8h long video and trying to guess where the 6:15 mark is or so, on top of the caching each time you switch the position on the seek bar, is really tedious. At least with the time being displayed it is a huge improvement over vanilla builds. I will definitely give nightlies a try. Thank you!

Report

v0.2.3 2 months ago

Fix loading the list of a channel's old videos. Remove support for clips as it is broken and not easy to fix.

v0.2.2 1 year ago

Fix 1080p on archived videos. Add audio only stream.

v0.2.0 2 years ago

Support new URLs. Most things seem to be working again. Please write a comment if something is still broken.

v0.1.3 2 years ago

Minor fix that prevented me from running this on Ubuntu 18.04 (snap package).

v0.1.2 2 years ago

Support for /directory/game/[name]/videos/[type].

v0.1.1 2 years ago

Support for /[channel]/clips, /directory/game/[name]/clips. Add ability to load the next page.

v0.1.0 2 years ago

Rewrote almost the whole thing. Support for /communities/[name], /directory/game/[name], /[channel]/videos/, collections.

v0.0.6 2 years ago

Support new go.twitch.tv urls (beta site).

v0.0.5 3 years ago

Fix a couple of minor issues.

v0.0.4 3 years ago

Support new twitch.tv/videos/ urls.

v0.0.3 3 years ago

Support for Twitch Clips.

v0.0.2 3 years ago

You can now pick the stream quality you want. The twitch URL will expand to multiple playlist items.

12345678910
9
product-maker rudiharianto Feb 02 2019 9 excellent
+mantap mamen
product-maker barsukdaetpizdi May 20 2018 9 excellent
Good addon, thx
product-maker lib2k Jun 13 2017 9 excellent
product-maker kuntdragomir Jun 03 2017 9 excellent
product-maker reneemostorino20 May 27 2017 9 excellent
product-maker midas02 Apr 09 2017 9 excellent
product-maker maffle Apr 07 2017 9 excellent
product-maker y32b4 Feb 07 2017 9 excellent
product-maker Harnek Jan 13 2017 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
joren0001
Jun 24 2020
hpapa
Sep 06 2019
anisotropy
Jun 08 2019
soerenjeworrek
Sep 09 2018
barsukdaetpizdi
May 20 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
GPLv3
version
v0.2.3
updated Jul 19 2020
added Jan 02 2017
downloads 24h
4
mediaviews 24h 0
pageviews 24h 55
System Tags addon gplv3