Original File and folder name
Posted: 22 Feb 2017, 20:45
I have a question about the CLI variables
So this is the output of a processed file:
There is a line says :
Input: /media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mp4
After the file has been renamed, is there a variable that contains the input information above? I would want to pass that variable to the -exec
i currently use
to get
So this is the output of a processed file:
Code: Select all
2017-02-22 01:27:25,693 - Media_Processing - DEBUG - StandardE: Locking /media/sdu1/home/saitoh183/private/script/Filebot.log
Run script [fn:amc] at [Wed Feb 22 01:03:11 GMT-05:00 2017]
Parameter: clean = y
Parameter: movieFormat = /media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/{plex[1..-1]}
Parameter: ut_label = Movies
Parameter: exec = ""python /media/sdu1/home/saitoh183/private/script/rclone_move.py -fp "{file}" -fr "{localize.french.name} ({y})" -en "{ny}"""
Argument[0]: /media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies
{duration} => Expression yields empty value: Binding "duration": Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path ([file:/media/sdu1/home/saitoh183/filebot/FileBot.jar])
Input: /media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mp4
Group: [mov:manchester by the sea 2016] => [Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mkv/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mp4]
[MOVE] Rename [/media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mkv/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mp4] to [/media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester by the Sea (2016)/Manchester by the Sea (2016).mp4]
Processed 1 files
Execute: ""python /media/sdu1/home/saitoh183/private/script/rclone_move.py -fp "/media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester by the Sea (2016)/Manchester by the Sea (2016).mp4" -fr "Manchester by the Sea (2016)" -en "Manchester by the Sea (2016)"""
Input: /media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST/Manchester.By.The.Sea.2016.MULTi.1080p.BluRay.x264-LOST.mp4
After the file has been renamed, is there a variable that contains the input information above? I would want to pass that variable to the -exec
i currently use
Code: Select all
exec= \"\"python /media/sdu1/home/saitoh183/private/script/rclone_move.py -fp \"{file}\" -fr \"{localize.french.name} ({y})\" -en \"{ny}\"\"\"'
Code: Select all
""python /media/sdu1/home/saitoh183/private/script/rclone_move.py -fp "/media/sdu1/home/saitoh183/private/Transfer/manage/movies/dualmovies/Manchester by the Sea (2016)/Manchester by the Sea (2016).mp4" -fr "Manchester by the Sea (2016)" -en "Manchester by the Sea (2016)"""