Closed matke-84 closed 3 years ago
@matke-84 hi. looks like you do not have debug enabled in elementum so i do not see some info. also it is better to use 1 log file per 1 problem, otherwise it is hard to trace the particular problem in 1 big log file.
i do not see error in log but i think it is #793 that will be fixed by #794 . see that issue for intermediate fix.
+6. these 2 came up because of the hack i used to make kodi manage artworks for non-library items - if item in library - then we use real kodi library id and everything is legit, otherwise we generate fake id. i expected that it will break some addons that rely on info from kodi lib, but also i just did not expect that people will use such addons on items that are not from library.
in your case the issue is caused by script.skin.helper.service
and script.module.metadatautils
- you can see their errors in log.
they invoke kodi lib api requests 'method': 'VideoLibrary.GetTvShowDetails', 'params': {'tvshowid': 1000001399,
and 'method': 'VideoLibrary.GetMovieDetails', 'params': {'movieid': 1000293660,
on fake items and they fail.
i guess before they simply did not show you info since there were no kodi id for elementum items. is this assumption correct?
anyway, i think i will disable it by default and mark as "use at your own risk".
for more artworks - fanart.tv should be enabled. but i see it is enabled in your log, but i also do not see any errors and it works for me. either it is skin issue or caused by issues described above. do you use this feature on elementum or kodi library item? (if elementum - is this item also added to library?)
in general, context menu addon is supposed to be used on kodi library items only, with some exceptions like "assign torrent". "mark as watched" in context addon only for kodi lib. for elementum - internal menu. it will be hidden by https://github.com/elgatito/context.elementum/pull/22
with tmdb as a info source it is not super slow - try to use "trakt as a info source" to see real slow :-) anyway - when list has many shows and vast majority of these show are not watched by you - it will take a lot of time, since we check every episode against our internal database with playcounts. that's why it is disabled by default. maybe i will be able to fix it, otherwise - "use at your own risk" again.
@antonsoroko
@antonsoroko One very important thing. All the skins that use skin helper service, metadatautils... have these bugs that I have with my skin ... There are a lot of such skins.
@matke-84
@antonsoroko
@antonsoroko
2021-06-21 09:20:19.675 T:308 DEBUG <general>: script.module.metadatautils --> {'jsonrpc': '2.0', 'method': 'VideoLibrary.GetMovieDetails', 'params': {'movieid': 1000293660, 'properties': ['dateadded', 'file', 'lastplayed', 'plot', 'title', 'art', 'playcount', 'streamdetails', 'director', 'resume', 'runtime', 'plotoutline', 'sorttitle', 'cast', 'votes', 'showlink', 'top250', 'trailer', 'year', 'country', 'studio', 'set', 'genre', 'mpaa', 'setid', 'rating', 'tag', 'tagline', 'writer', 'originaltitle', 'imdbnumber', 'uniqueid']}, 'id': 1}
2021-06-21 09:20:19.675 T:308 WARNING <general>: Skin Helper Service --> Exception details: Type: KeyError Value: 'cast' Traceback: Traceback (most recent call last):
File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\plugin_content.py", line 67, in main
getattr(self, action)()
File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\plugin_content.py", line 266, in getcast
all_cast = self.mutils.kodidb.movie(db_id)["cast"]
KeyError: 'cast'
2021-06-21 09:20:19.675 T:308 ERROR <general>: Skin Helper Service --> Exception in resources.lib.plugin_content ! --> 'cast'
...
2021-06-21 09:20:25.237 T:8272 DEBUG <general>: script.module.metadatautils --> {'jsonrpc': '2.0', 'method': 'VideoLibrary.GetTvShowDetails', 'params': {'tvshowid': 1000001399, 'properties': ['dateadded', 'file', 'lastplayed', 'plot', 'title', 'art', 'playcount', 'sorttitle', 'mpaa', 'premiered', 'year', 'episode', 'watchedepisodes', 'votes', 'rating', 'studio', 'season', 'genre', 'cast', 'episodeguide', 'tag', 'originaltitle', 'imdbnumber']}, 'id': 1}
2021-06-21 09:20:25.238 T:8272 WARNING <general>: Skin Helper Service --> Exception details: Type: KeyError Value: 'season' Traceback: Traceback (most recent call last):
File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\plugin_content.py", line 67, in main
getattr(self, action)()
File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\plugin_content.py", line 272, in getcast
all_cast = self.mutils.kodidb.tvshow(db_id)["cast"]
File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\helpers\kodidb.py", line 57, in tvshow
return self.tvshow_watchedcounts(tvshow)
File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\helpers\kodidb.py", line 742, in tvshow_watchedcounts
tvshow["extraproperties"] = {"totalseasons": str(tvshow["season"]),
KeyError: 'season'
2021-06-21 09:20:25.238 T:8272 ERROR <general>: Skin Helper Service --> Exception in resources.lib.plugin_content ! --> 'season'
in my kodi i do not need to add anything manually
@antonsoroko Tested on two different devices (pc and android box). The same thing.
@antonsoroko All that does not make sense to me. I would just remove all that functionality or add customer art selector like they do in tmdb helper. Otherwise the feature is not usable and makes more trouble than help.
@elgatito we can keep this feature at least for real kodi libary items - there are no issues with them. but for non-library items - i am not sure how to proceed. i did not expect such issues. maybe it is better to remove fake ids.
@elgatito @antonsoroko I really like this option (choose artwork) and I know many will love it but unfortunately it is not good in this form. It's made a lot of trouble. If it can be done like in tmdb helper then it will be great. I still hope you find some way to sort out this option.
ok, lets remove it for non-library items.
in a meantime i found a bug with "Show number of unwatched episodes" - even with tmdb as a source, code still made requests to trakt and thus slowness.
@antonsoroko This then explains why it takes so long to load.
okay. i made PRs with all fixes. i hope new release will be ok.
@antonsoroko Great. I am very sorry for these functions choose artwork, but I hope that you and @elgatito will find a better and easier way to implement them. Will there be an update today?
@antonsoroko Did you manage to fix the "Show number of unwatched episodes" slow loading?
Yes, see PR above.
@antonsoroko I'm sorry, I'm looking at the phone, so I didn't see it well. Can we expect some urgent update given the fact that the elementum is not working properly at the moment?
it is not up to me. when author will have free time - he will do release.
Ohhh. OK. Thanks.
Yeah, this update totally prevent any kind of playback on my kodi 17.6. I have an almost barebone installation. Only core stuff and trakt plus elementum and burst.
In my opinion the last elementum I had no issues with was 0.1.76. I was so miffed yesterday not being able to watch my already downloaded seasons (I use all files) I tried to clean cahes, clean, torrents, databases. Nothing helped (since that helped the issue I had with 0.1.77 see closed bug).
I then tried to just start from beginning with an empy .kodi/ directory. Fresh install 0.1.79 and after setting trakt and subtitles addons up it was time to install elementum 0.1.79 and guess what?
Just keeps crashing. I'm so mad. Can someone just link me the 0.1.76 release so I can have my media center back?
@ThurahT You have no reason to be angry. @elgatito and @antonsoroko do this completely free of charge for all of us and it should be respected.
I know how FLOSS works. It doesn't prevent me from being miffed when I've prepared an evening and nothing works.
Jfyi: If you had your files already downloaded as you said - you could have simply watched them directly in kodi, from elementum's download directory.
There was nothing in left in elementums directories since I had tried "fixing" the mess with what helped me last time. Cleaning out caches and torrents.
Sure I could play them in mpv outside of kodi. But what's the point of kodi then? It's the trakt and tmdb integration that makes it a media center for me.
I am trying to install and set up all accounts now along with a fresh 0.1.78 install and see if I can get this up and running as it used to.
A question. If I get it up and running again can I still update context helper and burst as usual since I will never again update elementum? Or will something eventually break if I keep ignoring elelmentum updates?
Sure I could play them in mpv outside of kodi.
I meant you could have used the Kodi itself to play a video. But yes, trakt sync would have been temporarily unavailable. Also, even if you decided to delete everything, you could have deleted torrents without files, in order to have a backup plan.
since I will never again update elementum?
Honestly, I do not even want to answer a question like this. I hope you understand that this statement is simply disrespectful. You could have asked a technical question without declaring you feelings or intentions. If you wanted to ask hypothetical question then you should have phrased it correctly (e.g. by using "if" instead of "since").
Anyway, burst is loosely coupled with elementum, context is tightly coupled.
@matke-84
OK. I didn't know that. In that case, I will not be able to use it in widgets, but only directly in elementum.
if https://github.com/elgatito/context.elementum/pull/21 and https://github.com/elgatito/elementum/pull/75 will be merged then it will work for widgets as well.
I meant no disrespect. I am also not a native english speaker. Since and if are basically the same in my language.
I am glad that there is work being done on elementum. Think no nothing else, but perhaps we should have a beta channel for your new features and a stable for people who wants noting else than watch their shows with trakt and tmdb integration?
@matke-84
OK. I didn't know that. In that case, I will not be able to use it in widgets, but only directly in elementum.
if elgatito/context.elementum#21 and elgatito/elementum#75 will be merged then it will work for widgets as well.
That's good news. 👍
but perhaps we should have a beta channel for your new features and a stable for people who wants noting else than watch their shows with trakt and tmdb integration?
that would be great i think. we already have a gitter chat https://gitter.im/ElementumApp/Lobby for communication (but this chat is "silent" for a long time). the only thing is to find beta testers :-) also i am not sure if it will be convenient for author to make beta builds.
but in general it would be great to have beta testers.
okay. new elementum release is live. thanks to author. please test.
also context addon was released.
scratch that. new issue.
https://github.com/elgatito/plugin.video.elementum/pull/799
definitely today is not my day.
0.1.81 should be ok.
@antonsoroko For now everything works fine. "Show number of unwatched episodes" is much, much faster. Mark as watched in trakt from elementum context menu works with widgets. Network studio for tv shows also works. All movies and tv shows can watched. All skin functions work again. Do not worry. Everything is ok now. Thanks a lot for the new stuff. My only regret is that choose artwork does not work, but I know that you and @elgatito will find a solution for that as well. Thanks again for everything. 😉
@matke-84 Thank you for testing.
"Show number of unwatched episodes" is much, much faster.
Btw, it takes basically the same time as without it. Overhead is about 10 milliseconds with tmdb, because tmdb provided all data about tv show in 1 call. with trakt it will take much more time since we had to make several additional calls to get seasons and episodes inside seasons.
@matke-84 Thank you for testing.
"Show number of unwatched episodes" is much, much faster.
Btw, it takes basically the same time as without it. Overhead is about 10 milliseconds with tmdb, because tmdb provided all data about tv show in 1 call. with trakt it will take much more time since we had to make several additional calls to get seasons and episodes inside seasons.
@antonsoroko Yeah, it works fast as without this option. Really good job. 👍
@antonsoroko @elgatito Hi guys. first I would like to thank you for all the implementations in this update. But unfortunately some things don’t work properly. So let's start.