Repository navigation
·
26 commits
to f575bd58cc2b80789d7f4f099a23e55e6d1d8fff
since this release
Security
- Settings secrets stay with admins. With the user system on, non-admin users (and their API tokens) now get the settings with every key, token, password and private list URL hidden. Before, any logged-in user, including requesters, could read your Plex token, debrid keys and other secrets
- Repair actions are admin-only. Running repairs, deleting broken files, changing repair settings and pausing or skipping the nightly scan now need an admin (or an admin's API token, for scripts)
- Requesters can request, not change things. Requesters can no longer start subtitle downloads, rescrape items or send them back to Wanted; regular users keep those library actions. Saving Discover filters as an Adaptive List and changing queue workers change Clyde's settings, so only admins can do that now (the Adaptive List button shows for admins only)
- Plex poster proxy only fetches artwork. It used to pass any path to your Plex server with your admin token
- Other websites can no longer use Clyde's API from your browser. Cross-site requests are now limited to Clyde's own address
- Optional webhook token. Settings → UI Settings has a new Webhooks card with a token setting. Leave it blank and webhooks stay open as before. Set it and every
/webhook/...call (Overseerr-style requests, Agregarr, the rclone and Plex scan webhooks) must include it: add?token=<your token>to the webhook URL, or use it as the API key in Agregarr. Remember to update those apps when you set it - Safer logins. After 10 failed logins in 15 minutes from one address, that address has to wait. Failed attempts from other addresses don't lock you out of your own (behind a reverse proxy too: an address you've logged in from before is never caught by the proxy-wide limit), faking the client address doesn't get around the limit, and users sharing one network address (for example behind Docker) don't lock each other out. Logging in now gets a fresh session, and logging out ends the session on the server too
- The default admin password is no longer written to the log, and generated passwords use a secure random source
- Torrent links fetched by Clyde can't point inside your network. When you add a torrent by its http(s) link, Clyde won't fetch addresses on your private network (your configured indexers are still allowed and it connects only to the address it checked, so a hostname can't switch to a private address in between)
- Uploads are capped at 64 MB, and the secret key file that signs logins is now readable only by Clyde
Debrid fixes
- Failed debrid deletes are no longer reported as done. On Real-Debrid, AllDebrid, Premiumize and DebridLink, a delete that failed (rate limit, outage) was logged as removed and the torrent stayed on your account. Clyde now reports it and tries again later. A torrent that's already gone still counts as removed
- TorBox queued downloads aren't dropped. A torrent TorBox queued instead of starting right away was treated as missing after about 90 seconds and sent back to Wanted, while TorBox went on to download it. Clyde now waits for it, follows it once TorBox starts it (also after a restart), and removes the right torrent if it has to be cleaned up
- A failed upgrade can't get stuck in Checking. If a failed upgrade had no saved state to go back to, it stayed in Checking and repeated its failed-upgrade notification every 30 seconds. It now keeps the copy you already had
- Fewer "database is locked" errors. The queue cleanup task used to hold the database while it talked to your debrid service and Plex. It now finishes its database work first, and it never deletes a file the replacement copy is using
- TorBox and HighWay now report failed deletes the same way as the other debrid services
- Real-Debrid's blocked releases are skipped for good, on Real-Debrid only. When Real-Debrid refuses a release with a 451 (it removed it for legal reasons), Clyde never sends that release to Real-Debrid again: before, it was retried after 24 hours, with a burst of errors in the log each time. The block applies only to Real-Debrid. The release is not added to Clyde's not-wanted list, so TorBox and your other debrid services can still use it
- Premiumize adds are gentler. Clyde backs off while waiting for a new transfer instead of polling your whole transfer list every second, and removes a transfer that errors
Queue fixes
- Wanted doesn't get stuck behind the same items. Items that keep coming back as "wait" or "error" now step aside for up to 5 minutes, so titles further down the list get their turn
- No more re-scraping every minute. When another copy of the same episode is already downloading, Clyde now waits for it before scraping again, instead of running a full scrape and sending the item back to Wanted every 60 seconds
- Re-requests aren't deleted. Requesting something again that you already have in the same quality (from the Request page or Magnet Assigner) is no longer removed by the hourly cleanup as a duplicate
- The cleanup keeps the right row. When two entries pointed at the same file, the cleanup could delete the one that actually held the file. It now keeps that one
- A duplicate NZB grab is removed instead of becoming an empty Collected entry
- Failed adds don't go backwards or leave torrents behind. An error after an item already moved to Checking no longer sends it back to Scraping, and a torrent Clyde added for an item that then failed is removed from your debrid account. Torrents that were already on your account are never removed
- Collected notifications survive a crash. Clyde no longer deletes the pending list before handing it over for sending, so a crash or error at that point keeps them for the next run (dropped only after 5 failed tries or 24 hours)
- Samples aren't added as a second copy. A release's sample named
sample-<release name>.mkvwas treated as another version of the episode, so it got its own Collected entry and a symlink in your library. It's now skipped like other samples - Multi-movie packs pick the right film. Files without a year in their name can now match the movie you asked for by title, instead of falling back to the biggest file in the pack
- No double processing after saving settings. Clyde now lets running queue jobs finish before it restarts its scheduler, and stopping Clyde can no longer hang on a background job
- Database hiccups don't reset the queues. A failed database read used to look like an empty queue to Checking and Upgrading, which then forgot what they were tracking. They now keep their state and try again
- Post-processing runs once. Scripts, subtitle downloads and other actions after an item is collected could run twice when the database was busy
- Upgrade snapshots aren't lost. When several parts of Clyde saved upgrade snapshots at once, the last save could erase the others, which made a failed upgrade unable to go back to your old file
- TorBox queued downloads remember their real ID, so Clyde stops looking them up again after TorBox starts them, and after a restart
- Upgrade history isn't lost. The upgrade counts, failed-upgrade list and upgrade times are now merged when several parts of Clyde save at once, like the upgrade snapshots, so a failed release isn't retried because its record was overwritten
AI Assistant (MCP) knows the newer features
- Ask it about Curtain Call. The assistant can now see what Curtain Call has in Leaving Soon and why, how many days each title has left, what it deleted, which deleted titles are still blocked from coming back, and when watch history is too old for it to run. So it can answer "why is this movie leaving?" or "why did this show come back?"
- Clyde Recommends, preset collections and Home rotation. It can see who gets a Recommends row and how many titles each person got, and why rows were skipped (for example a managed user who can't take the privacy restriction). It can also see which preset collections Clyde manages and which are on Plex Home this week
- The nightly repair scan. It can see your repair window, whether tonight's scan is running, paused or skipped, how much of the library has been checked, and what each night found
- It explains these settings. Curtain Call, Clyde Recommends and Home rotation settings now come with descriptions and defaults, even ones you haven't saved yet. The overview says which of these features are on
- New help pages for Curtain Call, Clyde Recommends and Plex Preset Collections (also shown in the ? panel on the Curtain Call page). The NFO Files and Debrid Manager help pages now cover the 0.9.8 NFO changes, the nightly repair scan and restoring with "Cached torrents only"
Faster
- Overlays and Plex tasks. Looking up items by their Plex ID no longer scans the whole library. On large libraries overlay syncs are much faster
- Nightly repair scan. While a file is being checked, Clyde now asks about just that file instead of downloading your whole library's health list every 3 seconds. Big libraries put far less load on cli_mount or the built-in mount
- Scraping large shows. Clyde no longer loads every row of a show for every episode it scrapes
- Checking queue. Clyde no longer reloads the stored scrape results of every item in Checking every 30 seconds
- API Calls tool. Opening the API Calls card no longer re-reads the whole API log (several seconds of CPU), and the live API calls page only reads the end of the log and pauses while its tab is hidden
- Smaller, faster database. Six indexes that duplicated others are removed, which speeds up every write. The symlink verification table gets the two indexes it was missing
- Database page. The "all versions blacklisted" filter runs inside the page query (121 ms to 3 ms on a 50,000-item library), and the totals are cached for 30 seconds
- Queues page with several tabs open. All open tabs now share one queue snapshot instead of each making the server rebuild it every few seconds
Built-in mount (Usenet)
- Balanced now knows which servers are slow. Balanced used to give every primary server a share by its connection count, so a slow server got as much work as a fast one. Clyde now tracks how fast each server delivers and sends each request to the server expected to deliver it soonest, so a slow server only gets requests once the fast ones are busy. A server that had a slow spell isn't written off: after about a minute it gets asked again and re-measured. In a test with one slow server (about 350 ms per article against 57-90 ms for the others), the old Balanced was no faster than Fill first and its slowest reads took about 280 ms; the slow server now gets very little of the work
- New: Read-ahead requests per connection (Mount → Settings → Streaming, default 1 = off). Above 1, read-ahead sends its next article requests on a connection while the previous one is still arriving, so the connection never waits a round trip between articles. In tests one connection went from about 5 to 15 MB/s at 2, and ten connections from 38-49 to 85-87 MB/s, so the mount gets the same speed from about half the connections. Playback and mount reads never share a connection, so seeking and starting playback never wait behind read-ahead. Maximum 8; 2 is a good start
- A movie that's only its sample isn't imported. When an NZB's PAR2 file lists the movie but the NZB only posts the sample, Clyde used to import the sample as the movie. That import now fails, so another release is tried. A season pack missing one episode still imports
- cli_mount gets the same three changes in 2.5.28, if you use it instead of the built-in mount. Its read-ahead setting is capped at 4, and 2 is recommended there too
Other fixes
- Usenet repairs no longer stuck on "ambiguous". When a health check found a broken file in an NZB that several library items share (a season pack, or two rows for one episode), the repair gave up as ambiguous and logged it again every few minutes. It now uses the file the mount reports: the item that plays it (checked against where its library link really points, not only the file name Clyde recorded) is repaired, and a broken file no item plays any more (its episode was already replaced) is hidden on the mount and logged once as Unused file. A pack's last remaining episode is also no longer repaired for another episode's broken file
- Debrid takedowns in big packs are cleared, not "ambiguous". When a debrid service takes down files inside a large pack (for example Real-Debrid's "infringing_file") and none of your library items plays those files, the debrid repair now hides them on the mount and logs them once as Unused file. The pack and the episodes that still play from it stay. Before, it gave up as ambiguous every cycle, and its episode-number fallback could pick a library item that only carries the same SxxEyy under a different episode order
- Built-in mount: debrid torrents get their library IDs and tags. The built-in mount names debrid torrents by its own job id, but Clyde sent the torrent hash, so the mount refused every update: debrid torrents never learned which library item each file belongs to, tags never reached them, and debrid naming couldn't rename them. Clyde now sends the right id. A repair of a broken debrid file can name the exact item again
- Discover dropdowns open on phones. On iPhone (Safari) the arrows next to Recommendations, Top 10, Lists and Personal turned but no list appeared, because the scrolling tab row cut the menu off. The menus now open above the page
- Request button reachable on phones. Picking Specific Seasons on a show with many seasons made the request window taller than the screen, so the Request button was off the bottom. The list now scrolls inside the window and Request and Cancel stay visible. Same fix on the Scrape page and the library version windows
Version 1.0.0 (main branch), commit f575bd5
Windows install
- Download the ZIP file
- Extract all contents to a folder of your choice
- Run
cli_debrid.exefrom the extracted folder
Note: All files must be kept together in the same folder for the application to work properly.