MyAnime

This object and my_manga.MyManga should have a very close interface (except for volumes-chapters vs episodes). A basic object to obtain account specific data about an anime. Can manipulate the anime data in the account’s list.

class MyAnime(mal_id: int, my_mal_id, account)

Saves an account data about anime.

Variables:
  • my_enable_discussion – boolean
  • my_id – int
  • my_status – int. #TODO: put the dictionary here.
  • my_score – int.
  • my_start_date – string as mmddyyyy.
  • my_end_date – string as mmddyyyy.
  • my_priority – int.
  • my_storage_type – int. #TODO: put the dictanary here.
  • my_storage_value – float.
  • my_is_rewatching – boolean.
  • my_completed_episodes – int.
  • my_download_episodes – int.
  • my_times_rewatched – int.
  • my_rewatch_value – int.
  • my_tags – frozenset.
  • my_comments – string
  • my_fan_sub_groups – string.
add(account)

Adding the anime to an account. If its the same account as this owner returning this.

Parameters:account (account.Account) – account to connect to the anime.
Returns:anime connected to the account
Return type:account_objects.my_anime.MyAnime
delete()

Deleteing the anime from the list.

increase() → bool

Increasing the watched episode. If it is completed, setting the flag of rewatching.

Returns:True if succeed to set every.
Return type:bool
increase_downloaded() → bool

Increasing the downloaded episode.

Returns:True if succeed to set every.
Return type:bool
is_completed
Returns:True if the number of completed episode is equal to number of episode in anime.
Return type:bool
my_id
Returns:the id in the account.
Return type:int
my_reload()

Reloading data from MAL.

set_completed() → bool

Setting the anime as completed.

Returns:True if succeed
Return type:bool
set_completed_download() → bool

Setting the number of downloaded episodes as completed.

Returns:True if succeed
Return type:bool
to_xml()
Returns:the anime as an xml string.
Return type:str
update()

Updating the anime data.