Files
Django_kube/django_code/apps/streaming/models.py
T
pi-ux-ce 2b410b5ff8
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
reverting and merging into streaming app instead
2026-08-07 12:00:32 +01:00

28 lines
1.2 KiB
Python

from django.db import models
# Create your models here.
class streamingData(models.Model):
url = models.CharField(max_length=1000)
addedDate = models.DateField('Published', blank=True, null=True, auto_now_add=True)
status = models.CharField(max_length=1000, blank=True, null=True)
result = models.CharField(max_length=1000, blank=True, null=True)
class Meta:
db_table = 'streaming'
class urlData(models.Model):
def sanitize(self):
print(self)
return 1
name = models.CharField(primary_key=True,max_length=1000, help_text="Name of the show")
url_example = models.CharField(max_length=1000, help_text="https://www.1shows.org/tv/456-the-simpsons?streaming=true&season=18&episode=5")
prefix = models.CharField(max_length=1000, help_text="https://www.1shows.org/tv/456-the-simpsons?streaming=true&season=",blank=True, null=True)
infix = models.CharField(max_length=1000, help_text="&episode=",blank=True, null=True)
suffix = models.CharField(max_length=1000, help_text="" ,blank=True, null=True)
addedDate = models.DateField('Published', blank=True, null=True, auto_now_add=True)
alias = models.CharField(max_length=1000, default=sanitize)
class Meta:
db_table = 'redirectUrl'