mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-16 23:01:45 -08:00
feat(download screen):implement download capabilities
This commit is contained in:
@@ -18,11 +18,6 @@
|
||||
|
||||
TaskText:
|
||||
size_hint_x:.8
|
||||
text:color_text(root.anime_task_name,root.theme_cls.primaryColor)
|
||||
TaskText:
|
||||
size_hint_x:.2
|
||||
# color:self.theme_cls.surfaceDimColor
|
||||
theme_text_color:"Secondary"
|
||||
text:color_text(root.episodes_to_download,root.theme_cls.secondaryColor)
|
||||
MDIcon:
|
||||
icon:"download"
|
||||
text:"{} Episode: {}".format(root.file[0],root.file[1])
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
from kivy.properties import StringProperty
|
||||
from kivy.properties import StringProperty, ListProperty
|
||||
from kivymd.uix.boxlayout import MDBoxLayout
|
||||
|
||||
|
||||
# TODO: add a progress bar to show the individual progress of each task
|
||||
class TaskCard(MDBoxLayout):
|
||||
anime_task_name = StringProperty()
|
||||
episodes_to_download = StringProperty()
|
||||
file = ListProperty(("", ""))
|
||||
eta = StringProperty()
|
||||
|
||||
def __init__(self, anime_title: str, episodes: str, *args, **kwargs):
|
||||
def __init__(self, file: str, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.anime_task_name = f"{anime_title}"
|
||||
self.episodes_to_download = f"Episodes: {episodes}"
|
||||
self.file = file
|
||||
# self.eta = eta
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user