Commit Graph

336 Commits

Author SHA1 Message Date
Ivan Habunek
da51ffc31f
Use a queue+workers instead of semaphore 2024-08-30 15:35:12 +02:00
Ivan Habunek
8c68132ddb
Trim line when printing table, simplify code 2024-08-30 13:39:41 +02:00
Ivan Habunek
75423c7671
Show playlists in a table 2024-08-30 13:34:19 +02:00
Ivan Habunek
7dae0e23cf
Show description with some spacing
Looks nicer
2024-08-30 13:34:08 +02:00
Ivan Habunek
dc99ee51bc
Improve logging a bit when downloading 2024-08-30 11:58:15 +02:00
Ivan Habunek
2c9420c43d
Update changelog 2024-08-30 11:47:14 +02:00
Ivan Habunek
4a86cb16c8
Use relative paths in generated m3u8 playlist
Since we're using relative paths for initi segments, and paths are
relative to the path where the playlist is located, this seems sensible.
Allows the folder to be moved, and the playlist will still work.
2024-08-30 11:44:07 +02:00
Ivan Habunek
cfefae1e69
Fix query to fetch HD qualities 2024-08-30 11:43:48 +02:00
Ivan Habunek
ac7cdba28e
Download init segments
These seem to occur in hd quality playlists like 1440p.
2024-08-30 11:42:54 +02:00
Ivan Habunek
2feef136ca
Ignore video files 2024-08-30 11:42:21 +02:00
Ivan Habunek
d85aeade86
Update changelog 2024-08-30 08:25:52 +02:00
Ivan Habunek
4db4285d9a
Handle videoQualities being null 2024-08-30 08:06:31 +02:00
Ivan Habunek
707b2da934
Improve types 2024-08-30 08:05:16 +02:00
Ivan Habunek
2846925c91
Allow newer versions of m3u8 2024-08-30 08:05:03 +02:00
Ivan Habunek
8f5d7f022f
Reinstate "VODs" in progress output 2024-08-30 07:59:51 +02:00
Ivan Habunek
ff4a514b8a
Handle video URLs containing account name
fixes #162
2024-08-30 07:55:58 +02:00
Ivan Habunek
f57612ffcc
Refactor download_all to work when count is unknown 2024-08-30 07:37:50 +02:00
Ivan Habunek
5be97b9e13
Fix tests 2024-08-28 15:21:22 +02:00
Ivan Habunek
b6e7f8b36c
Make Progress work when file count is not known 2024-08-28 15:18:43 +02:00
Ivan Habunek
42f7a9a1a5
Fix a crash when downloading clips 2024-08-28 14:21:22 +02:00
Ivan Habunek
789d3d1939
Add --target-dir option to clips command 2024-08-28 13:15:01 +02:00
Ivan Habunek
07efac1ae7
Add --verbose flag for verbose logging
Don't log HTTP payloads unless --verbose flag is given. Always logging
HTTP payloads tends to make the log unreadable.
2024-08-28 12:58:36 +02:00
Ivan Habunek
a808b7d8ec
Don't check if file exists in download_file
This is done outside the function.
2024-08-28 12:39:56 +02:00
Ivan Habunek
936c6a9da1
Don't stop downloading if one download fails 2024-08-28 12:33:05 +02:00
Ivan Habunek
7184feacee
Move download_file to http 2024-08-28 11:07:25 +02:00
Ivan Habunek
5679e66270
Improve naming 2024-08-28 11:02:12 +02:00
Ivan Habunek
1658aba124
Embrace pathlib 2024-08-28 10:59:23 +02:00
Ivan Habunek
29d3f7fec2
Extract file naming 2024-08-28 10:32:40 +02:00
Ivan Habunek
91e0447681
Remove unnecessary braces 2024-08-28 09:53:06 +02:00
Ivan Habunek
f9e60082ba
Improve downloading logic
Follow redirects to avoid saving an intermediate response, and raise an
error on invalid status to avoid saving an error response.
2024-08-28 09:52:15 +02:00
Ivan Habunek
141ecb7f29
Move entities to entites.py 2024-08-24 20:23:34 +02:00
Ivan Habunek
52b96aab15
Simplify persisted queries 2024-08-24 20:08:01 +02:00
Ivan Habunek
1bdf6a2c02
Remove unused function 2024-08-24 20:05:32 +02:00
Ivan Habunek
38636e2b21
Use ansi escape code to clear line 2024-05-31 12:57:51 +02:00
Ivan Habunek
3fe1faa18e
Update changelog 2024-05-19 09:11:45 +02:00
KryptonicDragon
a99a472ad3 add quotes to gql query 2024-05-19 09:09:02 +02:00
Ivan Habunek
47d62bc471
Improve types 2024-04-29 09:08:19 +02:00
Ivan Habunek
de95384e6b
Fix tests 2024-04-28 10:16:33 +02:00
Ivan Habunek
aac450a5bc
Calculate progress only when printing progress 2024-04-28 10:13:47 +02:00
Ivan Habunek
9549679679
Make Progress not a dataclass 2024-04-28 10:09:53 +02:00
Ivan Habunek
35e974bb45
Upgrade m3u8 dependency 2024-04-28 09:30:24 +02:00
Ivan Habunek
b8e3809810
Print a note if no ids given 2024-04-28 08:02:01 +02:00
Ivan Habunek
cf580fde09
Update changelog 2024-04-27 20:23:35 +02:00
Ivan Habunek
68c9e644a8
Sort playlists 2024-04-27 20:22:53 +02:00
Ivan Habunek
ace4427caa
Print playlists in a table 2024-04-27 20:22:53 +02:00
Ivan Habunek
97f48f7108
Improve playlist parsing
Better support for "enhanced broadcast" streams

issue #154
2024-04-27 20:22:53 +02:00
Ivan Habunek
f9e553c61f
Support styling in print_table 2024-04-27 20:22:53 +02:00
Ivan Habunek
4fac6c11c5
Delete generated website when cleaning 2024-04-27 20:22:52 +02:00
Ivan Habunek
125bc693f8
Update changelog 2024-04-25 07:33:05 +02:00
Ivan Habunek
8a7fdad22f
Test m patterns 2024-04-25 07:31:52 +02:00