diff --git a/.assets/screencasts/fastanime_demo.webm b/.assets/screencasts/fastanime_demo.webm deleted file mode 100644 index 27b822c..0000000 Binary files a/.assets/screencasts/fastanime_demo.webm and /dev/null differ diff --git a/.assets/screencasts/intro.gif b/.assets/screencasts/intro.gif deleted file mode 100644 index 3ecc06b..0000000 Binary files a/.assets/screencasts/intro.gif and /dev/null differ diff --git a/.assets/screencasts/intro.webm b/.assets/screencasts/intro.webm deleted file mode 100644 index eaf2b5d..0000000 Binary files a/.assets/screencasts/intro.webm and /dev/null differ diff --git a/.assets/screencasts/intro_1.webm b/.assets/screencasts/intro_1.webm deleted file mode 100644 index abc26d3..0000000 Binary files a/.assets/screencasts/intro_1.webm and /dev/null differ diff --git a/.assets/screenshots/anime_screen.png b/.assets/screenshots/anime_screen.png deleted file mode 100644 index 0600845..0000000 Binary files a/.assets/screenshots/anime_screen.png and /dev/null differ diff --git a/.assets/screenshots/anime_screen_2.png b/.assets/screenshots/anime_screen_2.png deleted file mode 100644 index 7a77ebe..0000000 Binary files a/.assets/screenshots/anime_screen_2.png and /dev/null differ diff --git a/.assets/screenshots/anime_screen_3.png b/.assets/screenshots/anime_screen_3.png deleted file mode 100644 index ba70176..0000000 Binary files a/.assets/screenshots/anime_screen_3.png and /dev/null differ diff --git a/.assets/screenshots/downloads.png b/.assets/screenshots/downloads.png deleted file mode 100644 index c904dbe..0000000 Binary files a/.assets/screenshots/downloads.png and /dev/null differ diff --git a/.assets/screenshots/help.png b/.assets/screenshots/help.png deleted file mode 100644 index 78a7dc4..0000000 Binary files a/.assets/screenshots/help.png and /dev/null differ diff --git a/.assets/screenshots/home.png b/.assets/screenshots/home.png deleted file mode 100644 index 5377556..0000000 Binary files a/.assets/screenshots/home.png and /dev/null differ diff --git a/.assets/screenshots/home_2.png b/.assets/screenshots/home_2.png deleted file mode 100644 index d3e0bf9..0000000 Binary files a/.assets/screenshots/home_2.png and /dev/null differ diff --git a/.assets/screenshots/home_3.png b/.assets/screenshots/home_3.png deleted file mode 100644 index 41deb59..0000000 Binary files a/.assets/screenshots/home_3.png and /dev/null differ diff --git a/.assets/screenshots/home_4.png b/.assets/screenshots/home_4.png deleted file mode 100644 index a899eac..0000000 Binary files a/.assets/screenshots/home_4.png and /dev/null differ diff --git a/.assets/screenshots/home_5.png b/.assets/screenshots/home_5.png deleted file mode 100644 index 773e926..0000000 Binary files a/.assets/screenshots/home_5.png and /dev/null differ diff --git a/.assets/screenshots/myanimelist.png b/.assets/screenshots/myanimelist.png deleted file mode 100644 index e9355ae..0000000 Binary files a/.assets/screenshots/myanimelist.png and /dev/null differ diff --git a/.assets/screenshots/search_1.png b/.assets/screenshots/search_1.png deleted file mode 100644 index ba3b53f..0000000 Binary files a/.assets/screenshots/search_1.png and /dev/null differ diff --git a/.assets/screenshots/search_2.png b/.assets/screenshots/search_2.png deleted file mode 100644 index 76977a4..0000000 Binary files a/.assets/screenshots/search_2.png and /dev/null differ diff --git a/.assets/screenshots/search_3.png b/.assets/screenshots/search_3.png deleted file mode 100644 index 1123618..0000000 Binary files a/.assets/screenshots/search_3.png and /dev/null differ diff --git a/.assets/screenshots/settings_1.png b/.assets/screenshots/settings_1.png deleted file mode 100644 index c400381..0000000 Binary files a/.assets/screenshots/settings_1.png and /dev/null differ diff --git a/.assets/screenshots/settings_2.png b/.assets/screenshots/settings_2.png deleted file mode 100644 index 1ba1701..0000000 Binary files a/.assets/screenshots/settings_2.png and /dev/null differ diff --git a/.assets/screenshots/theme_example_1.png b/.assets/screenshots/theme_example_1.png deleted file mode 100644 index 4bc2c65..0000000 Binary files a/.assets/screenshots/theme_example_1.png and /dev/null differ diff --git a/.assets/screenshots/theme_example_2.png b/.assets/screenshots/theme_example_2.png deleted file mode 100644 index 0b5172c..0000000 Binary files a/.assets/screenshots/theme_example_2.png and /dev/null differ diff --git a/.assets/screenshots/theme_example_3.png b/.assets/screenshots/theme_example_3.png deleted file mode 100644 index f7bde7b..0000000 Binary files a/.assets/screenshots/theme_example_3.png and /dev/null differ diff --git a/.assets/screenshots/trailer_fullscreen.png b/.assets/screenshots/trailer_fullscreen.png deleted file mode 100644 index 6d338c3..0000000 Binary files a/.assets/screenshots/trailer_fullscreen.png and /dev/null differ diff --git a/fastanime/Utility/add_desktop_entry.py b/fastanime/Utility/add_desktop_entry.py deleted file mode 100644 index 1c65c8b..0000000 --- a/fastanime/Utility/add_desktop_entry.py +++ /dev/null @@ -1,32 +0,0 @@ -import os -import shutil - -from pyshortcuts import make_shortcut - -from .. import ASSETS_DIR, PLATFORM - - -def create_desktop_shortcut(): - app = "_ -m fastanime --gui" - - logo = os.path.join(ASSETS_DIR, "logo.png") - if PLATFORM == "Windows": - logo = os.path.join(ASSETS_DIR, "logo.ico") - if fastanime := shutil.which("fastanime"): - app = f"{fastanime} --gui" - make_shortcut( - app, - name="FastAnime", - description="Download and watch anime", - terminal=False, - icon=logo, - executable=fastanime, - ) - else: - make_shortcut( - app, - name="FastAnime", - description="Download and watch anime", - terminal=False, - icon=logo, - ) diff --git a/fastanime/Utility/downloader/hsl.py b/fastanime/Utility/downloader/hsl.py deleted file mode 100644 index 63107c8..0000000 --- a/fastanime/Utility/downloader/hsl.py +++ /dev/null @@ -1,39 +0,0 @@ -import yt_dlp - - -class MyLogger: - def debug(self, msg): - print(msg) - - def warning(self, msg): - print(msg) - - def error(self, msg): - print(msg) - - -def my_hook(d): - if d["status"] == "finished": - print("Done downloading, now converting ...") - - -# URL of the HLS stream -url = "https://example.com/path/to/stream.m3u8" - -# Options for yt-dlp -ydl_opts = { - "format": "best", # Choose the best quality available - "outtmpl": "/path/to/downloaded/video.%(ext)s", # Specify the output path and template - "logger": MyLogger(), # Custom logger - "progress_hooks": [my_hook], # Progress hook -} - - -# Function to download the HLS video -def download_hls_video(url, options): - with yt_dlp.YoutubeDL(options) as ydl: - ydl.download([url]) - - -# Call the function -download_hls_video(url, ydl_opts) diff --git a/fastanime/Utility/kivy_markup_helper.py b/fastanime/Utility/kivy_markup_helper.py deleted file mode 100644 index d32283e..0000000 --- a/fastanime/Utility/kivy_markup_helper.py +++ /dev/null @@ -1,54 +0,0 @@ -""" -Contains helper functions to make your life easy when adding kivy markup to text -""" - -from kivy.utils import get_hex_from_color - - -def bolden(text: str): - return f"[b]{text}[/b]" - - -def italicize(text: str): - return f"[i]{text}[/i]" - - -def underline(text: str): - return f"[u]{text}[/u]" - - -def strike_through(text: str): - return f"[s]{text}[/s]" - - -def sub_script(text: str): - return f"[sub]{text}[/sub]" - - -def super_script(text: str): - return f"[sup]{text}[/sup]" - - -def color_text(text: str, color: tuple): - hex_color = get_hex_from_color(color) - return f"[color={hex_color}]{text}[/color]" - - -def font(text: str, font_name: str): - return f"[font={font_name}]{text}[/font]" - - -def font_family(text: str, family: str): - return f"[font_family={family}]{text}[/font_family]" - - -def font_context(text: str, context: str): - return f"[font_context={context}]{text}[/font_context]" - - -def font_size(text: str, size: int): - return f"[size={size}]{text}[/size]" - - -def text_ref(text: str, ref: str): - return f"[ref={ref}]{text}[/ref]" diff --git a/fastanime/Utility/observer.py b/fastanime/Utility/observer.py deleted file mode 100644 index bbf1a9f..0000000 --- a/fastanime/Utility/observer.py +++ /dev/null @@ -1,16 +0,0 @@ -# Of course, "very flexible Python" allows you to do without an abstract -# superclass at all or use the clever exception `NotImplementedError`. In my -# opinion, this can negatively affect the architecture of the application. -# I would like to point out that using Kivy, one could use the on-signaling -# model. In this case, when the state changes, the model will send a signal -# that can be received by all attached observers. This approach seems less -# universal - you may want to use a different library in the future. - - -class Observer: - """Abstract superclass for all observers.""" - - def model_is_changed(self): - """ - The method that will be called on the observer when the model changes. - """ diff --git a/fastanime/Utility/show_notification.py b/fastanime/Utility/show_notification.py deleted file mode 100644 index 0e3098e..0000000 --- a/fastanime/Utility/show_notification.py +++ /dev/null @@ -1,29 +0,0 @@ -from kivy.clock import Clock -from kivymd.uix.snackbar import MDSnackbar, MDSnackbarSupportingText, MDSnackbarText - - -def show_notification(title, details): - """helper function to display notifications - - Args: - title (str): the title of your message - details (str): the details of your message - """ - - def _show(dt): - MDSnackbar( - MDSnackbarText( - text=title, - adaptive_height=True, - ), - MDSnackbarSupportingText( - text=details, shorten=False, max_lines=0, adaptive_height=True - ), - duration=5, - y="10dp", - pos_hint={"bottom": 1, "right": 0.99}, - padding=[0, 0, "8dp", "8dp"], - size_hint_x=0.4, - ).open() - - Clock.schedule_once(_show, 1)