Skip to content

Commit db29639

Browse files
committed
Update stream.py
Remove unnecessary exp check
1 parent da556df commit db29639

File tree

1 file changed

+0
-6
lines changed
  • custom_components/yandex_station/core

1 file changed

+0
-6
lines changed

custom_components/yandex_station/core/stream.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ async def head(self, request: web.Request, token: str, ext: str):
120120
except jwt.InvalidTokenError:
121121
return web.HTTPNotFound()
122122

123-
if "exp" in data and time.time() > data["exp"]:
124-
return web.HTTPForbidden()
125-
126123
_LOGGER.debug(f"Stream.{ext} HEAD {data}")
127124

128125
url = self.get_url(data["url"])
@@ -140,9 +137,6 @@ async def get(self, request: web.Request, token: str, ext: str):
140137
except jwt.InvalidTokenError:
141138
return web.HTTPNotFound()
142139

143-
if "exp" in data and time.time() > data["exp"]:
144-
return web.HTTPForbidden()
145-
146140
_LOGGER.debug(f"Stream.{ext} GET {data}")
147141

148142
url = self.get_url(data["url"])

0 commit comments

Comments
 (0)