generate new urls based on the urlData form
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
This commit is contained in:
@@ -4,7 +4,7 @@ from celery.worker.state import active_requests
|
||||
from requests.compat import str
|
||||
from django.utils import timezone
|
||||
from apps.betaserie.utils import betaserieUtils
|
||||
from .models import simpsons_data_object
|
||||
from .models import simpsons_data_object,urlData
|
||||
|
||||
betaserie = betaserieUtils()
|
||||
|
||||
@@ -73,7 +73,9 @@ def generate_new_urls_for_episode(verbose=False):
|
||||
for episode in range(1,number_episodes_in_season+1):
|
||||
if verbose : print("Season: "+str(season))
|
||||
if verbose : print("episode: "+str(episode))
|
||||
new_url = "https://www.1shows.org/tv/456-the-simpsons?streaming=true&season="+str(season)+"&episode="+str(episode)
|
||||
|
||||
new_url_object = urlData.objects.all().order_by('-addedDate').first()
|
||||
new_url = str(new_url_object.prefix)+str(season)+str(new_url_object.infix)+str(episode)+str(new_url_object.suffix)
|
||||
|
||||
if verbose : print(new_url)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user