mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-29 22:20:34 -08:00
fix:Bugs caused by renaming
This commit is contained in:
4
fastanime/.vscode/settings.json
vendored
4
fastanime/.vscode/settings.json
vendored
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"python.analysis.autoImportCompletions": true
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
from anixstream.libs.anilist import AniList
|
||||
from anixstream.Utility import media_card_loader, show_notification
|
||||
from ..libs.anilist import AniList
|
||||
from ..Utility import media_card_loader, show_notification
|
||||
|
||||
from .base_model import BaseScreenModel
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from datetime import datetime
|
||||
|
||||
from anixstream.libs.anilist.anilist_data_schema import (
|
||||
from ..libs.anilist.anilist_data_schema import (
|
||||
AnilistDateObject,
|
||||
AnilistMediaNextAiringEpisode,
|
||||
)
|
||||
|
||||
@@ -14,13 +14,16 @@ data_folder = os.path.join(app_dir, "data")
|
||||
today = date.today()
|
||||
now = datetime.now()
|
||||
|
||||
if user_data_path := os.path.exists(os.path.join(data_folder, "user_data.json")):
|
||||
user_data = JsonStore(user_data_path)
|
||||
if os.path.exists(os.path.join(data_folder, "user_data.json")):
|
||||
user_data = JsonStore(os.path.join(data_folder, "user_data.json"))
|
||||
else:
|
||||
os.makedirs(data_folder, exist_ok=True)
|
||||
# os.makedir(data_folder, exist_ok=True)
|
||||
print("op2")
|
||||
user_data_path = os.path.join(data_folder, "user_data.json")
|
||||
user_data = JsonStore(user_data_path)
|
||||
|
||||
print("op2")
|
||||
|
||||
|
||||
# Get the user data
|
||||
def get_user_anime_list() -> list:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#:import color_text anixstream.Utility.kivy_markup_helper.color_text
|
||||
#:import color_text fastanime.Utility.kivy_markup_helper.color_text
|
||||
|
||||
<TaskText@MDLabel>:
|
||||
adaptive_height:True
|
||||
|
||||
@@ -64,7 +64,7 @@ class BaseScreenView(MDScreen, Observer):
|
||||
super().__init__(**kw)
|
||||
# Often you need to get access to the application object from the view
|
||||
# class. You can do this using this attribute.
|
||||
from anixstream.__main__ import AniXStreamApp
|
||||
from ..__main__ import AniXStreamApp
|
||||
|
||||
self.app: AniXStreamApp = MDApp.get_running_app() # type: ignore
|
||||
# Adding a view class as observer.
|
||||
|
||||
@@ -20,7 +20,7 @@ class MediaCard(ButtonBehavior, HoverBehavior, MDBoxLayout):
|
||||
title = StringProperty()
|
||||
is_play = ObjectProperty()
|
||||
trailer_url = StringProperty()
|
||||
_trailer_url: str | None = StringProperty()
|
||||
_trailer_url: str | None = StringProperty(allow_none=True)
|
||||
episodes = StringProperty()
|
||||
favourites = StringProperty()
|
||||
popularity = StringProperty()
|
||||
@@ -97,7 +97,7 @@ class MediaCard(ButtonBehavior, HoverBehavior, MDBoxLayout):
|
||||
):
|
||||
self.trailer_url = trailer_url
|
||||
else:
|
||||
self._trailer_url = None
|
||||
self._trailer_url = ""
|
||||
|
||||
# ---------------respond to user actions and call appropriate model-------------------------
|
||||
def on_is_in_my_list(self, instance, in_user_anime_list):
|
||||
|
||||
Reference in New Issue
Block a user