Glagan / SyncDex

Automatically sync what you read on MangaDex across many services like MyAnimeList, Anilist, Kitsu and more.
Mozilla Public License 2.0
46 stars 0 forks source link

[BUG] Trying to import from Mangaupdates fails #26

Closed Jerrk closed 3 years ago

Jerrk commented 3 years ago

Describe the bug Trying to import reading progress from mangaupdates does not work. it gives me this error.

TypeError: can't access property "textContent", name is null
Stack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/options/SyncDex_options.js:4784:29

To Reproduce Steps to reproduce the behavior:

  1. Go to SyncDex options page
  2. Login to Mangaupdates under sources
  3. Click import, start.
  4. See error

Expected behavior (optional) I expect the tracking information from MU to be imported.

Screenshots image

Browser Firefox 86.0a1 (2021-01-11) (64-bit)

Options and logs

{"import":1610373217736,"lastSync":1610373279000,"logs":[{"d":1610369998215,"msg":"Installation version 0.1.9"},{"d":1610370508026,"msg":"Importing lists"},{"d":1610370508027,"msg":"Importing Kitsu"},{"d":1610370520981,"msg":"Imported Kitsu in 12953ms"},{"d":1610370520983,"msg":"Importing MangaUpdates"},{"d":1610370524790,"msg":"TypeError: can't access property \"textContent\", name is null\nStack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/background/SyncDex_background.js:4635:29\n"},{"d":1610370524806,"msg":"Could not import MangaUpdates | Status: 5"},{"d":1610370524808,"msg":"Importing MyAnimeList"},{"d":1610370543232,"msg":"Imported MyAnimeList in 18423ms"},{"d":1610370543233,"msg":"Importing Anilist"},{"d":1610370546229,"msg":"Could not import Anilist | Status: 4"},{"d":1610370546283,"msg":"Done Importing lists"},{"d":1610371593468,"msg":"Obtained Dropbox token"},{"d":1610371595224,"msg":"No external lastSync or not forced, uploading save."},{"d":1610371600944,"msg":"Uploaded Local Save to Dropbox"},{"d":1610371600948,"msg":"Synced your save with Dropbox"},{"d":1610371621873,"msg":"Uploaded Local Save to Dropbox"},{"d":1610372448079,"msg":"No external lastSync or forced, uploading save."},{"d":1610372454697,"msg":"Uploaded Local Save to Dropbox"},{"d":1610372454713,"msg":"Synced your save with Dropbox"},{"d":1610372757867,"msg":"No external lastSync or forced, uploading save."},{"d":1610372761599,"msg":"Uploaded Local Save to Dropbox"},{"d":1610372761660,"msg":"Synced your save with Dropbox"},{"d":1610372829402,"msg":"No external lastSync or forced, uploading save."},{"d":1610372833367,"msg":"Uploaded Local Save to Dropbox"},{"d":1610372833395,"msg":"Synced your save with Dropbox"},{"d":1610373176730,"msg":"No external lastSync or forced, uploading save."},{"d":1610373180324,"msg":"Uploaded Local Save to Dropbox"},{"d":1610373180341,"msg":"Synced your save with Dropbox"},{"d":1610373213537,"msg":"Save already synced with Dropbox"},{"d":1610373213940,"msg":"Importing lists"},{"d":1610373213963,"msg":"Importing Anilist"},{"d":1610373217474,"msg":"Could not import Anilist | Status: 4"},{"d":1610373254305,"msg":"TypeError: can't access property \"textContent\", name is null\nStack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/options/SyncDex_options.js:4784:29\n"},{"d":1610373270601,"msg":"TypeError: can't access property \"textContent\", name is null\nStack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/options/SyncDex_options.js:4784:29\n"},{"d":1610373278080,"msg":"No external lastSync or forced, uploading save."},{"d":1610373281236,"msg":"Uploaded Local Save to Dropbox"},{"d":1610373281246,"msg":"Synced your save with Dropbox"},{"d":1610373317249,"msg":"TypeError: can't access property \"textContent\", name is null\nStack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/options/SyncDex_options.js:4784:29\n"},{"d":1610373492893,"msg":"TypeError: can't access property \"textContent\", name is null\nStack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/options/SyncDex_options.js:4784:29\n"},{"d":1610373607365,"msg":"TypeError: can't access property \"textContent\", name is null\nStack: MangaUpdatesImport/this.execute@moz-extension://c8581ea9-3358-4295-bcfe-b62095dc0b13/options/SyncDex_options.js:4784:29\n"}],"options":{"hideHigher":false,"hideLower":true,"hideLast":true,"highlight":true,"groupTitlesInLists":true,"thumbnail":true,"originalThumbnail":true,"progressInThumbnail":true,"thumbnailMaxHeight":80,"separateLanguages":true,"favoriteLanguage":"all","saveOpenedChapters":true,"chaptersSaved":100,"saveOnlyHigher":true,"saveOnlyNext":false,"confirmChapter":false,"updateOnlyInList":true,"iconsSilentAfterSync":false,"linkToServices":true,"overviewMainOnly":true,"autoSync":true,"mdUpdateSyncDex":true,"biggerHistory":false,"chapterStatus":false,"notifications":false,"errorNotifications":true,"useMochi":true,"acceptLowScore":false,"updateMD":false,"checkOnStartup":true,"checkOnStartupMainOnly":true,"checkOnStartupCooldown":30,"silentUpdate":false,"services":["al","mal","mu","ku","ap"],"mainService":"al","noReloadStatus":true,"tokens":{"anilistToken":"set","kitsuToken":"set","kitsuUser":"set"},"colors":{"highlights":["rgba(22, 65, 87, 0.8)","rgba(28, 103, 141, 0.8)","rgba(28, 135, 141, 0.8)"],"nextChapter":"rgba(199, 146, 2, 0.9)","higherChapter":"rgba(199, 146, 2, 0.1)","lowerChapter":"rgba(180, 102, 75, 0.4)","openedChapter":"rgba(28, 135, 141, 0.4)"},"version":0.1,"subVersion":9},"saveSync":{"service":"Dropbox","token":"set","expires":1610385992449,"refresh":"set"}}

Additional context

Been an avid used of MMD, glad to see you expanding the functionality πŸ‘

Glagan commented 3 years ago

I recognize your username :)

It's weird, I never saw a Title without a name on MangaUpdates, could I have a screenshot of the page 2 of your lists (https://www.mangaupdates.com/mylist.html?page=2) if it's not too much, or just tell me if ther is an empty row or something different from the other rows.

It should be fixed with the next update but you might have a missing title since it will just ignore the error for the row.

Jerrk commented 3 years ago

not sure which sorting settings you're using as default image

there is no way for me to get a list with 5 pages to check page 2. with 10 pages i checked both pages 3 and 4 and did not see a blank namespace. but then again i'm not sure which sorting options you use πŸ˜„.

i also scrolled through my entire list and couldnt see any empty namespaces, i saw 3 with an atypical character so i removed them temporarily and tried the import again with no luck.

edit: V0.2.0 import works though πŸ™‚

Glagan commented 3 years ago

SyncDex see what you see since it just make the request for you, and it display the same amount of titles per page that you have.
The import display Page 2 of 5 because I can't see the last page, and it will update when it goes on the next pages.

Try again on version 0.2.0 and if it still doesn't work there's a bug somewhere.

Jerrk commented 3 years ago

V0.2.0 works, it skips over a couple but shouldn't be a big issue as of yet πŸ™‚