Commit Graph

31 Commits

Author SHA1 Message Date
Ivan Habunek
bf2a4558f4
Improve VOD joining logic
Instead of creating a file list, create a modified playlist which
references the downloaded files, and give this as input to ffmpeg. Since
ffmpeg handles M3U8 playlists, this means options such as
`EXT-X-BYTERANGE` are supported.

issue #35
2020-09-03 10:38:29 +02:00
Ivan Habunek
772faa5901
Log ffmpeg command and handle errors better 2020-09-03 10:38:28 +02:00
Ivan Habunek
4edf299780
Handle more gracefully when video/clip not found 2020-08-09 11:55:40 +02:00
Ivan Habunek
78295a492c
Improve parsing inputs for download command
* Fix overzealous regex which caused video patterns to be identified as
  clips by testing for videos before clips.
* Allow URLs with or without `www.`.
* Add tests which verify this actually works.

fixes #28
2020-08-09 11:45:39 +02:00
Ivan Habunek
8222df3670
Allow numbers in clip slugs
issue #24
2020-08-07 16:35:56 +02:00
Ivan Habunek
706e42d197
Make quality selectable for clip download 2020-08-07 16:23:08 +02:00
Ivan Habunek
3cfa05a3ee
Make quality selectable for video download 2020-08-07 16:23:00 +02:00
Ivan Habunek
15ca684286
Don't unpack options
This makes it more readable as option count increases.
2020-05-30 10:21:19 +02:00
Ivan Habunek
d22fd74357
Add filtering videos by game 2020-05-17 14:35:33 +02:00
Ivan Habunek
4241ab5d67
Make less important messages dim 2020-05-17 14:32:37 +02:00
Ivan Habunek
ea01ef3d99
Add paging to videos command 2020-05-17 13:41:34 +02:00
Ivan Habunek
2118cd8825
Use graphql to fetch channel videos
The old helix endpoint returns HTTP 401

fixes #18
2020-05-17 11:57:16 +02:00
Ivan Habunek
e3dde90870
Specify broadcast type when listing videos
issue #13
2020-04-25 20:04:21 +02:00
Ivan Habunek
c628757ac0
Fix error message 2020-04-12 11:44:01 +02:00
Ivan Habunek
07f3a2fa48
Implement downloading clips
issue #15
2020-04-11 16:07:17 +02:00
Ivan Habunek
042d35ba1e
Override local file names for downloaded vods
Sometimes the playlists contain more than just file names which can
break the ffmpeg join, so just name downloaded vods sequentially.

fixes #12
2020-04-11 13:20:59 +02:00
Ivan Habunek
ebc754072d
Reorganise code 2020-04-11 13:08:42 +02:00
Ivan Habunek
e384f26444
Save playlists to temp dir for debugging 2019-08-23 13:08:35 +02:00
Ivan Habunek
000754af8c
Use m3u8 lib to parse playlists 2019-08-23 12:36:05 +02:00
Ivan Habunek
6813bb51b4
Add option not to delete downloaded VODs 2019-08-23 10:16:49 +02:00
Ivan Habunek
34b0592cf3
Fix usage of deprecated v3 API
related #8
2019-08-23 09:03:33 +02:00
Ivan Habunek
f807d4324b
Style the url in video list 2019-08-13 12:29:42 +02:00
Ivan Habunek
68a8b70948
Add offset and sort options to videos command
fixes #7
2019-08-13 12:25:25 +02:00
Ivan Habunek
932b7750b9
Print video URL 2019-08-12 15:21:57 +02:00
Ivan Habunek
e9bd706194
Allow limiting download by start and end time 2019-06-06 11:06:33 +02:00
Ivan Habunek
e4e5a2be7e
Use print_out for output 2019-04-30 13:34:54 +02:00
Ivan Habunek
2a382087dd
Better parsing of twitch urls, strip query 2019-02-20 16:04:23 +01:00
Ivan Habunek
7d152f6424
Allow using video URL as arg to download command 2019-02-09 11:52:15 +01:00
Ivan Habunek
da60560b63
Improve download process
* allow resuming
* retry downloads
* add timeouts
2019-01-29 14:46:24 +01:00
Ivan Habunek
6dd65e7cbc
Extended output when downloading 2018-01-26 21:50:55 +01:00
Ivan Habunek
cc118627a0
Initial commit 2018-01-25 11:09:20 +01:00