Skip to content

Commit

Permalink
update stream_fusion/static/index.html and parse_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeDrive committed Jul 26, 2024
1 parent ca314a6 commit f99f5fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stream_fusion/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ <h2 class="text-white font-semibold leading-7">Debrid Provider Configuration</h2
class="mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6">
<option>Select a provider</option>
<option>Real-Debrid</option>
<option>AllDebrid</option>
<option>Premiumize</option>
<!-- <option>AllDebrid</option>
<option>Premiumize</option> -->
</select>
</div>
<div class="sm:col-span-3">
Expand Down Expand Up @@ -227,6 +227,8 @@ <h2 class="text-white font-semibold leading-7">Metadata Provider</h2>
<div class="text-sm leading-6">
<label for="cinemeta" class="font-medium text-white">Use Cinemeta</label>
<p class="text-gray-500 dark:text-gray-300">Use Cinemeta for simple metadata.</p>
<p class="text-gray-500 dark:text-gray-300"><span
class="font-bold text-red-600 dark:text-red-500">Pour YggTorrent utilisé TMDB obligatoirement.</span></p>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions stream_fusion/utils/parse_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ def parse_config(b64config):
config["yggPassword"] = "FakePassword"
if "yggUsername" not in config:
config["yggUsername"] = "FakeUsername"

# Break old config on debrid untested
if config["service"] == "AllDebrid" or "Premiumize":
raise Exception("Old config detected, please reconfigure")
return config

0 comments on commit f99f5fe

Please sign in to comment.