TheDrHax / Twitch-Utils

Record, concatenate and synchronize Twitch live streams and remove background music

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature request] command to make a clip

Lyfhael opened this issue · comments

Sometime channels disable clips. I thought it would be interesting while you record a stream, to have a command to make a clip.

Also, a bug if stream is live and I start recording, but that there's no VOD, program won't start recording.

➜  ~ twitch_utils record --oauth=add_oauth pommed0r12345 -j 2
Traceback (most recent call last):
  File "/usr/local/bin/twitch_utils", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/twitch_utils/__init__.py", line 29, in main
    record_main(argv)
  File "/usr/local/lib/python3.7/dist-packages/twitch_utils/record.py", line 292, in main
    v = api.find_vod(channel)
  File "/usr/local/lib/python3.7/dist-packages/twitch_utils/twitch.py", line 46, in find_vod
    return stream['archiveVideo']['id']
TypeError: 'NoneType' object is not subscriptable