Fixed import

This commit is contained in:
Eduard Urbach 2017-07-04 16:24:46 +02:00
parent 52431a0a05
commit 10c5e4af8e
3 changed files with 12 additions and 3 deletions

View File

@ -50,7 +50,13 @@ func findAllMatches(allAnime []*arn.Anime, animeList *arn.AniListAnimeList) []*a
matches = importList(matches, allAnime, animeList.Lists.OnHold)
matches = importList(matches, allAnime, animeList.Lists.Dropped)
for _, list := range animeList.CustomLists {
custom, ok := animeList.CustomLists.(map[string][]*arn.AniListAnimeListItem)
if !ok {
return matches
}
for _, list := range custom {
matches = importList(matches, allAnime, list)
}

View File

@ -1,7 +1,7 @@
component ImportAnilist(user *arn.User, matches []*arn.AniListMatch)
h2= "Import: anilist.co"
h2= "anilist.co Import (" + user.Accounts.AniList.Nick + ", " + toString(len(matches)) + " anime)"
table
table.import-list
thead
tr
th anilist.co

View File

@ -0,0 +1,3 @@
.import-list
max-width table-width-normal
margin 0 auto