add doc string
This commit is contained in:
parent
0f31bbf1bd
commit
56bc176b2d
@ -12,6 +12,12 @@ from ffplayout.utils import (_ff, _log, _playlist, _playout,
|
|||||||
|
|
||||||
|
|
||||||
def clean_ts():
|
def clean_ts():
|
||||||
|
"""
|
||||||
|
this function get all *.m3u8 playlists from config,
|
||||||
|
read lines from them until it founds first *.ts file,
|
||||||
|
then it checks if files on harddrive are older then this first *.ts
|
||||||
|
and if so delete them
|
||||||
|
"""
|
||||||
playlists = [p for p in _playout.hls_output if 'm3u8' in p]
|
playlists = [p for p in _playout.hls_output if 'm3u8' in p]
|
||||||
|
|
||||||
for playlist in playlists:
|
for playlist in playlists:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user