Merge branch 'test_gui_2' into feat/app-api-and-frontend

This commit is contained in:
Francesco Grazioso 2024-06-01 13:08:33 +02:00 committed by GitHub
commit 9af94cd789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,12 +7,14 @@ from rest_framework import viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from Src.Api.Animeunity.anime import donwload_film
from Src.Api.Animeunity.anime import download_episode as donwload_anime_episode
from Src.Api.Animeunity import title_search as anime_search
from Src.Api.Animeunity.Core.Vix_player.player import VideoSource as anime_source
from Src.Api.Animeunity.site import media_search_manager as anime_media_manager
from Src.Api.Streamingcommunity.film import download_film
from Src.Api.Streamingcommunity.series import donwload_episode as download_tv_episode
from Src.Api.Streamingcommunity import title_search as sc_search, get_version_and_domain
@ -204,6 +206,7 @@ class DownloadView(viewsets.ViewSet):
donwload_film(
id_film=self.media_id,
title_name=self.media_slug
)
case _:
raise Exception("Type media not supported")
@ -218,4 +221,3 @@ class DownloadView(viewsets.ViewSet):
}
return Response(response_dict)