Add --pr option to self update
$ plextraktsync self-update --pr 838
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
@@ -238,6 +238,12 @@ def subdl():
@command()
+@click.option(
+ "--pr",
+ type=int,
+ default=False,
+ help="Update to Pull Request Id",
+)
def self_update():
"""
Update PlexTraktSync to the latest version using pipx

MODIFY
plextraktsync/commands/self_update.py
plextraktsync/commands/self_update.py
@@ -36,6 +36,11 @@ def enable_self_update():
return package is not None
-def self_update():
+def self_update(pr: int):
+ if pr:
+ click.echo(f"Updating PlexTraktSync to the pull request #{pr} version using pipx")
+ system(f"pipx install --suffix=@{pr} --force git+https://github.com/Taxel/PlexTraktSync@refs/pull/{pr}/head")
+ return
+
click.echo("Updating PlexTraktSync to the latest version using pipx")
system("pipx upgrade PlexTraktSync")

Add --pr option to self update

$ plextraktsync self-update --pr 838