[webif] Web Interface 1.2.x

If we don't want to enable the WebIF flatten support unless the package is installed
The menu options which appear are added by the flatten package itself which is why they aren't available until after it's installed. Defaulting to disabled sounds like the right approach.
I also have flatten2 waiting in the wings which takes an entirely different approach (one which xyz321 came up with) but I don't currently have the time to support it : (
 
On the Channel Information page via the Diagnostics page, PSB2 from Wenvoe is shown as an "Unknown" mux.
This is because channel.jim uses "ITV1" or "ITV" to detect it and that is not a match in the non-England nations e.g. "ITV Wales". It would be better to use "ITV2" or "Channel 5" in my opinion.
Seeing as ITV4 and CITV have now been poisoned by recent mux moves, suggest the list is updated as follows:
Code:
humax /mnt/hd2/mod/webif/html/diag # diff -u channel.jim~ channel.jim
--- channel.jim~
+++ channel.jim
@@ -78,13 +78,11 @@
  "Channel 4 HD" -
  "BBC ONE HD" { set mux "PSB3/BBC B" }
  "5 USA" -
-  "CITV" -
  "ITV3" { set mux "COM4/SDN" }
  "Really" -
  "Dave" { set mux "COM5/ARQ A" }
  "4Music" -
-  "Yesterday" -
-  "ITV4" { set mux "COM6/ARQ B" }
+  "Yesterday" { set mux "COM6/ARQ B" }
  "BBC FOUR HD" -
  "BBC NEWS HD" { set mux "COM7/ARQ C" }
  "Made In *" -
 
I keep having to run the resetnew Diagnostic to update the folder numbers, only been happening since the recent WebIF update.
 
Could I request that a check be made for a zero length .ts file before attempting decryption please?
My remote box did something weird yesterday which resulted in recordings being made with such files (seems to have been triggered after user rewound the TSR buffer to the start and then got some sort of error message - details are sketchy).
This then created cascading errors in the Webif about being unable to decrypt the files, which slowed it all down lots while trying to work out what the fault was.
 
I'm not aware of any changes in that area. Is there any way to pin down what type of operation is upsetting the count? Is it generally too high or too low?
 
I'm not aware of any changes in that area. Is there any way to pin down what type of operation is upsetting the count? Is it generally too high or too low?
I am using Sweeper, Recursive Auto-decrypt and Recursive Auto-shrink. An instance would be last night. I recorded Grand Designs which has its own folder which was empty at the time. The auto.log shows successful decryption and shrinking during the 04:15 wake up (disable ota). However the folder did not show a number until I ran resetnew.
 
I'll add my problem to this thread as it manifested after the webif autoupdate to 1.2.4-7 today so I assume it is related.
My media/video list consists of 26 folders and 30+ top-level files.
In the webif browse media/video the list shows the folders and only the oldest nine top-level items.
The last item displayed happens to be locked.
Obviously I could not DLNA-transfer top-level items newer than the nine displayed, but a workaroud (which takes time to refresh) is to use the SUI to create a new folder and move items into it, which are then listed in the webif/browse folder.

OK sort of fixed (previous paragraph when read back prompted me to try):
Via the SUI I unlocked that item which was displayed last, refreshed webif/browse media/video, and a few more items displayed down to another item that was locked. I repeated SUI unlock, refresh webif/browse again and the complete list now displays.

I've now relocked the two items (first via the SUI, second via the webif/opt+) refreshing after each. The list ends where it would (but doesn't) display the icon for a locked item. That is the same on browsers on a Windows PC and an android tablet.
 
Anything in your webif-error.log viewable from the diagnostics page?
Ah.
Like this you mean ?
Code:
1 /mod/webif/lib/browse.class:120: Error: invalid command name "Locked"

Further "testing" I randomly locked a file within a folder, and the same effect, the folder listing truncates where the lock icon would be.
 
OK as a final (hopefully temporary) workaround I've renamed my extra folder I created earlier to "locked media" and moved - yes - the locked items into it. Everything outside of that folder now displays fine.

edit: I'm sure it would be trivial for anyone else to recreate the condition.
 
Last edited:
I'm not aware of any changes in that area. Is there any way to pin down what type of operation is upsetting the count? Is it generally too high or too low?
I tried the following:
Removed both Recursive Auto-decrypt and Recursive Auto-shrink. Did a recording and numbers updated fine.
Enabled Recursive Auto-shrink and did a recording. Numbers updated fine.
Removed Recursive Auto-shrink and enabled Recursive Auto-decrypt. Did a recording and numbers updated fine.
Enabled Recursive Auto-shrink and did a recording. Numbers updated fine.
All 4 recordings were part of a series and were the first file in the newly created folder.
Will monitor my other series recordings as some will go into empty folders and others will have multiple recordings in the target folder.
 
I tried the following:
Removed both Recursive Auto-decrypt and Recursive Auto-shrink. Did a recording and numbers updated fine.
Enabled Recursive Auto-shrink and did a recording. Numbers updated fine.
Removed Recursive Auto-shrink and enabled Recursive Auto-decrypt. Did a recording and numbers updated fine.
Enabled Recursive Auto-shrink and did a recording. Numbers updated fine.
All 4 recordings were part of a series and were the first file in the newly created folder.
Will monitor my other series recordings as some will go into empty folders and others will have multiple recordings in the target folder.

Are you using DetectAds? If so which settings?
I am not aware of it causing problems with the counts but I flatten folders so don't see the counts and it is possible that there could be some interaction
 
I tried the following:
Removed both Recursive Auto-decrypt and Recursive Auto-shrink. Did a recording and numbers updated fine.
Enabled Recursive Auto-shrink and did a recording. Numbers updated fine.
Removed Recursive Auto-shrink and enabled Recursive Auto-decrypt. Did a recording and numbers updated fine.
Enabled Recursive Auto-shrink and did a recording. Numbers updated fine.
All 4 recordings were part of a series and were the first file in the newly created folder.
Will monitor my other series recordings as some will go into empty folders and others will have multiple recordings in the target folder.

I recorded Ripper Street last night. There were 7 files in the folder and this one made eight. It was decrypted and shrunk successfully but the number did not update to eight. The rugby was also being recorded at the same time (it started before Ripper Street and finished after). I chased played it and erased it after viewing.
Is there anything I should try ?
 
Can you post the tail end of your auto.log file?
Depending on your debug level it may have enough in to give me a clue about what's happening here. I half suspect it could be related to the recmon-triggered automatic processing.
Could you also increase the auto processing log level in settings? That will provide more information for next time.
 
I have raised the log level settings and here is the tail end of the auto.log...
Code:
742    19/09/2015 08:45:16 - Media scan completed in 14.192 seconds.
741    19/09/2015 08:45:16 - expire scan completed in 0.788 seconds.
740    19/09/2015 08:45:15 - expire scan starting.
739    19/09/2015 08:45:15 - mp3 scan completed in 0.746 seconds.
738    19/09/2015 08:45:15 - mp3 scan starting.
737    19/09/2015 08:45:15 - mpg scan completed in 0.753 seconds.
736    19/09/2015 08:45:14 - mpg scan starting.
735    19/09/2015 08:45:14 - shrink scan completed in 4.71 seconds.
734    19/09/2015 08:45:09 - shrink scan starting.
733    19/09/2015 08:45:09 - dedup scan completed in 0.761 seconds.
732    19/09/2015 08:45:08 - dedup scan starting.
731    19/09/2015 08:45:08 - decrypt scan completed in 6.328 seconds.
730    19/09/2015 08:45:02 - decrypt scan starting.
729    19/09/2015 08:45:02 - Media scan starting, DLNA server status: 1
728    19/09/2015 08:45:02 - -------------------------------------------------------
727    19/09/2015 08:45:02 - Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
726    19/09/2015 08:45:02 - Registered ::sweeper::scan for postdecryptscan hook with priority 50.
725    19/09/2015 04:45:12 - Media scan completed in 10.23 seconds.
724    19/09/2015 04:45:12 - expire scan completed in 0.719 seconds.
723    19/09/2015 04:45:11 - expire scan starting.
722    19/09/2015 04:45:11 - mp3 scan completed in 0.733 seconds.
721    19/09/2015 04:45:10 - mp3 scan starting.
720    19/09/2015 04:45:10 - mpg scan completed in 0.719 seconds.
719    19/09/2015 04:45:09 - mpg scan starting.
718    19/09/2015 04:45:09 - shrink scan completed in 4.647 seconds.
717    19/09/2015 04:45:05 - shrink scan starting.
716    19/09/2015 04:45:05 - dedup scan completed in 0.788 seconds.
715    19/09/2015 04:45:04 - dedup scan starting.
714    19/09/2015 04:45:04 - decrypt scan completed in 2.55 seconds.
713    19/09/2015 04:45:01 - decrypt scan starting.
712    19/09/2015 04:45:01 - Media scan starting, DLNA server status: 0
711    19/09/2015 04:45:01 - -------------------------------------------------------
710    19/09/2015 04:45:01 - Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
709    19/09/2015 04:45:01 - Registered ::sweeper::scan for postdecryptscan hook with priority 50.
708    19/09/2015 04:25:16 - Media scan completed in 14.066 seconds.
707    19/09/2015 04:25:16 - expire scan completed in 0.794 seconds.
706    19/09/2015 04:25:15 - expire scan starting.
705    19/09/2015 04:25:15 - mp3 scan completed in 0.775 seconds.
704    19/09/2015 04:25:14 - mp3 scan starting.
703    19/09/2015 04:25:14 - mpg scan completed in 0.744 seconds.
702    19/09/2015 04:25:13 - mpg scan starting.
701    19/09/2015 04:25:13 - shrink scan completed in 4.592 seconds.
700    19/09/2015 04:25:09 - shrink scan starting.
699    19/09/2015 04:25:09 - dedup scan completed in 0.748 seconds.
698    19/09/2015 04:25:08 - dedup scan starting.
697    19/09/2015 04:25:08 - decrypt scan completed in 6.281 seconds.
696    19/09/2015 04:25:02 - decrypt scan starting.
695    19/09/2015 04:25:02 - Media scan starting, DLNA server status: 1
694    19/09/2015 04:25:02 - -------------------------------------------------------
693    19/09/2015 04:25:02 - Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
692    19/09/2015 04:25:02 - Registered ::sweeper::scan for postdecryptscan hook with priority 50.
691    18/09/2015 22:45:16 - Media scan completed in 14.012 seconds.
690    18/09/2015 22:45:16 - expire scan completed in 0.734 seconds.
689    18/09/2015 22:45:15 - expire scan starting.
688    18/09/2015 22:45:15 - mp3 scan completed in 0.746 seconds.
687    18/09/2015 22:45:14 - mp3 scan starting.
686    18/09/2015 22:45:14 - mpg scan completed in 0.736 seconds.
685    18/09/2015 22:45:14 - mpg scan starting.
684    18/09/2015 22:45:14 - shrink scan completed in 4.597 seconds.
683    18/09/2015 22:45:09 -   /media/My Video/Rugby World Cup_ England v Fiji_20150918_1923.ts - deferring shrink until decrypted.
682    18/09/2015 22:45:09 - shrink scan starting.
681    18/09/2015 22:45:09 - dedup scan completed in 0.721 seconds.
680    18/09/2015 22:45:08 - dedup scan starting.
679    18/09/2015 22:45:08 - decrypt scan completed in 6.396 seconds.
678    18/09/2015 22:45:02 - decrypt scan starting.
677    18/09/2015 22:45:02 - Media scan starting, DLNA server status: 1
676    18/09/2015 22:45:02 - -------------------------------------------------------
675    18/09/2015 22:45:02 - Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
674    18/09/2015 22:45:02 - Registered ::sweeper::scan for postdecryptscan hook with priority 50.
673    18/09/2015 22:25:19 - Media scan completed in 17.017 seconds.
672    18/09/2015 22:25:19 - expire scan completed in 0.74 seconds.
671    18/09/2015 22:25:18 - expire scan starting.
670    18/09/2015 22:25:18 - mp3 scan completed in 0.743 seconds.
669    18/09/2015 22:25:17 - mp3 scan starting.
668    18/09/2015 22:25:17 - mpg scan completed in 0.734 seconds.
667    18/09/2015 22:25:16 - mpg scan starting.
666    18/09/2015 22:25:16 - shrink scan completed in 4.582 seconds.
665    18/09/2015 22:25:12 -   /media/My Video/Rugby World Cup_ England v Fiji_20150918_1923.ts - deferring shrink until decrypted.
664    18/09/2015 22:25:12 - shrink scan starting.
663    18/09/2015 22:25:12 - dedup scan completed in 0.713 seconds.
662    18/09/2015 22:25:11 - dedup scan starting.
661    18/09/2015 22:25:11 - decrypt scan completed in 9.424 seconds.
660    18/09/2015 22:25:02 - decrypt scan starting.
659    18/09/2015 22:25:02 - Media scan starting, DLNA server status: 1
658    18/09/2015 22:25:02 - -------------------------------------------------------
657    18/09/2015 22:25:02 - Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
656    18/09/2015 22:25:02 - Registered ::sweeper::scan for postdecryptscan hook with priority 50.
655    18/09/2015 22:20:08 - autotrigger[12572]: done
654    18/09/2015 22:20:08 - autotrigger[12572]: Media scan completed in 2.578 seconds.
653    18/09/2015 22:20:08 - autotrigger[12572]: expire scan completed in 0.016 seconds.
652    18/09/2015 22:20:08 - autotrigger[12572]: mp3 scan completed in 0.016 seconds.
651    18/09/2015 22:20:08 - autotrigger[12572]: mpg scan completed in 0.016 seconds.
650    18/09/2015 22:20:08 - autotrigger[12572]: shrink scan completed in 0.175 seconds.
649    18/09/2015 22:20:08 - autotrigger[12572]:   /media/My Video/Rugby World Cup_ England v Fiji_20150918_1923.ts - deferring shrink until decrypted.
648    18/09/2015 22:20:07 - autotrigger[12572]: dedup scan completed in 0.018 seconds.
647    18/09/2015 22:20:07 - autotrigger[12572]: decrypt scan completed in 2.23 seconds.
646    18/09/2015 22:20:05 - autotrigger[12572]: Scanning single directory '/media/My Video'
645    18/09/2015 22:20:05 - autotrigger[12572]: Media scan starting, DLNA server status: 1
644    18/09/2015 22:20:05 - autotrigger[12572]: -------------------------------------------------------
643    18/09/2015 22:20:05 - autotrigger[12572]: Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
642    18/09/2015 22:20:05 - autotrigger[12572]: Registered ::sweeper::scan for postdecryptscan hook with priority 50.
641    18/09/2015 22:20:05 - autotrigger[12572]: got lock
640    18/09/2015 22:20:05 - autotrigger[12572]: will run for /media/My Video
639    18/09/2015 22:20:05 - autotrigger[12572]: /media/My Video/Rugby World Cup_ England v Fiji_20150918_1923
638    18/09/2015 22:11:10 - autotrigger[11623]: done
637    18/09/2015 22:11:10 - autotrigger[11623]: Media scan completed in 349.813 seconds.
636    18/09/2015 22:11:10 - autotrigger[11623]: expire scan completed in 0.054 seconds.
635    18/09/2015 22:11:10 - autotrigger[11623]: mp3 scan completed in 0.016 seconds.
634    18/09/2015 22:11:10 - autotrigger[11623]: mpg scan completed in 0.032 seconds.
633    18/09/2015 22:11:10 - autotrigger[11623]: shrink scan completed in 137.277 seconds.
632    18/09/2015 22:11:10 - autotrigger[11623]: Done... 2.07 GiB in 136.141 seconds - 15.54 MiB/s
631    18/09/2015 22:11:04 - autotrigger[11623]:
Saved: 1082834/11554198 packets, 198.27/2115.64 MiB (9.37%)
630    18/09/2015 22:08:53 - autotrigger[11623]:           Shrinking...
629    18/09/2015 22:08:53 - autotrigger[11623]:           Estimate 5% saving.
628    18/09/2015 22:08:53 - autotrigger[11623]:   SHRINK: /media/My Video/Ripper Street/Ripper Street_20150918_2058
627    18/09/2015 22:08:52 - autotrigger[11623]: dedup scan completed in 0.06 seconds.
626    18/09/2015 22:08:52 - autotrigger[11623]: decrypt scan completed in 212.294 seconds.
625    18/09/2015 22:08:52 - autotrigger[11623]: Done... 2.07 GiB in 210.097 seconds - 10.07 MiB/s
624    18/09/2015 22:08:46 - autotrigger[11623]:   Removing/binning old copy.
623    18/09/2015 22:05:22 - autotrigger[11623]:   DLNA: http://192.168.1.150:9000/web/media/3263.TS
622    18/09/2015 22:05:22 - autotrigger[11623]:   DECRYPT: /media/My Video/Ripper Street/Ripper Street_20150918_2058
621    18/09/2015 22:05:21 - autotrigger[11623]:   /media/My Video/Ripper Street/Ripper Street_20150918_2058.ts - Not yet indexed, trying helper.
620    18/09/2015 22:05:20 - autotrigger[11623]: Scanning single directory '/media/My Video/Ripper Street'
619    18/09/2015 22:05:20 - autotrigger[11623]: Media scan starting, DLNA server status: 1
618    18/09/2015 22:05:20 - autotrigger[11623]: -------------------------------------------------------
617    18/09/2015 22:05:20 - autotrigger[11623]: Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
616    18/09/2015 22:05:20 - autotrigger[11623]: Registered ::sweeper::scan for postdecryptscan hook with priority 50.
615    18/09/2015 22:05:20 - autotrigger[11623]: got lock
614    18/09/2015 22:05:17 - Media scan completed in 16.037 seconds.
613    18/09/2015 22:05:17 - expire scan completed in 0.789 seconds.
612    18/09/2015 22:05:16 - expire scan starting.
611    18/09/2015 22:05:16 - mp3 scan completed in 0.761 seconds.
610    18/09/2015 22:05:16 - mp3 scan starting.
609    18/09/2015 22:05:16 - mpg scan completed in 0.767 seconds.
608    18/09/2015 22:05:15 - mpg scan starting.
607    18/09/2015 22:05:15 - shrink scan completed in 4.805 seconds.
606    18/09/2015 22:05:13 -   /media/My Video/Ripper Street/Ripper Street_20150918_2058.ts - deferring shrink until decrypted.
605    18/09/2015 22:05:10 -   /media/My Video/Rugby World Cup_ England v Fiji_20150918_1923.ts - deferring shrink until decrypted.
604    18/09/2015 22:05:10 - shrink scan starting.
603    18/09/2015 22:05:10 - dedup scan completed in 0.748 seconds.
602    18/09/2015 22:05:09 - dedup scan starting.
601    18/09/2015 22:05:09 - decrypt scan completed in 8.003 seconds.
600    18/09/2015 22:05:05 - autotrigger[11623]: will run for /media/My Video/Ripper Street
599    18/09/2015 22:05:05 - autotrigger[11623]: /media/My Video/Ripper Street/Ripper Street_20150918_2058
598    18/09/2015 22:05:01 - decrypt scan starting.
597    18/09/2015 22:05:01 - Media scan starting, DLNA server status: 1
596    18/09/2015 22:05:01 - -------------------------------------------------------
595    18/09/2015 22:05:01 - Registered ::sweeper::scansingledir for postdecryptsingledir hook with priority 50.
594    18/09/2015 22:05:01 - Registered ::sweeper::scan for postdecryptscan hook with priority 50.
593    18/09/2015 21:45:21 - Media scan completed in 19.917 seconds.
592    18/09/2015 21:45:21 - expire scan completed in 0.772 seconds.
591    18/09/2015 21:45:20 - expire scan starting.
590    18/09/2015 21:45:20 - mp3 scan completed in 0.753 seconds.
589    18/09/2015 21:45:20 - mp3 scan starting.
588    18/09/2015 21:45:20 - mpg scan completed in 0.747 seconds.
587    18/09/2015 21:45:19 - mpg scan starting.
586    18/09/2015 21:45:19 - shrink scan completed in 4.773 seconds.
585    18/09/2015 21:45:17 -   /media/My Video/Ripper Street/Ripper Street_20150918_2058.ts - deferring shrink until decrypted.
584    18/09/2015 21:45:14 -   /media/My Video/Rugby World Cup_ England v Fiji_20150918_1923.ts - deferring shrink until decrypted.
583    18/09/2015 21:45:14 - shrink scan starting.
582    18/09/2015 21:45:14 - dedup scan completed in 0.748 seconds.
581    18/09/2015 21:45:13 - dedup scan starting.
580    18/09/2015 21:45:13 - decrypt scan completed in 12.022 seconds.
579    18/09/2015 21:45:01 - decrypt scan starting.
578    18/09/2015 21:45:01 - Media scan starting, DLNA server status: 1
577    18/09/2015 21:45:01 -
 
Back
Top