Fixed import
This commit is contained in:
parent
52431a0a05
commit
10c5e4af8e
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
3
pages/listimport/listimportanilist/anilist.scarlet
Normal file
3
pages/listimport/listimportanilist/anilist.scarlet
Normal file
@ -0,0 +1,3 @@
|
||||
.import-list
|
||||
max-width table-width-normal
|
||||
margin 0 auto
|
Loading…
Reference in New Issue
Block a user