[flatten] Automatically Removing Programmes from Series Folders

Updated to 1.0.1

The latest from my auto.log
Code:
02/07/2013 21:40 - Registered _flattenscan for postdecryptscan hook.
02/07/2013 21:40 - -------------------------------------------------------
02/07/2013 21:40 - DLNA Server is running.
02/07/2013 21:40 - Media scan starting, DLNA server status: 1
02/07/2013 21:40 - Dustbin: /media/My Video/[Recycle Bin]
02/07/2013 21:40 - Root device: 2050
02/07/2013 21:40 -  [/media/My Video]
02/07/2013 21:40 -    [/media/My Video/[Recycle Bin]]
02/07/2013 21:40 - Dustbin, skipping.
02/07/2013 21:40 -      [/media/My Video/Hollyoaks]
02/07/2013 21:40 -      [/media/My Video/EastEnders]
02/07/2013 21:40 -      [/media/My Video/Emmerdale]
02/07/2013 21:40 - Flatten scan starting
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_2028.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering [Recycle Bin]
02/07/2013 21:40 -      Special
02/07/2013 21:40 - + Flatten considering Emmerdale_20130701_1901.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_2028.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130701_2000.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130701_2000.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_1932.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130628_2000.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130628_2000.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Hollyoaks
02/07/2013 21:40 -      Not a series folder
02/07/2013 21:40 - + Flatten considering EastEnders_20130701_2000.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Emmerdale_20130701_1901.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130628_2000.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_1932.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Emmerdale_20130701_1901.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Hollyoaks_20130701_1830.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_1932.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_1932.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_2028.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130628_2032.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Hollyoaks_20130701_1830.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130628_2032.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Hollyoaks_20130701_1830.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Emmerdale_20130701_1901.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders
02/07/2013 21:40 -      Not a series folder
02/07/2013 21:40 - + Flatten considering Hollyoaks_20130701_1830.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130628_2000.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130701_2028.hmt
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Emmerdale
02/07/2013 21:40 -      Not a series folder
02/07/2013 21:40 - + Flatten considering Coronation Street_20130628_2032.ts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering EastEnders_20130701_2000.thm
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - + Flatten considering Coronation Street_20130628_2032.nts
02/07/2013 21:40 -      Not a directory
02/07/2013 21:40 - decrypt scan completed in 0.113 seconds.
02/07/2013 21:40 -    [/media/My Video]
02/07/2013 21:40 -      [/media/My Video/[Recycle Bin]]
02/07/2013 21:40 - Dustbin, skipping.
02/07/2013 21:40 -        [/media/My Video/Hollyoaks]
02/07/2013 21:40 -        [/media/My Video/EastEnders]
02/07/2013 21:40 -        [/media/My Video/Emmerdale]
02/07/2013 21:40 - dedup scan completed in 0.065 seconds.
02/07/2013 21:40 -      [/media/My Video]
02/07/2013 21:40 -        [/media/My Video/[Recycle Bin]]
02/07/2013 21:40 - Dustbin, skipping.
02/07/2013 21:40 -          [/media/My Video/Hollyoaks]
02/07/2013 21:40 -          [/media/My Video/EastEnders]
02/07/2013 21:40 -          [/media/My Video/Emmerdale]
02/07/2013 21:40 - shrink scan completed in 0.075 seconds.
02/07/2013 21:40 -        [/media/My Video]
02/07/2013 21:40 -          [/media/My Video/[Recycle Bin]]
02/07/2013 21:40 - Dustbin, skipping.
02/07/2013 21:40 -            [/media/My Video/Hollyoaks]
02/07/2013 21:40 -            [/media/My Video/EastEnders]
02/07/2013 21:40 -            [/media/My Video/Emmerdale]
02/07/2013 21:40 - mpg scan completed in 0.069 seconds.
02/07/2013 21:40 -          [/media/My Video]
02/07/2013 21:40 -            [/media/My Video/[Recycle Bin]]
02/07/2013 21:40 - Dustbin, skipping.
02/07/2013 21:40 -              [/media/My Video/Hollyoaks]
02/07/2013 21:40 -              [/media/My Video/EastEnders]
02/07/2013 21:40 -              [/media/My Video/Emmerdale]
02/07/2013 21:40 - mp3 scan completed in 0.063 seconds.
02/07/2013 21:40 -            [/media/My Video]
02/07/2013 21:40 -              [/media/My Video/[Recycle Bin]]
02/07/2013 21:40 - Dustbin, skipping.
02/07/2013 21:40 -                [/media/My Video/Hollyoaks]
02/07/2013 21:40 -                [/media/My Video/EastEnders]
02/07/2013 21:40 -                [/media/My Video/Emmerdale]
02/07/2013 21:40 - expire scan completed in 0.066 seconds.
02/07/2013 21:40 - Media scan completed in 0.567 seconds.
 
More auto.log entries
Code:
02/07/2013 21:50 - Registered _flattenscan for postdecryptscan hook.
02/07/2013 21:50 - -------------------------------------------------------
02/07/2013 21:50 - DLNA Server is running.
02/07/2013 21:50 - Media scan starting, DLNA server status: 1
02/07/2013 21:50 - Dustbin: /media/My Video/[Recycle Bin]
02/07/2013 21:50 - Root device: 2050
02/07/2013 21:50 -  [/media/My Video]
02/07/2013 21:50 -    [/media/My Video/[Recycle Bin]]
02/07/2013 21:50 - Dustbin, skipping.
02/07/2013 21:50 -      [/media/My Video/Hollyoaks]
02/07/2013 21:50 -      [/media/My Video/EastEnders]
02/07/2013 21:50 -      [/media/My Video/Emmerdale]
02/07/2013 21:50 - Flatten scan starting
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_2028.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering [Recycle Bin]
02/07/2013 21:50 -      Special
02/07/2013 21:50 - + Flatten considering Emmerdale_20130701_1901.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_2028.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130701_2000.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130701_2000.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_1932.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130628_2000.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130628_2000.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Hollyoaks
02/07/2013 21:50 -      Not a series folder
02/07/2013 21:50 - + Flatten considering EastEnders_20130701_2000.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Emmerdale_20130701_1901.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130628_2000.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_1932.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Emmerdale_20130701_1901.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Hollyoaks_20130701_1830.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_1932.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_1932.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_2028.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130628_2032.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Hollyoaks_20130701_1830.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130628_2032.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Hollyoaks_20130701_1830.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Emmerdale_20130701_1901.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders
02/07/2013 21:50 -      Not a series folder
02/07/2013 21:50 - + Flatten considering Hollyoaks_20130701_1830.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130628_2000.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130701_2028.hmt
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Emmerdale
02/07/2013 21:50 -      Not a series folder
02/07/2013 21:50 - + Flatten considering Coronation Street_20130628_2032.ts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering EastEnders_20130701_2000.thm
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - + Flatten considering Coronation Street_20130628_2032.nts
02/07/2013 21:50 -      Not a directory
02/07/2013 21:50 - decrypt scan completed in 0.109 seconds.
02/07/2013 21:50 -    [/media/My Video]
02/07/2013 21:50 -      [/media/My Video/[Recycle Bin]]
02/07/2013 21:50 - Dustbin, skipping.
02/07/2013 21:50 -        [/media/My Video/Hollyoaks]
02/07/2013 21:50 -        [/media/My Video/EastEnders]
02/07/2013 21:50 -        [/media/My Video/Emmerdale]
02/07/2013 21:50 - dedup scan completed in 0.075 seconds.
02/07/2013 21:50 -      [/media/My Video]
02/07/2013 21:50 -        [/media/My Video/[Recycle Bin]]
02/07/2013 21:50 - Dustbin, skipping.
02/07/2013 21:50 -          [/media/My Video/Hollyoaks]
02/07/2013 21:50 -          [/media/My Video/EastEnders]
02/07/2013 21:50 -          [/media/My Video/Emmerdale]
02/07/2013 21:50 - shrink scan completed in 0.065 seconds.
02/07/2013 21:50 -        [/media/My Video]
02/07/2013 21:50 -          [/media/My Video/[Recycle Bin]]
02/07/2013 21:50 - Dustbin, skipping.
02/07/2013 21:50 -            [/media/My Video/Hollyoaks]
02/07/2013 21:50 -            [/media/My Video/EastEnders]
02/07/2013 21:50 -            [/media/My Video/Emmerdale]
02/07/2013 21:50 - mpg scan completed in 0.066 seconds.
02/07/2013 21:50 -          [/media/My Video]
02/07/2013 21:50 -            [/media/My Video/[Recycle Bin]]
02/07/2013 21:50 - Dustbin, skipping.
02/07/2013 21:50 -              [/media/My Video/Hollyoaks]
02/07/2013 21:50 -              [/media/My Video/EastEnders]
02/07/2013 21:50 -              [/media/My Video/Emmerdale]
02/07/2013 21:50 - mp3 scan completed in 0.07 seconds.
02/07/2013 21:50 -            [/media/My Video]
02/07/2013 21:50 -              [/media/My Video/[Recycle Bin]]
02/07/2013 21:50 - Dustbin, skipping.
02/07/2013 21:50 -                [/media/My Video/Hollyoaks]
02/07/2013 21:50 -                [/media/My Video/EastEnders]
02/07/2013 21:50 -                [/media/My Video/Emmerdale]
02/07/2013 21:50 - expire scan completed in 0.07 seconds.
02/07/2013 21:50 - Media scan completed in 0.566 seconds.
 
This is the key:

Code:
02/07/2013 21:50 - + Flatten considering EastEnders
02/07/2013 21:50 -      Not a series folder

Was that folder created automatically by a scheduled series recording? This is one way that the new flatten differs from the old - it will only process automatically created folders.
 
Yes, the three folders were created automatically by scheduled series recordings, and were being processed properly with the old flatten.
 
Strange that there is no .series file in them then (which is what the check is looking for). Looks like I may need to drop that test.

Can you try 1.0.2?
 
1.0.2 installed
Code:
02/07/2013 23:10 - Registered _flattenscan for postdecryptscan hook.
02/07/2013 23:10 - -------------------------------------------------------
02/07/2013 23:10 - DLNA Server is running.
02/07/2013 23:10 - Media scan starting, DLNA server status: 1
02/07/2013 23:10 - Dustbin: /media/My Video/[Recycle Bin]
02/07/2013 23:10 - Root device: 2050
02/07/2013 23:10 -  [/media/My Video]
02/07/2013 23:10 -    [/media/My Video/[Recycle Bin]]
02/07/2013 23:10 - Dustbin, skipping.
02/07/2013 23:10 -      [/media/My Video/Hollyoaks]
02/07/2013 23:10 -      [/media/My Video/EastEnders]
02/07/2013 23:10 -      [/media/My Video/Emmerdale]
02/07/2013 23:10 - Flatten scan starting
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_2028.thm
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering [Recycle Bin]
02/07/2013 23:10 -      Special
02/07/2013 23:10 - + Flatten considering Emmerdale_20130701_1901.ts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_2028.nts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering EastEnders_20130701_2000.nts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering EastEnders_20130701_2000.ts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_1932.hmt
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Hollyoaks
02/07/2013 23:10 - Flatten processing /media/My Video/Hollyoaks
02/07/2013 23:10 -  >  Hollyoaks_20130702_1831.ts
02/07/2013 23:10 - Flattening /media/My Video/Hollyoaks/Hollyoaks_20130702_1831.ts
02/07/2013 23:10 -  ....... /media/My Video/Hollyoaks/Hollyoaks_20130702_1831.ts
02/07/2013 23:10 -  ....... /media/My Video/Hollyoaks/Hollyoaks_20130702_1831.nts
02/07/2013 23:10 -  ....... /media/My Video/Hollyoaks/Hollyoaks_20130702_1831.hmt
02/07/2013 23:10 -  ....... /media/My Video/Hollyoaks/Hollyoaks_20130702_1831.thm
02/07/2013 23:10 - + Flatten considering EastEnders_20130701_2000.hmt
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Emmerdale_20130701_1901.thm
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_1932.nts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Emmerdale_20130701_1901.hmt
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Hollyoaks_20130701_1830.nts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_1932.ts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_1932.thm
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_2028.ts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Hollyoaks_20130701_1830.thm
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Hollyoaks_20130701_1830.ts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Emmerdale_20130701_1901.nts
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering EastEnders
02/07/2013 23:10 - Flatten processing /media/My Video/EastEnders
02/07/2013 23:10 -  >  EastEnders_20130702_1929.ts
02/07/2013 23:10 - Flattening /media/My Video/EastEnders/EastEnders_20130702_1929.ts
02/07/2013 23:10 -  ....... /media/My Video/EastEnders/EastEnders_20130702_1929.ts
02/07/2013 23:10 -  ....... /media/My Video/EastEnders/EastEnders_20130702_1929.nts
02/07/2013 23:10 -  ....... /media/My Video/EastEnders/EastEnders_20130702_1929.hmt
02/07/2013 23:10 -  ....... /media/My Video/EastEnders/EastEnders_20130702_1929.thm
02/07/2013 23:10 - + Flatten considering Hollyoaks_20130701_1830.hmt
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Coronation Street_20130701_2028.hmt
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - + Flatten considering Emmerdale
02/07/2013 23:10 - Flatten processing /media/My Video/Emmerdale
02/07/2013 23:10 -  >  Emmerdale_20130702_1901.ts
02/07/2013 23:10 - Flattening /media/My Video/Emmerdale/Emmerdale_20130702_1901.ts
02/07/2013 23:10 -  ....... /media/My Video/Emmerdale/Emmerdale_20130702_1901.ts
02/07/2013 23:10 -  ....... /media/My Video/Emmerdale/Emmerdale_20130702_1901.nts
02/07/2013 23:10 -  ....... /media/My Video/Emmerdale/Emmerdale_20130702_1901.hmt
02/07/2013 23:10 -  ....... /media/My Video/Emmerdale/Emmerdale_20130702_1901.thm
02/07/2013 23:10 - + Flatten considering EastEnders_20130701_2000.thm
02/07/2013 23:10 -      Not a directory
02/07/2013 23:10 - decrypt scan completed in 1.037 seconds.
02/07/2013 23:10 -    [/media/My Video]
02/07/2013 23:10 -      [/media/My Video/[Recycle Bin]]
02/07/2013 23:10 - Dustbin, skipping.
02/07/2013 23:10 - dedup scan completed in 0.02 seconds.
02/07/2013 23:10 -      [/media/My Video]
02/07/2013 23:10 -        [/media/My Video/[Recycle Bin]]
02/07/2013 23:10 - Dustbin, skipping.
02/07/2013 23:10 - shrink scan completed in 0.022 seconds.
02/07/2013 23:10 -        [/media/My Video]
02/07/2013 23:10 -          [/media/My Video/[Recycle Bin]]
02/07/2013 23:10 - Dustbin, skipping.
02/07/2013 23:10 - mpg scan completed in 0.023 seconds.
02/07/2013 23:10 -          [/media/My Video]
02/07/2013 23:10 -            [/media/My Video/[Recycle Bin]]
02/07/2013 23:10 - Dustbin, skipping.
02/07/2013 23:10 - mp3 scan completed in 0.02 seconds.
02/07/2013 23:10 -            [/media/My Video]
02/07/2013 23:10 -              [/media/My Video/[Recycle Bin]]
02/07/2013 23:10 - Dustbin, skipping.
02/07/2013 23:10 - expire scan completed in 0.021 seconds.
02/07/2013 23:10 - Media scan completed in 1.275 seconds.
That seems to have worked.:)
 
Is the old flatten.log now redundant? Mine is still growing with the following
Code:
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
/bin/sh: /mod/sbin/flatten: not found
If I delete this log, will it be recreated automatically?
 
It's redundant but it seems you still have a cron job which is attempting to run the old system. I'll update the package to address that.
 
OK Thanks, the new version seems to have worked on today's series recordings, I think that I shall install it on my other boxes tomorrow.:)
 
flatten 1.0.3 (now in the main repository) should kill that log file (and the cron job that's generating it).
 
I have just installed 1.0.3 and can confirm that my old flatten.log has now gone.:)
 
1.0.4 is a minor update that uses a different method (new webif library function) to remove folders that are empty after it has done its work.
 
My flatten is playing up. The box recorded something yesterday and at some point flatten pulled the file out into the 'root' but left the folder (which still had the new icon and said 1 file). Subsequently it has failed to even move files out of series folders at all.
I ran the fix-flash-packages diag earlier this evening but the files/folders remained the same despite a couple of hours for flatten to work. While in the diagnostics page I had a look in the log list for a flatten log, but couldn't see one. When we'd finished viewing for the evening I manually cleaned up the files/folders for now and then came on the PC and (re)found this thread.

If it is still broken does anyone have any hints as to what else to try and/or what other diagnostic info I can dig out?

Oh, the only things I've changed lately is doing 'routine' packages updates and installing 'sysmon' and 'fan'.
 
If it's the latest version of flatten then it will log to auto.log. You can increase the level of logging through the settings page in the web interface (Auto-processing log level).
 
If it's the latest version of flatten then it will log to auto.log. You can increase the level of logging through the settings page in the web interface (Auto-processing log level).

OK, found it in auto as you said.
A couple of weeks ago it starts listing an error every 10 minutes. (Note that this is the day after the What Remains flatten event.)

Code:
08/09/2013 21:50 - Flatten failed to remove directory: couldn't delete file "/media/My Video/What Remains": Directory not empty
08/09/2013 22:00 - Flattening /media/My Video/What Remains/What Remains_20130908_2100.ts
09/09/2013 21:10 - Plugin error: can't read "msg": no such variable
09/09/2013 21:20 - Plugin error: can't read "msg": no such variable

However, flatten continues to work as there are several successful flattens, such as:

Code:
17/09/2013 21:40 - Plugin error: can't read "msg": no such variable
17/09/2013 21:50 - Plugin error: can't read "msg": no such variable
17/09/2013 22:00 - Flattening /media/My Video/New Tricks/New Tricks_20130917_2100.ts
18/09/2013 20:10 - Plugin error: can't read "msg": no such variable
18/09/2013 20:20 - Plugin error: can't read "msg": no such variable

but the "Plugin error" seems to have replaced the "Flatten failed to remove directory: couldn't delete file "/media/My Video/xxxxx": Directory not empty" message present until 08/09.

Then on the 18th it claims to have flattened "The House ..." but this is the half cocked event I referred to in my previous post. Since then all the log entries have been "Plugin error" and nothing has flattened:

Code:
18/09/2013 20:40 - Plugin error: can't read "msg": no such variable
18/09/2013 20:50 - Plugin error: can't read "msg": no such variable
18/09/2013 21:00 - Flattening /media/My Video/The House That £100k Built/The House That £100k Built_20130918_2000.ts
18/09/2013 21:10 - Plugin error: can't read "msg": no such variable
18/09/2013 21:20 - Plugin error: can't read "msg": no such variable
...
20/09/2013 00:10 - Plugin error: can't read "msg": no such variable
20/09/2013 00:20 - Plugin error: can't read "msg": no such variable
20/09/2013 00:30 - Plugin error: can't read "msg": no such variable

Very strangely this morning I got an e-mail from the RS system saying:
At least one failed recording has been detected in your
media library. The following recording(s) failed:

/The House That 100k Built/The House That 100k Built_20130918_2000

Strange, because I've been registered with RS for some time, we've had failed recordings before (previous prog overrun), and I've never had an e-mail of any type from RS before.
So things look very bad indeed :)
 
My flatten also failed recently with the same error.
It happened after I installed an update.
A re-start of the Humax fixed it.
 
I am also getting lots of instances of "Plugin error: can't read "msg": no such variable" in my auto.log.
 
That's coming from the 'remove directory if empty' routine. It's failing to remove the directory.
I will add some more debug output to that so we can see why it's failing.
 
Another update:
My flatten also failed recently with the same error.
It happened after I installed an update.
A re-start of the Humax fixed it.
This afternoon I did a power off from the mains switch for 30 secs, and this evening when turned on flatten has started working again. So it seems to need a full restart, not just into standby.

This is the log for this evening's viewing - it was pulled out of standby just after 2100.
Code:
20/09/2013 21:10 - Plugin error: can't read "msg": no such variable
20/09/2013 21:20 - Plugin error: can't read "msg": no such variable
20/09/2013 21:30 - Plugin error: can't read "msg": no such variable
20/09/2013 21:40 - Plugin error: can't read "msg": no such variable
20/09/2013 21:50 - Plugin error: can't read "msg": no such variable
20/09/2013 22:00 - Plugin error: can't read "msg": no such variable
20/09/2013 22:10 - Flattening /media/My Video/David Attenborough's Rise of Animals____/David Attenborough's Rise of Animals_____20130920_2100.ts
20/09/2013 22:10 - Plugin error: can't read "msg": no such variable
20/09/2013 22:20 - Flattening /media/My Video/Orphan Black/Orphan Black_20130920_2100.ts
20/09/2013 22:20 - Plugin error: can't read "msg": no such variable
20/09/2013 22:30 - Plugin error: can't read "msg": no such variable
20/09/2013 22:40 - Flattening /media/My Video/Orphan Black/Orphan Black_20130920_2145.ts

It was put to standby for 5 mins just after 2300 and was still on about 60 mins later when this clip of the log was taken - the 2240 entry is the last in the log at present.
So I guess that all this time it had thought there were directories to flatten, so it was running every 10 mins, but having successfully removed the last of this evenings series folders flatten has gone back to sleep. Presumably next time a series folder is created the Plugin errors will reappear.
 
Back
Top