Commit Graph

253 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
b8e3809810
Print a note if no ids given 2024-04-28 08:02:01 +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
Alex Grant
c00a9c3597 Add support for m dot urls 2024-04-25 07:29:59 +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
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
Ivan Habunek
7845cf6f72
Improve typing 2024-04-24 08:11:33 +02:00
Ivan Habunek
6ed98fa4ef
Fix tuple typing to work on py 3.8 2024-04-24 08:10:56 +02:00
Ivan Habunek
1057fff61a
Hopefully fix python 3.8 compat 2024-04-23 18:13:40 +02:00
Ivan Habunek
f1924715ed
Apply formatting 2024-04-23 17:35:46 +02:00
Ivan Habunek
a0ad66ee69
Remove union types to fix python 3.8 compat 2024-04-23 17:15:18 +02:00