[Edit - this has been diagnosed, jump to post 9 to skip the debug and see the resolution]
I had a bunch of programmes that are still encrypted (couldn't play them in Windows), despite showing "Dec" in the WebIf. While working out what's going on, I may have found a bug in the way both Auto-processing and the "fixencflags" script applies flags to files (or maybe in the way the files' flags themselves are impemented?). I better stop speculating and let those more qualified decide.
Due to my fairly unique scenario, it will likely bother hardly anyone (not even me, I can easily work around it), so I'm happy if the forum admins or clever people authoring the WebIf scripts want to close this as a "won't fix". But for the moment I'll keep my setup the same in case the bug might have further implications and/or anyone wants me to try something.
Scenario:
I had a bunch of programmes that are still encrypted (couldn't play them in Windows), despite showing "Dec" in the WebIf. While working out what's going on, I may have found a bug in the way both Auto-processing and the "fixencflags" script applies flags to files (or maybe in the way the files' flags themselves are impemented?). I better stop speculating and let those more qualified decide.
Due to my fairly unique scenario, it will likely bother hardly anyone (not even me, I can easily work around it), so I'm happy if the forum admins or clever people authoring the WebIf scripts want to close this as a "won't fix". But for the moment I'll keep my setup the same in case the bug might have further implications and/or anyone wants me to try something.
Scenario:
- I have a bunch of BBC HD programmes, duplicated in a different directory on the disk (I only today found this duplication out, while trying to diagnose my undecrypted files, the duplicate probably happened by accident years ago when I put a new HDD in and copied stuff back).
- One copy is genuinely still encrypted, the other has been decrypted.
- The parent directory of all of the above used to have recursive-decrypt and recursive-shrink set.
- Both copies of the files show both the "Dec" and "shrunk" icon.
- Diagnostic "encheck" correctly finds the incorrectly marked "Dec" files, saying "HMT marked encrypted: 0 Stripts thinks encrypted: 1" for each.
- Diagnostic "fixencflags" corrects this, showing: "FIXED DEC /media/My Video/.../xxxx", just for each "still encrypted" file. (There's also one rogue "FIXED ENC" in there too, in the same set of directories.)
- After "fixencflags": The WebIf does not show "Dec" for BOTH copies (even though one set is).
- [EDIT - inserting this bullet] Another diagnostic "encheck" following the "fixencflags" now correctly finds the incorrectly NOT marked "Dec" files, saying "HMT marked encrypted: 1 Stripts thinks encrypted: 0" for each.
- Next time Auto-processing runs, BOTH copies get the "Dec" flag put back on. "auto.log" shows (only for the decrypted copy) "decrypt: /media/My Video/path-to-decrypted-version/yyyy.ts - already decrypted but the HMT flag is wrong."
Last edited: