# Movie Update TimeStamp to Theatrical Release Date [![pknw1logo-white.png](https://bookstack.pknw1.co.uk/uploads/images/gallery/2025-01/scaled-1680-/HLPpknw1logo-white-png.png)](https://bookstack.pknw1.co.uk/uploads/images/gallery/2025-01/scaled-1680-/HLPpknw1logo-white-png.png) ##### `/usr/local/bin/releaseDate` ****Movie File Date/Time modifier**** Reads the selected movie theatrical release date from previously stored metadata and sets the movie date and time to the release date so that it displays orderly in Plex ``` #!/bin/bash # set releaseDate TS=$(cat "${1}" | jq '.releaseDate' | sed 's/"//g' | awk -FT '{print $1}' | awk -F- '{print $1$2$3}')0000.00 FOLDER=$(dirname "${1}") if [ "${TS}" == "0000.00" ] || [ "${TS}" == "null0000.00" ] then echo "${FOLDER} invalid" else echo "${TS} ${FOLDER}" || echo "${FOLDER} invalid" touch -a -m -t "${TS}" "${FOLDER}" || "${FOLDER} invalid" touch -a -m -t "${TS}" "${FOLDER}"/* || "${FOLDER} invalid" fi ``` ****execution****
- [ ] ensure the movie has been scraped - [ ] requires <movie-name>.nfo to exist - [ ] parses nfo for release date - [ ] updates the file timestamp
****further info****
****Product Home**** [Link](https://www.pknw1.co.uk)
****Documentation**** [Link](https://www.pknw1.co.uk)
****Github**** [Link](https://www.pknw1.co.uk)
****DockerHub**** [Link](https://www.pknw1.co.uk)
****Misc**** [Link](https://www.pknw1.co.uk)
more text more text