Commit Graph

68 Commits

Author SHA1 Message Date
DevilXD
f0b34f3086 Remove unused Channel.from_name 2024-09-21 09:56:08 +02:00
DevilXD
cffda7fc39 Fix an issue with offline streams returning 404 and breaking send_watch 2024-09-18 21:57:25 +02:00
DevilXD
d7a26f67c1 Minor documentation string update 2024-09-16 23:41:09 +02:00
DevilXD
b9dfc75398 Implement channel status bulk-check logic 2024-09-15 16:28:50 +02:00
DevilXD
1684f92afe Minor variable wording corrections 2024-09-14 14:05:58 +02:00
DevilXD
9c58befac3 Change temporary print to a MinerException 2024-09-11 10:50:30 +02:00
DevilXD
d3a754a438 Revert "Try to remedy the exception not getting caught"
This reverts commit a42a72bfb1.
2024-09-11 10:45:27 +02:00
DevilXD
a42a72bfb1 Try to remedy the exception not getting caught 2024-09-01 14:56:22 +02:00
DevilXD
a7088161d7 Temp log InvalidURL occurences 2024-07-25 00:01:56 +02:00
DevilXD
5b515be34b Account for end-of-stream tag when sending watch requests 2024-06-30 12:37:15 +02:00
DevilXD
b47b2089c0 Implement channel watching using the new method 2024-06-22 18:16:14 +02:00
DevilXD
ab76491ecc Fix channel settings URL being different for some users 2024-04-30 10:07:25 +02:00
DevilXD
5dea41a6ab Log AvailableDrops errors, preventing crashes if possible 2024-02-18 10:12:31 +01:00
DevilXD
a536dde677 Add exception-catchers that point out exactly which game or channel causes a crash 2024-02-17 11:31:37 +01:00
guihkx
dbd3cd82a0 Move ClientType into Twitch class as an attribute
This allows us to use the base URL as specified in ClientInfo for
requests made to Twitch.

Previously, we'd hardcode "www.twitch.tv" as the base URL to make
channel-related requests, but because we're currently spoofing the
mobile client, that would always cause a HTTP redirect to m.twitch.tv.

This change avoids that HTTP redirect, and potentially saves a whopping
150 ms (or more 😱) when making channel-related requests.

Co-authored-by: DevilXD <4180725+DevilXD@users.noreply.github.com>
2024-02-14 14:51:37 +01:00
DevilXD
bb51bf7400 Fix watch payload not having enough fields to progress the new campaigns 2023-10-21 23:20:18 +02:00
DevilXD
f990aeea38 Handle a case where AvailableDrops returns no campaigns 2023-10-16 20:53:24 +02:00
DevilXD
163a056b33 Experimental drops_enabled via AvailableDrops 2023-10-15 22:37:48 +02:00
DevilXD
5e862f9543 Remove processing of tags;
- Removes all logic related to stream tags processing
- Implements a new method of fetching live non-ACL channels, with drops enabled
- Minor logic cleanup changes
2023-10-15 12:06:58 +02:00
Austin Jackson
d892bc02b2 Fix missing tags array breaking get_stream (#281) 2023-08-22 21:00:16 +02:00
DevilXD
9e061bc15e Update from_directory to not set the drops tag anymore 2023-08-17 21:58:32 +02:00
DevilXD
29fa220238 Fix Spade URL extraction 2023-08-15 22:20:23 +02:00
DevilXD
793fb5ccaf Assume directory streams always have the tag 2023-02-19 16:23:06 +01:00
DevilXD
07708e9ab1 Improve on the CALL logging, added useful comments 2022-12-14 14:43:02 +01:00
DevilXD
5751f96882 Implement handling for broadcast-settings-update 2022-12-11 18:39:38 +01:00
DevilXD
4788ac8fbf Use slots where possible for a marginal memory save 2022-11-25 11:42:46 +01:00
DevilXD
008dffb212 A bunch of naming and consistency changes 2022-11-15 21:39:17 +01:00
DevilXD
fb3c6bf0ce Finish integrity support 2022-09-15 07:27:55 +02:00
DevilXD
f919850ad2 Typing update 2022-07-31 21:40:03 +02:00
DevilXD
b20893ab03 Fix a potential issue with stream state not refreshing the watching payload 2022-07-23 12:32:07 +02:00
DevilXD
c77b8f6714 Minor consistency changes 2022-05-15 14:44:06 +02:00
DevilXD
8cd77bae2a Change websocket internals to use aiohttp instead 2022-04-08 22:04:53 +02:00
DevilXD
5af4ee79c3 Remove Game Selector;
Implement multi-game mining based on the priority list
2022-03-30 14:15:26 +02:00
DevilXD
f7b0a5f2cc Implement the inventory tab 2022-03-27 14:03:11 +02:00
DevilXD
92d722fd0c Change typing to 3.10 syntax 2022-02-27 12:07:40 +01:00
DevilXD
423e51bc27 Handle maximum channels limit;
Proper handle of a case where the app ends up with more channels from ACLs than is supported
2022-02-13 20:13:11 +01:00
DevilXD
fa0293faf3 Explicitly set stream to none here 2022-02-11 20:53:19 +01:00
DevilXD
f41146ebdd tags are jsontype 2022-02-11 20:47:12 +01:00
DevilXD
904ccecc2a Redo stream init 2022-02-11 18:27:08 +01:00
DevilXD
4d2a884fbe Redo channel init 2022-02-11 18:09:54 +01:00
DevilXD
473af57aeb make channel list's display add channels only on explicit add 2022-02-10 21:34:36 +01:00
DevilXD
d90d20a42c Streamline connection retry code 2022-02-09 11:59:08 +01:00
DevilXD
038fac48f9 Fix a bug with an uninitialized attribute 2022-02-07 21:02:28 +01:00
DevilXD
5e129d41d8 Attribute lookup performance improvements 2022-02-06 21:23:17 +01:00
DevilXD
32f475d7ed Fix the possibility of stream_data being None 2022-02-06 21:05:37 +01:00
DevilXD
91b2844e9b Fix an issue with directory returning channel name as login 2022-01-25 16:05:14 +01:00
DevilXD
5e2a40fc57 Improve channel's repr 2022-01-24 23:02:00 +01:00
DevilXD
29d4fb6cb0 Fix an issue where channel's display name was treated like it's username/login 2022-01-24 22:57:37 +01:00
DevilXD
3d3eb3b005 Defer client session init 2022-01-23 12:40:16 +01:00
DevilXD
59cceaf474 Added some basic connection problems handling 2022-01-22 21:10:12 +01:00