2 Commits
Author SHA1 Message Date
pierre geeraert 919d1a3a28 lowercase the alias as well
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
2026-10-03 21:43:09 +01:00
pierre geeraert 3c4c32e72d lowercase the sanitized name 2026-10-03 21:25:11 +01:00
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class StreamingRedirectData(models.Model):
poster_url = models.CharField(max_length=1000, help_text="poster URL",blank=True, null=True)
def sanitize(self, name):
return name.replace(" ", "")
return name.replace(" ", "").lower()
def season_information(self, serie_name):
betaserie = betaserieUtils()
+3
View File
@@ -15,6 +15,9 @@ def hello(request):
def streamingRedirect(request,alias):
#sanitize
alias = alias.lower()
streaming_object = StreamingRedirectData.objects.filter(alias=alias)
episode = streaming_object.values('episode')[0]['episode']