Jump to content

Script: Clean Continue Watching Ribbon since 4.7.0.19


ginjaninja

Recommended Posts

ginjaninja

Requirements

  • Powershell 7

Purpose

Get the 4.7.0.19+ CW Ribbon in a fit state to use,  so that the new rewatch behaviour can be reviewed going forward.

Design

  • For each show, ensures the last played episode in formal episode play order has the most recent lastplayeddate if either
  •  
  • the last played episode is not the last played episode in the formal play order or
  • multiple episodes share the lastplayed datetime of the last played episode in the formal episode play order
  •  
  • by nudging the lastplayeddate of the last played episode in the formal episode play order by 2minutes onwards
  • in testmode the script pauses in between shows, the episodetimes are dumped to txt files and the script reports what it would have done rather than updating database.
  • image.png.0e86a0cb3672bcae482d2d831896c61e.png

Installation

  • Tweak config.psd1 to suit
  • ensure testmode=$true until tested

Use

.\CleanCW.ps1

designed to be run once per user

Notes

currently hardcoded to a single user, this can be improved if there is a call for

assumes the api outputs episodes in the formal play order

tested on windows

caution: the script updates lastplaydate on a single episode per series, backup database prior to use. only use if you want your last played episode in the formal episode play order to have the most recent distinct lastplayeddate.

A potential downside of using the script is it will hide the current issue, maybe permanently, making it harder to test any improvements in an official update.

issues and suggestions welcome

 

Files

CleanCW v0.0.0.1.zip

 

  • Like 2
Link to comment
Share on other sites

7 hours ago, neik said:

Thanks for the script helping to clean up the mess the devs created.

Yeah, those devs suck.  Introducing an issue in a beta line... who ever heard of such a thing?

  • Like 2
  • Haha 4
  • Agree 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...