croneter / PlexKodiConnect

Plex integration in Kodi done right
GNU General Public License v2.0
1.16k stars 77 forks source link

TV Shows will not 'Play from Beginning' while marked as in-progress #2094

Open Psychotic-Chaos opened 3 months ago

Psychotic-Chaos commented 3 months ago

Help yourself

Describe the bug

When a TV episode is in progress, choosing the "play from beginning" option resumes the episode instead. The same feature works without issues when playing movies. This might be a regression of https://github.com/croneter/PlexKodiConnect/issues/1439, however, looking through that BUG it doesn't appear that it was ever addressed. Notes indicate that it might be kodi related, however, this was almost 3 years ago. Seeing that each caterogy has its own plugin (plugin://plugin.video.plexkodiconnect.tvshows or plugin://plugin.video.plexkodiconnect.movies) when it calls back the file this seems more like issue. Get same results when using a fresh installation of either Kodi 20 or Kodi 21 (stable version).

Current Configuration

To Reproduce

1). Find a TV show marked "in progress" 2). Click the title and choose "Play from beginning"

Testing Method

// Timestamp of TV Show Test Method (doesn't work as intended) 2024-06-08 21:44:34.332 T:5151

// Timestamp of Movie Test Method (works correctly) 2024-06-08 21:54:05.057 T:5151

Expected behavior

You need to attach a KODI LOG FILE!

Kodi Log attached (deleted plextoken, user accounts, and associated IP addresses) kodi.log

Psychotic-Chaos commented 1 month ago

@croneter Can I get confirmation if this is a regression? I am seeing conflicting information in regards to "Play from beginning" when selecting a TV Episode. I see a post from yourself about 8 years ago indicating that this wasn't possible when using widgets, however, https://github.com/croneter/PlexKodiConnect/issues/1439 seems to read as it shouldn't be an issue. I just spun up a Windows 11 VM with Kodi 21 running on it and the "Play from beginning" works fine on TV Episodes when I have widgets going.

The problem is that I need to be running CoreELEC Kodi 21 version to be able to playback Dolby Vision files and I have various older individuals that would like to be able to select "Play from beginning" when a file is already in-progress. Not sure why TV episodes has issues on CoreELEC as the movie plugin doesn't run into this issue. The only difference between the movie and tv plugin from the default.py is below:

__base__ = xbmcvfs.translatePath(__temp_path__.encode('utf-8'))

# Put the request into the 'queue'
    if not sys.argv[2]:
        # Browsing to a tv show from a tv show info dialog - picked up
        # by kodimonitor.py and its method OnAdd
        xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, xbmcgui.ListItem())
        return

https://forums.plex.tv/t/plexkodiconnect-kodi-plex-integration-done-right/137555/1875

@Zekeman2299 said: Ok another issue which seems more important. PKC wont save media position (TV Show) or when I select “Play from beginning” from partially watched media it does not start over but continues where it was… how can I fix this?

Don’t use Kodi widgets, then everything works as expected