Skip to content

Commit

Permalink
Avoid bad request to streaming endpoint breaking the API
Browse files Browse the repository at this point in the history
Set reused string references to `Static` object
Remove f-strings from logging
Use sensible function names
  • Loading branch information
dormant-user committed Dec 4, 2023
1 parent eb2152e commit 47887f0
Show file tree
Hide file tree
Showing 13 changed files with 104 additions and 54 deletions.
31 changes: 23 additions & 8 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h1 id="index">Index</h1>
| <a href="#M"><strong>M</strong></a>
| <a href="#N"><strong>N</strong></a>
| <a href="#P"><strong>P</strong></a>
| <a href="#Q"><strong>Q</strong></a>
| <a href="#R"><strong>R</strong></a>
| <a href="#S"><strong>S</strong></a>
| <a href="#U"><strong>U</strong></a>
Expand All @@ -61,7 +62,7 @@ <h1 id="index">Index</h1>
<h2 id="C">C</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.config.Static.CHUNK_SIZE">CHUNK_SIZE (pystream.models.config.Static attribute)</a>
<li><a href="index.html#pystream.models.config.Static.chunk_size">chunk_size (pystream.models.config.Static attribute)</a>
</li>
</ul></td>
</tr></table>
Expand Down Expand Up @@ -101,19 +102,19 @@ <h2 id="F">F</h2>
<h2 id="G">G</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.squire.get_dir_content">get_dir_content() (in module pystream.models.squire)</a>
<li><a href="index.html#pystream.models.squire.get_all_stream_content">get_all_stream_content() (in module pystream.models.squire)</a>
</li>
<li><a href="index.html#pystream.routers.basics.get_favicon">get_favicon() (in module pystream.routers.basics)</a>
<li><a href="index.html#pystream.models.squire.get_dir_stream_content">get_dir_stream_content() (in module pystream.models.squire)</a>
</li>
<li><a href="index.html#pystream.utils.get_local_ip">get_local_ip() (in module pystream.utils)</a>
<li><a href="index.html#pystream.routers.basics.get_favicon">get_favicon() (in module pystream.routers.basics)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.utils.get_local_ip">get_local_ip() (in module pystream.utils)</a>
</li>
<li><a href="index.html#pystream.utils.get_public_ip">get_public_ip() (in module pystream.utils)</a>
</li>
<li><a href="index.html#pystream.models.stream.get_range_header">get_range_header() (in module pystream.models.stream)</a>
</li>
<li><a href="index.html#pystream.models.squire.get_stream_content">get_stream_content() (in module pystream.models.squire)</a>
</li>
<li><a href="index.html#pystream.models.ngrok.get_tunnel">get_tunnel() (in module pystream.models.ngrok)</a>
</li>
Expand Down Expand Up @@ -146,12 +147,16 @@ <h2 id="L">L</h2>
<li><a href="index.html#pystream.models.config.FileIO.list_files">list_files (pystream.models.config.FileIO attribute)</a>
</li>
<li><a href="index.html#pystream.models.squire.log_connection">log_connection() (in module pystream.models.squire)</a>
</li>
<li><a href="index.html#pystream.routers.auth.login">login() (in module pystream.routers.auth)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.routers.auth.login">login() (in module pystream.routers.auth)</a>
<li><a href="index.html#pystream.models.config.Static.login_endpoint">login_endpoint (pystream.models.config.Static attribute)</a>
</li>
<li><a href="index.html#pystream.routers.auth.logout">logout() (in module pystream.routers.auth)</a>
</li>
<li><a href="index.html#pystream.models.config.Static.logout_endpoint">logout_endpoint (pystream.models.config.Static attribute)</a>
</li>
</ul></td>
</tr></table>
Expand Down Expand Up @@ -284,6 +289,14 @@ <h2 id="P">P</h2>
</ul></td>
</tr></table>

<h2 id="Q">Q</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.config.Static.query_param">query_param (pystream.models.config.Static attribute)</a>
</li>
</ul></td>
</tr></table>

<h2 id="R">R</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
Expand Down Expand Up @@ -316,6 +329,8 @@ <h2 id="S">S</h2>
<li><a href="index.html#pystream.models.config.Static">Static (class in pystream.models.config)</a>
</li>
<li><a href="index.html#pystream.routers.video.stream_video">stream_video() (in module pystream.routers.video)</a>
</li>
<li><a href="index.html#pystream.models.config.Static.streaming_endpoint">streaming_endpoint (pystream.models.config.Static attribute)</a>
</li>
</ul></td>
</tr></table>
Expand All @@ -331,7 +346,7 @@ <h2 id="U">U</h2>
<h2 id="V">V</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pystream.models.config.Static.VAULT">VAULT (pystream.models.config.Static attribute)</a>
<li><a href="index.html#pystream.models.config.Static.vault">vault (pystream.models.config.Static attribute)</a>
</li>
<li><a href="index.html#pystream.models.authenticator.verify">verify() (in module pystream.models.authenticator)</a>
</li>
Expand Down
Loading

0 comments on commit 47887f0

Please sign in to comment.