()
| 428 | |
| 429 | |
| 430 | def start(): |
| 431 | # Watched shows |
| 432 | shows = get_anime_shows() |
| 433 | watched_shows = get_plex_watched_shows(shows) |
| 434 | |
| 435 | mal_list = get_mal_list() |
| 436 | |
| 437 | # Add seasons to list |
| 438 | mal_list_seasoned = match_seasons_on_mal_list(mal_list) |
| 439 | updated_mal_list = update_mal_list_with_seasons( |
| 440 | mal_list_seasoned, watched_shows) |
| 441 | |
| 442 | send_watched_to_mal(watched_shows, mal_list, updated_mal_list) |
| 443 | logger.info('Plex to MAL sync finished') |
| 444 | |
| 445 | |
| 446 | if __name__ == '__main__': |
no test coverage detected