Plugin.video.themoviedb.helper: Next up episodes

Created on 28 Dec 2019  路  20Comments  路  Source: jurialmunkey/plugin.video.themoviedb.helper

I would love for TMDbHelper to have a next up episode playlist instead of next up TV Shows.
That way, if you create a widget for it. It鈥檒l be just one click to start watching.

Thank you

Most helpful comment

You're right. I goofed. Here is the new log

Thanks!

Looking at the log, the title "My Hero Academia" is being found in the local library but it fails to match. The only thing that makes sense is that there is mismatch between the year in the library and what TMDb reports.

Can you download latest version and enable fuzzy matching for tvshows in the addon settings:
Video Addons > TMDb Helper > Info > Settings > Players > Allow fuzzy matches for tvshows

If this doesn't work then I'm completely stumped 馃槙

All 20 comments

Can you test latest commit? I've added a new section under Tvshows called "Your Next Episodes" which links directly to the episodes.

@jurialmunkey please don't remove the next up tv shows widget tho

@SoulTV - Never! I use that one all the time 馃槈 This episode one is in addition to the TvShows one.

I find the Tvshows one more useful personally because it allows you to skip ahead to a later episode, which is particularly useful if I watch an episode at a mate's place and haven't yet updated my Trakt history to reflect that.

Thank you very much.

But I鈥檓 not able to check it out right now. I鈥檓 away from home. But as soon as I get back I鈥檒l let you know.

I'm pretty sure it is working correctly from my tests but confirmation when you get the chance would be good!

Awesome, I can locate it. I can also set it up as a widget but when I try to play a show, either local or stream, I get this error:

2019-12-29 19:59:33.833 T:4067536896 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.themoviedb.helper/?info=play&widget=True&episode=11&tmdb_id=1958025&season=4&type=tv]

2019-12-29 19:59:36.207 T:3032466144 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type:
Error Contents: local variable 'is_local' referenced before assignment
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/plugin.video.themoviedb.helper/script.py", line 10, in
TMDbScript.router()
File "/home/osmc/.kodi/addons/plugin.video.themoviedb.helper/resources/lib/script.py", line 180, in router
self.play()
File "/home/osmc/.kodi/addons/plugin.video.themoviedb.helper/resources/lib/script.py", line 65, in play
season=self.params.get('season'), episode=self.params.get('episode'))
File "/home/osmc/.kodi/addons/plugin.video.themoviedb.helper/resources/lib/player.py", line 113, in play
if is_local:
UnboundLocalError: local variable 'is_local' referenced before assignment
-->End of Python script error report<--

Also, I have 2 shows that don't show epsiode names. Only the episode numbers.

Thank you.

@7E1EVEN - Okay, I think this issue should be fixed now. Can you test and confirm?

>

Also, I have 2 shows that don't show epsiode names. Only the episode numbers.

What shows don't have episode names? And what season / episode?
It most likely means that TMDb doesn't have details for those episodes yet but I'll look into it to make sure.

It doesn鈥檛 do anything now. It just loses focus then comes back. No logs either.

The shows in question are:
My Hero Academia - S04E11 - Lemillion
Black-ish - S06E08 - O, Mother Where Art Thou?

@7E1EVEN - Hmmm, strange. It's working for me.

Can you download latest version and turn on the addon's debug logging by going to Video Addons > TMDbHelper > Info > Settings > Expert > Debug Logging (Enable) > OK

Then try to play an item from nextepisodes list and post full debug log here using a log paste website like pastebin: https://pastebin.com/

I don't care if you have banned add-ons as they won't affect this issue - I just want to get to the bottom of the matter of why it's not playing.

Also FYI debug will dump a lot of information to the log, so make sure to disable it afterwards.

After rebooting I can play files using Seren as a default player. But local files are skipped.
This doesn't happen with movies.

Here is the debug log

What item is local that you are trying to play in that log? I only see you playing files with an external addon.

Yeah, exactly it doesn't even try to search locally first. It goes straight to external whereas with movies it works exactly as intented.

I have the first item in my library (My Hero Academia).

The plugin always searches locally first. It only goes to an external player if it can't find a match in the local library. Most likely the TV Show Title returned by TMDb doesn't match the TV Show Title in your library.

As this wasn't the original reported issue, I wasn't logging any of the Kodi DB checks. I've now added some additional debugging for the local lookups.

Can you install new version and get me a fresh debug log so that I can confirm that it is failing to match the title and not some other issue. Also, what is the exact tvshowtitle of My Hero Academia listed as in your Kodi Library? Is it the English name or the Japanese one?

Debug log

I don't know if it matters but Trakt is having issues now, so streaming isn't working right at the moment.
It failed to play an item.

It's listed as ''My Hero Academia'', the english version.

Debug log

I don't know if it matters but Trakt is having issues now, so streaming isn't working right at the moment.
It failed to play an item.

It's listed as ''My Hero Academia'', the english version.

I think you forgot to turn on the TMDbHelper's debug logging for that one...

I have noticed that Trakt is having some 502 connection errors at the moment. It shouldn't matter for playing local files though, as I use TMDb info to match with DBID.

For external players, Trakt supplies: {trakt} {imdb} {tvdb} {slug} {epid} {epimdb} {eptmdb} {eptrakt}. So if the Trakt look-up failed, then those infos will be empty when passed to external player.

You're right. I goofed. Here is the new log

You're right. I goofed. Here is the new log

Thanks!

Looking at the log, the title "My Hero Academia" is being found in the local library but it fails to match. The only thing that makes sense is that there is mismatch between the year in the library and what TMDb reports.

Can you download latest version and enable fuzzy matching for tvshows in the addon settings:
Video Addons > TMDb Helper > Info > Settings > Players > Allow fuzzy matches for tvshows

If this doesn't work then I'm completely stumped 馃槙

It worked! Thanks a lot!

You really went the extra mile. Your hard work is appreciated.

Could you point me to the direction where I can donate? I don鈥檛 have much but you really deserve it.

Again, thanks a lot and I hope you have a happy and safe new year!

Excellent! Glad we got there in the end! 馃榿

Paypal: http://www.paypal.me/jurialmunkey

I'll get this one up on the repo tomorrow 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iscriptu picture iscriptu  路  4Comments

drinfernoo picture drinfernoo  路  9Comments

djnield picture djnield  路  4Comments

umonkey13 picture umonkey13  路  3Comments

skyfsza picture skyfsza  路  9Comments