skylex / xbmc-betaseries

Kodi Plugin which allows to mark your episodes as watched on BetaSeries.com
GNU General Public License v2.0
24 stars 16 forks source link

Unable to mark episodes as watched #16

Closed bananabomb59 closed 6 years ago

bananabomb59 commented 6 years ago

Hi,

I have an issue since a couple of days, I can't mark any episode as watched from Kodi. It seems that the plugin tries to add the show to my account, which it can't do because I'm already following this show, and the whole thing makes the process fail.

Here's a log extract, where you'll see that the plugin seems to give the proper update to mark the episode as watched, but then unexplicably tries to add the show to the account :

10:57:41.336 T:1805063152   DEBUG: PushCecKeypress - received key  b duration 0 (rep:0 size:0)
10:57:41.336 T:1805063152   DEBUG: PushCecKeypress - added key  b
10:57:41.379 T:1959055360   DEBUG: OnKey: 11 (0x0b, obc244) pressed, action is Select
10:57:41.462 T:1805063152   DEBUG: PushCecKeypress - received key  b duration 127 (rep:0 size:0)
10:57:41.462 T:1805063152   DEBUG: PushCecKeypress - ignored key  b
10:57:41.604 T:1959055360   DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
10:57:41.614 T:1717654512   DEBUG: Thread JobWorker start, auto delete: true
10:57:41.632 T:1959048176   DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc
10:57:41.632 T:1959048176   DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnUpdate
10:57:41.682 T:1959055360   DEBUG: CGUIMediaWindow::GetDirectory (videodb://tvshows/titles/52/-2/?tvshowid=52&xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22tvshows%22%7d)
10:57:41.682 T:1959055360   DEBUG:   ParentPath = [videodb://tvshows/titles/52/-2/?tvshowid=52&xsp=%7b%22order%22%3a%7b%22direction%22%3a%22ascending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22sorttitle%22%7d%2c%22type%22%3a%22tvshows%22%7d]
10:57:41.704 T:1752781808   DEBUG: service.betaseries.com: episode status changed for library id = 1215, playcount = 1
10:57:41.720 T:1717654512   DEBUG: RunQuery took 10 ms for 13 items query: select * from episode_view  WHERE episode_view.idShow = 52
10:57:41.737 T:1717654512   DEBUG: RunQuery took 8 ms for 0 items query: select * from movie_view join movielinktvshow on movielinktvshow.idMovie=movie_view.idMovie WHERE movielinktvshow.idShow = 52
10:57:41.773 T:1959055360   DEBUG: WindowVideoNav::GetDirectory
10:57:41.802 T:1697641456   DEBUG: Thread BackgroundLoader start, auto delete: false
10:57:41.825 T:1959055360   DEBUG: [Warning] CGUITextureManager::GetTexturePath: could not find texture 'noop'
10:57:41.827 T:1697641456   DEBUG: Thread BackgroundLoader 1697641456 terminating
10:57:42.733 T:1752781808  NOTICE: service.betaseries.com: betaseries error : 0 L'utilisateur a déjà cette série dans son compte.
10:57:42.734 T:1752781808  NOTICE: service.betaseries.com: failed to follow show Marvel's The Punisher
10:57:42.740 T:1959055360   DEBUG: ------ Window Init (DialogNotification.xml) ------
10:57:44.687 T:1959055360   DEBUG: ------ Window Deinit (DialogNotification.xml) ------

Could you please have a look at it ?

Thank you

demathif commented 6 years ago

same there.
as a WA, you could prevent the agent to add 'shows' in the configuration menu.

bananabomb59 commented 6 years ago

Great idea, it didn't even cross my mind ! This workaround will do just fine until the bug is corrected. Thank you.

Mirgolth commented 6 years ago

Pb with API error code, not the addon.

bananabomb59 commented 6 years ago

Indeed it was an error with the API and not the add-on, I close the issue.