recording stream issue
LraiZer 26 jan 2021
def createMoveList(serviceref, dest): #normpath is to remove the trailing '/' from directories src = isinstance(serviceref, str) and serviceref + ".ts" or os.path.normpath(serviceref.getPath()) if not os.path.exists(src): src = isinstance(serviceref, str) and serviceref + ".stream" or os.path.normpath(serviceref.getPath())
Replicate:
[ActionMap] Keymap 'InfobarInstantRecord' -> Action = 'instantRecord' [TIMER] Filename calculated as: '/media/usb/movie/20210126 1210 - ITV - instant record' [eMP3ServiceRecord] prepare filename /media/usb/movie/20210126 1210 - ITV - instant record.stream [TIMER] start recording on tuner: (fallback) stream [ActionMap] Keymap 'InfobarInstantRecord' -> Action = 'instantRecord' [Screen] Warning: Skin is missing element 'autoresize' in <class 'Screens.MessageBox.MessageBox'>(Stop and delete recording: - instant record). [ActionMap] Keymap 'MsgBoxActions' -> Action = 'ok'. [TIMER] stop recording on tuner: (fallback) stream [eMP3ServiceRecord] stop recording instantRecord stop and delete recording: instant record
DEBUG: working now with hack!
[MovieSelection] DEBUG moved: ('/media/usb/movie/20210126 1210 - ITV - instant record.stream', '/media/usb/movie/.Trash/20210126 1210 - ITV - instant record.stream') [MovieSelection] DEBUG moved: ('/media/usb/movie/20210126 1210 - ITV - instant record.stream.meta', '/media/usb/movie/.Trash/20210126 1210 - ITV - instant record.stream.meta')
WanWizard 26 jan 2021
I can't reproduce it, what exactly was recorded? If I make an instant recording, I get:
-rw-r--r-- 1 root root 174 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.eit -rw-r--r-- 1 root root 22332520 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts -rw-r--r-- 1 root root 416 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.ap -rw-r--r-- 1 root root 12 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.cuts -rw-r--r-- 1 root root 280 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.meta -rw-r--r-- 1 root root 11856 Jan 26 14:25 20210126_1425_-_ITV_HD_-_NEW__JUDGE_RINDER.ts.sc
no problem?
LraiZer 26 jan 2021
Bijgevoegde Bestanden
betacentauri 27 jan 2021
Not very easy to solve. The RecordTimerEntry includes the filename without the extension (.ts, .stream). Adding the extension to the filename is easy, but that can have several side effects. So better don't go this way even it's the nicer one.
Then in MovieSelection a ".ts" is added to the filename:
https://github.com/O...lection.py#L149
How to find out, that it is a .stream and no .ts file? Use a "file exists" function?
Or maybe better add a new field to the timer entry with the extension of the file? But then you also need to change some functions which might cause trouble in some plugins...
@littlesat: Do you have a good idea?
Veranderd door betacentauri, 27 januari 2021 - 18:22
Dimitrij 27 jan 2021
Maybe startswith serviceref...
or
'%3a//' in serviceref
Veranderd door Dimitrij, 27 januari 2021 - 19:59
betacentauri 28 jan 2021
Maybe add a third parameter “filename_extension” in the procedure createMoveList with default value “.ts”. Or similar...
LraiZer 28 jan 2021
Maybe just add similar to the current createMoveList code that checks for ext candidate ('.ap', '.cuts', '.meta', '.sc') and simply check file exits for the currently known candidates as src_ext ('.ts', '.stream') and default to '.ts'. This is similar to the workaround example shown in post #1 which has temporarily fixed it for me at the moment.