Repository navigation
MacGui: add queue import and export - #8112
anandghegde wants to merge 2 commits into
Conversation
|
What would the use case be for this? The exported file can be used only with the MacGui, and only on the same computer. |
|
Fair question, and you're right about the limits — a The use cases in the issues are all same-machine ones: Splitting a large queue (#7299, the reason for the context-menu Export…). The request is to select a subset of a few hundred queued items and export just those, so a big batch can be broken into pieces and run one at a time rather than as one unstoppable run. That's entirely within one install — the file never leaves the machine. Parking a queue to run later, or keeping more than one. Today the queue is a single implicit list. With this you can keep, say, a "weekly rips" file and a "re-encode archive" file, load whichever you want to run, and not have to rebuild the item list with its per-item settings each time. This is the substance of #6351 and #4845 as the reporters described them. A snapshot before something destructive. Autorecovery covers a crash or a relaunch within a version, but it doesn't help before Clear Completed, or before deliberately emptying the queue to run something urgent first. An explicit file does. What it deliberately does not solve: carrying a queue across a HandBrake upgrade. Two things I'm happy to change if it helps:
And if the team's view is that queue snapshots aren't worth the surface area, say so and I'll close it — no hard feelings, I'd rather that than have it sit open. |
|
Use case: many times I've needed to put a queue on hold to encode something else more urgent, with the intent to return to the queue later. Sometimes I also want to build up a queue to have ready to run when I'm not actively using the machine. Those are just a few examples ... there are others. Would love to see this feature. Also still patiently waiting for manual stop insertion like Windows users have had for a while. |
|
I know that there are use cases for an actually well implemented import/export. I was asking about a barely working implementation that works differently from the other UIs, and don't have any way to relink URLs. P.S.: actually I implemented a way to insert a stop action in the Queue yesterday, it just needs to be committed ;) |
|
The relink gap is fair, and it's the one I'd like to fix here. Concretely: on import, run each job item's On "works differently from the other UIs" — worth being precise about what that difference is, because there's no queue format shared across the UIs today. WinGui exports its own If relink-on-import is what you want to see before this is mergeable, I'll do that next here — just say whether the CLI-jobs-JSON export belongs in scope too or is better kept out. |
41b49b9 to
bb28ac0
Compare
|
Point 5 is fair, and I am sorry. I handed parts of this PR to an AI tool, and I pushed the result without a I shall start without JSON support, as you suggest. On your list:
Kindly tell me the order and I shall follow the same. And in case you feel this PR is too sloppy to carry forward at all, I am okay |
|
Maybe doing the relink window first would be better. |
Adds File > Relink Queue Items…, a sheet that lists the source files and destination folders used by the pending queue items and lets the user point missing ones to a new location. Jobs keep their settings.
Adds File > Import Queue… and Export Queue…, and an Export… item in the queue contextual menu. Queue files carry their own version, and a sheet lets the user choose which items to import. If the imported items point to missing sources or destinations, the relink sheet is shown.
6ff0282 to
e015cc9
Compare
|
Reworked this, sorry for the delay. The relink window is its own PR now, #8250, as suggested. This one is rebased on top of it and is down to just import/export in a single commit (no more merge commits). It also has the selection sheet on import, a version in the queue file, and the import/export code moved out to a seperate class. Description is updated too. Probably easier to look at #8250 first. |

Closes #6351. Also covers #7299 for the Mac GUI.
Adds File > Import Queue… and Export Queue…, plus an Export… item in the queue contextual menu for the selected rows.
This now sits on top of the relink window (#8250), so the first commit here is that one, only the second commit is new. I'll rebase once the relink PR is in.
What changed since the last round:
HBQueueArchive) instead of inHBQueueTesting
macOS 26, sandboxed build. Export, import with some items unchecked, importing a file that is not a queue, the overwrite warning, and importing after moving the sources (relink sheet comes up). Didnt test a file with a diffrent job version, or the non sandboxed build.