1 RenamingFiles
j edited this page 2023-07-02 12:57:13 +05:30

Semantic Meaning of Files

Each movie has a number of meta files, each of which has a number of file instances (paths in archives).

A meta file can have the following meaning:

  • Movie File (avi/mkv/...)

  • Movie File (avi/mkv/...), Part X

  • Subtitle File (srt/sub/idx/rar)

  • Subtitle File (srt/sub/idx/rar), Part X

  • Other File (mp3/txt/...)

  • Other File (mp3/txt/...), Part X

Potential Errors and Warnings

Before files in an archive can be automatically renamed, we have to check for the following conditions:

Errors:

  • "Concurrent Files" (multiple files with the same meaning and extension)

Warnings:

  • "Multiple Files" (movie files with same meaning, but different extension)

  • "Incorrect Subtitles" (there are subtitles, but not every movie file has subtitles, or not every subtitle file has a movie file)

  • "Incomplete Subtitles" (idx without sub, or sub without idx)

  • "Multiple Versions" (both non-part and part files)

  • "Multiple Names" (different strings in Title.Version Name.Part X.ext)

  • "Incorrect Parts" (parts are not 1, 2, 3 ... n)

Renaming Files

Once the errors have been resolved, files can be renamed to:

L/Lastname, Firstname/The Title (Year)/The Title[.Version Name][.Part X].ext