Skip to content

Add more documentation, clean up launchd plist, upgrade dependencies#1

Open
jeffbyrnes wants to merge 14 commits into
Slgoetz:mainfrom
jeffbyrnes:main
Open

Add more documentation, clean up launchd plist, upgrade dependencies#1
jeffbyrnes wants to merge 14 commits into
Slgoetz:mainfrom
jeffbyrnes:main

Conversation

@jeffbyrnes
Copy link
Copy Markdown

No description provided.

* launchd agents & daemons are conventionally named in reverse
domain format
* Move $PATH into the plist
* UserName isn’t needed for a User-level launchd agent (i.e., one that
goes in ~/Library/LaunchAgents)
* StartCalendarInterval obviates StartInterval
* Use bash shebang in start.sh to simplify from ProgramArguments
to Program
$USERNAME is close enough to $USER (which exists in every macOS shell)
to be confusing, this avoids that.
3-space indentation is unusual, this ensures folks abide by it.
Copy link
Copy Markdown

@yoclaire yoclaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

- Add LETTERBOXD_USER env var so Letterboxd and Plex usernames can differ
- Fetch all pages of the Letterboxd watchlist (was silently capped at ~72 films)
- Fix film detail URL to use /film/<slug>/ path (was hitting wrong endpoint)
- Match by title AND year to avoid false positives from same-named remakes
- Add try/catch in run() so failures exit with a non-zero code and a clear message
- Remove dead code: getWatchList, getWatchListMovies, xmlToJSON, unused imports

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jeffbyrnes
Copy link
Copy Markdown
Author

@Slgoetz just in case you missed this long ago, a little bump for you.

jeffbyrnes added 4 commits May 1, 2026 17:11
Fix sync reliability: pagination, film URL, year matching, error handling
The script name is how launchd displays the automated task. This means
in various macOS displays, the task will be listed as "start.sh", which
isn’t very descriptive.

By renaming it to "plex-letterboxd-sync", it becomes clear.
Missed in 3d622e0

Signed-off-by: Jeff Byrnes <thejeffbyrnes@gmail.com>
Signed-off-by: Jeff Byrnes <thejeffbyrnes@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants