Closed LucyDimitrova closed 3 weeks ago
I've added the newest changes to the script to allow saving the recording files with the new generated filename and moved around the try/catch block to handle/skip items that had an error during download.
@koonchaya, this can be tested now using the script (the link is the same).
Current recording filenames
@LucyDimitrova the filename format would be better like this [YYYMMDD_HHMMSS]-[r4ecording id].[extension]
For example: 20180420_063348-3300978.flac
Updated filename format
Context
Currently, the download script downloads files with the filename stored in S3. However, for the recording files users might find these filenames confusing and hard to navigate and figure out which file belongs to which recording.
Task
When downloading the recording files, generate a filename for each file using the format
[TIMESTAMP]_[RECORDING_ID].[EXTENSION]
, whereTIMESTAMP
isdatetime
in the database. Each recording file should be downloaded in a subfolder for the correspondingsite_id
(already implemented).Notes
As far as I know, there's no way for people to collaborate on gists, but I guess a new gist can be created with the new changes.