Commit Graph

320 Commits

Author SHA1 Message Date
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
Alex Grant
c00a9c3597 Add support for m dot urls 2024-04-25 07:29:59 +02:00
Ivan Habunek
0f17d92a8c
Update changelog 2024-04-24 14:54:31 +02:00
Ivan Habunek
ee1e0ce853
Upgrade actions/setup-python to v5 2024-04-24 14:52:42 +02:00
Ivan Habunek
1c878bbca8
Update changelog 2024-04-24 14:51:08 +02:00
Ivan Habunek
941440de41
Upgrade actions/checkout to v4 2024-04-24 14:50:50 +02:00
Ivan Habunek
c0eae623a4
Test clips 2024-04-24 14:45:49 +02:00
Ivan Habunek
f4d0643b07
Fix flaky test 2024-04-24 14:41:48 +02:00
Ivan Habunek
ea4b714343
Test videos command 2024-04-24 14:39:17 +02:00
Ivan Habunek
f815934e15
Simplify and test get_game_ids 2024-04-24 14:39:12 +02:00
Ivan Habunek
5aa323e3e5
Log response content 2024-04-24 14:11:22 +02:00
Ivan Habunek
3d03658850
Add tests 2024-04-24 08:59:01 +02:00
Ivan Habunek
69b848d341
Respect --dry-run when downloading videos 2024-04-24 08:58:58 +02:00
Ivan Habunek
2422871d70
Add request logging 2024-04-24 08:43:45 +02:00
Ivan Habunek
44890b4101
Pass auth_token instead of headers 2024-04-24 08:43:00 +02:00
Ivan Habunek
9aa108acbf
Add type hints for post 2024-04-24 08:42:01 +02:00
Ivan Habunek
3fa8bcef73
Pass request as content instead of data
data works, but should be used for form data passed as a dict, while
content takes bytes or str
2024-04-24 08:41:19 +02:00