Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Psychotic-Chaos opened this issue Jun 9, 2024 · 1 comment

Comments

@Psychotic-Chaos
Copy link

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 #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

  • Kodi (21.0 (21.0.1) Git:9ff2add48b87bff682c9a7db1e62d0c2663cf1eb). Platform: Linux ARM 32-bit
  • Running on UGOOS AM6B with CoreELEC (official): 21.1-Omega_nightly_20240608, kernel: Linux ARM 64-bit version 4.9.269
  • Host CPU: Amlogic S922X rev b, 6 cores available
  • Latest PlexConnect 3.10.2

To Reproduce

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

Testing Method

  • Started unwatched video (position 0)
  • Played for about 3 minutes and stopped video
  • Resumed playback, which started at correct spot for about 2-3 minutes and stopped video
  • Selected "Play from beginning"

// 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

  • Selected episode should start back at the beginning (AKA position 0)

You need to attach a KODI LOG FILE!

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

@Psychotic-Chaos Psychotic-Chaos changed the title TV Shows will not 'Play from Beginning' while TV Shows will not 'Play from Beginning' while marked as in-progress Jun 9, 2024
@Psychotic-Chaos
Copy link
Author

@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, #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant