- commit
- 1ab6cdcc1f359b4bc8beb78f8968f82d5964fd4e
- parent
- 8e668274989587042a3f21095ed94ba8baaa8e92
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-10-04 21:42
change dropout domain
Diffstat
M | README.md | 2 | +- |
M | dropin.py | 6 | +++--- |
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
@@ -1,4 +1,4 @@1 -1 [Dropout](https://www.dropout.tv) is a comedy subscription streaming service.-1 1 [Dropout](https://watch.dropout.tv) is a comedy subscription streaming service. 2 2 Unfortunately, I had issue with their website, so I created a separate 3 3 frontend. 4 4
diff --git a/dropin.py b/dropin.py
@@ -140,13 +140,13 @@ class Auth: 140 140 async def auth(self): 141 141 print(f'fetch subscription token for {self.email}') 142 142 async with aiohttp.ClientSession() as session:143 -1 async with session.get('https://www.dropout.tv/login') as response:-1 143 async with session.get('https://watch.dropout.tv/login') as response: 144 144 response.raise_for_status() 145 145 html = await response.text() 146 146 authenticity_token = re.search( 147 147 r'name="authenticity_token" value="([^"]+)', html 148 148 ).group(1)149 -1 async with session.post('https://www.dropout.tv/login', data={-1 149 async with session.post('https://watch.dropout.tv/login', data={ 150 150 'email': self.email, 151 151 'password': self.password, 152 152 'authenticity_token': authenticity_token, @@ -157,7 +157,7 @@ class Auth: 157 157 async def unauth(self): 158 158 print('fetch non-subscription token') 159 159 async with aiohttp.ClientSession() as session:160 -1 async with session.get('https://www.dropout.tv/browse') as response:-1 160 async with session.get('https://watch.dropout.tv/browse') as response: 161 161 html = await response.text() 162 162 return re.search(r'token: "([^"]+)', html).group(1) 163 163