/callrecord-renamer

Reformat special file names and update change times (access and modification times too).

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Callrecord Renamer

Releases Open issues License

Reformat special file names and update change times (access and modification times too).

Requirements

  • Python 3.8+:

    Download and install Python from: https://www.python.org/downloads/

  • Python phonenumbers module:

    Run the following command on Windows: C:\Python38\Scripts\easy_install.exe phonenumbers

Setup

  1. Install requirements

  2. Run script with specifying the recording_path:

    ./callrecord-renamer.py /my/call/recordings/path

Examples

36305566778_0_1418396598000.mp4     => BE 2014.12.12-16.03.18 +36(30)556-6778 Foo Bar.mp4
3630556677_1_1416923124000.mp4      => KI 2014.11.25-14.45.24 +36(30)556-677 Orange Bar.mp4
3615566778_1_1417985638000.mp4      => KI 2014.12.07-21.53.58 +36(1)556-6778 Apple Juice.mp4
3628556677_1_1417985638000.mp4      => KI 2014.12.07-21.53.58 +36(28)556-677 Carrot Line.mp4
36305566778_1_1417985638000.mp4     => KI 2014.12.07-21.53.58 +36(30)556-6778 Foo Bar.mp4
36305566778899_1_1417985638000.mp4  => KI 2014.12.07-21.53.58 +36305566778899 Fly City.mp4
180_1_1417985638000.mp4             => KI 2014.12.07-21.53.58 180 Time Service.mp4
null_0_1416989560000.mp4            => BE 2014.11.26-09.12.40 null null.mp4
null_0_1416957160000.mp4            => BE 2014.11.27-00.12.40 null null.mp4
36305566778_0_1418396598000 xyz.mp4 (skipped)
36305588778_1_1417985638000.tmp     (skipped)
temporary.mp4                       (skipped)