Git Product home page Git Product logo

Comments (10)

offish avatar offish commented on August 23, 2024 1

You've ran into this issue because Twitch recently changed the Helix API endpoint to require OAuth authentication. I might fix this in the future.
https://discuss.dev.twitch.tv/t/requiring-oauth-for-helix-twitch-api-endpoints/23916

from twitchtube.

epsilon573 avatar epsilon573 commented on August 23, 2024 1

Here : https://github.com/epsilon573/myTwitchBot
This doesn't automatically upload to Youtube though.

from twitchtube.

offish avatar offish commented on August 23, 2024

I will take a look at this and see if I can find the issue.

from twitchtube.

lxgameshow avatar lxgameshow commented on August 23, 2024

I got it, fix this please ;) I will be waiting. P.S i am new in programming, so i cant help you, but your script is AMAZING! Keep going =)

from twitchtube.

epsilon573 avatar epsilon573 commented on August 23, 2024

Ok , I have fixed it.

Replace thumb_url = clip_info['data'][0]['thumbnail_url'] with thumb_url = clip_info['thumbnails']['medium']

You may also need to replace a few more things. Just request a clip JSON file from twitch and change accordingly.
Also, I am using an authentication token, Not sure if you need it too.

from twitchtube.

lxgameshow avatar lxgameshow commented on August 23, 2024

Ok , I have fixed it.

Replace thumb_url = clip_info['data'][0]['thumbnail_url'] with thumb_url = clip_info['thumbnails']['medium']

You may also need to replace a few more things. Just request a clip JSON file from twitch and change accordingly.
Also, I am using an authentication token, Not sure if you need it too.

Fixed, sends me error key

twitchtube | 01:13:05 - info: Starting to make a video for Rust Traceback (most recent call last): File "C:\twitch\twitchtube-master2\main.py", line 29, in <module> names = download_clips(clips, VIDEO_LENGTH, path) File "C:\twitch\twitchtube-master2\dist\clips.py", line 97, in download_clips download_clip(data[clip]["url"], path) File "C:\twitch\twitchtube-master2\dist\clips.py", line 36, in download_clip mp4_url, clip_title = get_clip_data(slug) File "C:\twitch\twitchtube-master2\dist\clips.py", line 14, in get_clip_data thumb_url = clip_info['thumbnails']['medium'] KeyError: 'thumbnails'

from twitchtube.

epsilon573 avatar epsilon573 commented on August 23, 2024

I recommend using python-twitch client and writing your own script.

from twitchtube.

lxgameshow avatar lxgameshow commented on August 23, 2024

I recommend using python-twitch client and writing your own script.

I am writting on another language script, but its TOO difficult. I would like to someone fixed this script, because i just dont know python language. I wasted 3 days to fix script and read python forums and manuals, but with no results.

from twitchtube.

lxgameshow avatar lxgameshow commented on August 23, 2024

Here : https://github.com/epsilon573/myTwitchBot
This doesn't automatically upload to Youtube though.

Thanks a lot! But i have a problem. Thats says to me (i only set Client Id and Oauth)
Upd. Set duration videos in end of file, no results
Upd2 - I fixed your bug, still sends me "An Unexpected Match Score!"
Can you help me with answer? Where i need to search code to upload videos on Youtube?
D:\IDM_DOWNLOADS\myTwitchBot-master>C:\python383\python.exe D:\IDM_DOWNLOADS\myT witchBot-master\main.py An Unexpected Match Score! ...100% Video Downloaded Traceback (most recent call last): File "D:\IDM_DOWNLOADS\myTwitchBot-master\main.py", line 163, in <module> download_clips(data, "--required-video-length--" ) File "D:\IDM_DOWNLOADS\myTwitchBot-master\main.py", line 137, in download_clip s length -= data[clip]["duration"] TypeError: unsupported operand type(s) for -=: 'str' and 'float'

from twitchtube.

epsilon573 avatar epsilon573 commented on August 23, 2024

Just search on github, I think you will find plenty.

from twitchtube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.