Release myth2kodi -- generate Kodi friendly file-names from MythTV recordings.
Welcome @Scansterz

Just to clarify, as I haven't kept track of MythTV lately, you mean that the new filename pattern is now:
Code:
CCCCC_YYYYMMDDhhmmss.*
where each 'C' indicates a digit between zero and nine -- there used to be 4 digits in this channel id part of the name but now there are 5?

If this is the case then, on line 872 of the myth2kodi script just replace {4} with {4,5} near the start of RECPATTERN. That is, to match both the old and new naming, line 872 should now be:
Code:
  RECPATTERN='[0-9]{4,5}_20[0-9]{2}[0-1][0-9][0-3][0-9][0-2][0-9][0-5][0-9]{3}\.'

There is one other instance in the script of pattern matching the MythTV filename, but, by dumb luck, it will still match the updated naming correctly, so does not need to be changed.
Reply


Messages In This Thread
RE: myth2kodi -- generate Kodi friendly file-names from MythTV recordings. - by stuartk - 2020-04-02, 15:35
Logout Mark Read Team Forum Stats Members Help
myth2kodi -- generate Kodi friendly file-names from MythTV recordings.2