Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
heroas committed Nov 21, 2018
1 parent 6f7efa6 commit 441bd9a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 65 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ My best friend when the new season drops.

#### Allow me to set the stage:

**TL;NGR:** It fetches anime you would like and allows you to download them from one app. :unamused:
Take me to [Skip](#markdown-header-ingredients)
**TL;NGR:** It fetches anime you would like and allows you to download them from one app. :unamused:[Skip](#Ingredients)

> time for the next season of anime to drop.
Expand All @@ -26,13 +25,13 @@ Take me to [Skip](#markdown-header-ingredients)
> you don't know whats worth watching....
> you hit up your bois looking for a quick answer and they give you a list of garbage (because they have :poop: taste)
> now its up to you to go one AniList, MyAnimeList or whatever and go through each show vetting whether they are worth your immaculate viewing time.
> now its up to you to go on AniList / MyAnimeList or whatever, and go through each show vetting whether they are worth your immaculate viewing time.
> not only that but maybe you aren't up for the deep Urobuchi-like show that you have to think about. Maybe you just wanna watch cute girls doing cute things. :neckbeard:
> not only that but maybe you aren't up for the deep Urobuchi-like show that you have to think about. Maybe, you just wanna watch cute girls doing cute things. :neckbeard:
> and once you have your list you have to remember. Every. Week. To get on Nyaa, AnimeBytes, irc etc to get the episode to the show you want.
> **AND** once you have your list you have to remember. Every. Week. To get on Nyaa, AnimeBytes, irc etc to get the episode to the show you want.
> or maybe you're smart and you set up a feed. regardless it sounds like a lot of work for the average lazy man. And its why **YOU** end up skipping the season or saying "nothing good this season" :grimacing:
> or maybe you're smart and you set up a feed. Regardless it sounds like a lot of work for the average lazy man. And its why **YOU** end up skipping the season or saying "nothing good this season" :grimacing:
**Now WHAT IF:**

Expand All @@ -46,7 +45,7 @@ Take me to [Skip](#markdown-header-ingredients)
## Package
There is a release for windows here.

If on linux you're gonna have to compile yourself due to GPU reasons :cool:
If on Linux you're gonna have to compile yourself due to GPU reasons :cool:


## Development
Expand Down
39 changes: 0 additions & 39 deletions src/criterea_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from kivymd.list import MDList, OneLineRightIconListItem
from kivymd.list import IRightBodyTouch
from kivymd.snackbar import Snackbar
# from kivymd.grid import GridLayout, SmartTile
from services import anilist_api
from kivymd.accordion import MDAccordion, MDAccordionItem, MDAccordionSubItem

Expand Down Expand Up @@ -60,13 +59,6 @@ def on_release(self):

class Criterea_Selection(Screen):

# def download_image(self, url):
# r = requests.get('https://s3.anilist.co/media/anime/cover/small/nx101359-X6psMqBfatdw.jpg', stream=True)
# if r.status_code == 200:
# with open("img.png", 'wb') as f:
# r.raw.decode_content = True
# shutil.copyfileobj(r.raw, f)

def add_genre(self, genre_type):
Global.GENRES.append(genre_type)

Expand Down Expand Up @@ -140,38 +132,7 @@ def add_anime_to_db(x, self, anime_list):


def show_desc(self, anime_model):
# content = GridLayout(cols= 2)
webbrowser.open('https://anilist.co/anime/'+str(anime_model.id)+'/', new=2)
# content2 = MDLabel(font_style='Body1',
# theme_text_color='Secondary',
# text=anime_model.description)
#
# content3 = MDLabel(font_style='Body1',
# theme_text_color='Secondary',
# text=anime_model.description)
#
# self.download_image('https://s3.anilist.co/media/anime/cover/small/nx101359-X6psMqBfatdw.jpg')
#
# image = Image(source='thumbnails/img.png')
# content = BoxLayout()
# content.orientation = 'vertical'
#
# content2.pos_hint = {'center_x': 0.5, 'center_y': 0.5}
#
#
# content.add_widget(content2)
# content.add_widget(image)
# # content.add_widget(SmartTile(mapmap=True,source='https://s3.anilist.co/media/anime/cover/small/nx101359-X6psMqBfatdw.jpg'))
# #content.bind(texture_size=content.setter('size'))
# self.dialog2 = MDDialog(title=anime_model.name,
# content=content,
# size_hint=(.8, None),
# height=dp(500),
# auto_dismiss=False)
#
# self.dialog2.add_action_button("Dismiss",
# action=lambda *x: self.dialog2.dismiss())
# self.dialog2.open()

def anime_confirmation(self, anime_list):
for anime in anime_list:
Expand Down
2 changes: 0 additions & 2 deletions src/episode_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def search_with_episode(self, anime, episode, filename):
Global.ENG_LIST = anime_list_eng
self.add_to_list(anime_list_eng,fresh_list)

# Global.MAIN_WIDGET.ids.toolbar.left_action_items = [['arrow-left', lambda x: self.go_back()]]

def search(self, string):
Global.ROMAJI_LIST = []
Expand All @@ -133,5 +132,4 @@ def search(self, string):
def go_back(self):
self.manager.transition.direction = 'right'
self.manager.current = 'home'
# Global.MAIN_WIDGET.ids.toolbar.left_action_items = [['menu', lambda x: self.root.toggle_nav_drawer()]]
pass
17 changes: 0 additions & 17 deletions src/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,11 @@ def load_list(self):
self.manager.transition.direction = 'down'
self.manager.current = 'file_chooser'


# self.ids.home_spinner.active = True
# file = "test_" + Global.DB_FILE
# self.load_anime_list( file)
#
# self.ids.home_spinner.active = False

def remove_accord_test(self):
print(self.ids.accord_box.children)
for child in self.ids.accord_box.children:
print(child)
self.ids.accord_box.remove_widget(child)
# Global.MAIN_WIDGET.ids.home.ids.accord_box.remove_widget(self.ids.home_anime_list)


def add_accord_test(self):
Expand All @@ -164,16 +156,7 @@ def add_accord_test(self):
get_started.title = "This is where you're watchlist will show."
home_anime_list.add_widget(get_started)
navigate_to_crit = MDAccordionSubItem(parent_item= get_started, text='Get started by going to the criterea selection screen!')
# navigate_to_crit.on_release = functools.partial(self.navigate, 'criterea_selection')
get_started.add_widget(navigate_to_crit)
# get_started.icon = 'help'
# get_started.title = "This is where you'"
# get_started.md_bg_color = Global.SEASON_COLOR
# get_started.specific_text_color = get_color_from_hex('#000000')

# navigate_to_crit = MDAccordionSubItem(parent_item= get_started, text='Get started by going to the criterea selection screen!')
# get_started.add_widget(navigate_to_crit)
# accord.add_widget(get_started )

def add_item_accord_test(self):
home_anime_list = Global.MAIN_WIDGET.ids.home.ids.home_anime_list
Expand Down

0 comments on commit 441bd9a

Please sign in to comment.