Next make sure you’ve got the source downloaded and unzipped as a folder
After that, open up your terminal and type in cargo new chat_reader This will create a folder into your currently directory (usually $HOME) with some a few files.
Next, copy the Cargo.toml and Cargo.lock files I have provided and place them in the chat_reader directory that was just created.
After that copy everything from my src folder into chat_reader/src
You may see a message stating that you are overwriting files, just proceed, it’s expected.
After you’re done, run cargo build --release inside the chat_reader folder and it will build a binary stored inside target/release called chat_reader You can use that and move it to some other folder if you’d like. Additionally, you can run the program directly with cargo build --release
The instructions may be a little daunting if you don’t regularly do this, so lemme know if there’s anything to make clear.
I’ve already embedded a cookie into it that should bypass the age limits. It might’ve expired or there may be a bug. Could you pm me the vod or blog that’s causing problems?
Depending on when I get back to my house or I figure out how to make windows builds come out of a Linux host, it can happen by atleast Saturday. However, I would recommend using WSL if you’re on windows as I primarily develop for Linux because it’s much easier.
Replit’s runtime uses a very old version of glibc. The previous build I put on replit was statically linked with MUSL and doesn’t require glibc at all (only depending on the kernel syscalls). For now, I have updated the src folder where you will be able to build chat_reader on your own computer.
I don’t often try to make releases with MUSL because of many issues I face when using crates that interact with C or other languages. The binaries will also be much larger because of static linking
Hmm, I don’t think that id is for a vod, make sure the URL has the vod subdomain. Currently, I’m working on getting generic players working for afreecatv. For example: this age restricted prh video will work now- https://vod.afreecatv.com/player/90995076
Okay, some stuff to clear up: I have made a few changes to the interface in order to reuse functions and make features much more cohesive.
The new syntax (for twitch is) chat_reader --filter "burp|belch" twitch channel somename --clips --vods
Which will search through the clips and vods of a channel and will filter accordingly. You can remove either flag to match your needs.
For afreecatv: chat_reader --filter "트림" afreecatv blog 91240657
Also for Windows and other platforms, you do not need any build tools to run (unless you are compiling from src). You just need the binary/exe.
Mistake on my part, I was not passing the bypass cookie when getting initial page of the video, which caused chat_reader to get redirected to the login and not the actual video
All Afreecatv vods are working including the age restricted ones. Rebuilding with fixes… Updates are live