Page 1 of 1
Movie Folder named correctly, but filename is unchanged
Posted: 23 Apr 2016, 20:05
by Ash789
Hi,
I have been using filebot to rename TV files for a while and it has been great, so I decided to write a script that would rename movie files and order them into folders like this:
MyDrive/Movies/Movie Name (2016)/Movie Name (2016) 1080p.mp4
My current script creates a folder with the correct naming format and copies the video file inside,
but it does not change the video file from its original filename, like this:
MyDrive/Movies/Movie Name (2016)/original.filename.mp4
Can anyone spot what I'm doing wrong?
My script is below (running this on a Raspberry Pi 2).
Code: Select all
/opt/share/filebot/bin/filebot.sh -rename -r /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/* --format "/media/PIUSBDRIVE/shares/PiMediaServer/movies/{n} ({y}) {s3d}/{n} ({y) {s3d} {vf}" --db themoviedb -non-strict
Thanks!
Re: Movie Folder named correctly, but filename is unchanged
Posted: 23 Apr 2016, 21:03
by rednoah
Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
- Include screenshots, logs or filenames (i.e. demonstrate the issue)
- Include basic information (i.e. sysinfo output)

Please read
How to Request Help and
Fix Problems, Report Bugs, Get Features
Re: Movie Folder named correctly, but filename is unchanged
Posted: 23 Apr 2016, 21:14
by Ash789
Here is the log from my latest attempt.
Also I wonder is there a way to stop the subtitle files getting copied, as I don't really need them.
Thanks in advance for anyone who takes a look at this. Much appreciated.
Code: Select all
23-04-2016-19:30:24
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Captain.America.The.First.Avenger.1080p.BrRip.x264.YIFY.mp4]
Stripping invalid characters from new path: /media/PIUSBDRIVE/shares/PiMediaServer/movies/Captain America: The First Avenger (2011) /Captain America: The First Avenger (2011)
Stripping invalid characters from new path: /media/PIUSBDRIVE/shares/PiMediaServer/movies/Captain America: The First Avenger (2011) /Captain America: The First Avenger (2011)
Skipped [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Captain.America.The.First.Avenger.1080p.BrRip.x264.YIFY.mp4] because [/media/PIUSBDRIVE/shares/PiMediaServer/movies/Captain America The First Avenger (2011)/Captain America The First Avenger (2011).mp4] already exists
Skipped [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Captain.America.The.First.Avenger.1080p.BrRip.x264.YIFY.srt] because [/media/PIUSBDRIVE/shares/PiMediaServer/movies/Captain America The First Avenger (2011)/Captain America The First Avenger (2011).srt] already exists
Processed 2 files
Done ヾ(@⌒ー⌒@)ノ
23-04-2016-20:00:01
Rename movies using [TheMovieDB]
No media files: [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Other/AhaShare.com.txt, /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Other/Torrent downloaded from Demonoid.com - Copy.txt, /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/WWW.YIFY-TORRENTS.COM.jpg]
Failure (°_°)
23-04-2016-20:30:01
Rename movies using [TheMovieDB]
No media files: [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Other/AhaShare.com.txt, /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Other/Torrent downloaded from Demonoid.com - Copy.txt, /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/WWW.YIFY-TORRENTS.COM.jpg]
Failure (°_°)
23-04-2016-21:00:01
Rename movies using [TheMovieDB]
No media files: [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Other/AhaShare.com.txt, /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Other/Torrent downloaded from Demonoid.com - Copy.txt, /media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/WWW.YIFY-TORRENTS.COM.jpg]
Failure (°_°)
This resulted in the file appearing as follows (correct folder name, incorrect filename):
PiMediaServer/movies/Captain America The First Avenger (2011)/Captain.America.The.First.Avenger.1080p.BrRip.x264.YIFY.mp4
This folder didn't exist before I ran the script, so I'm unsure why I'm getting this message in the log
Code: Select all
Skipped [/media/PIUSBDRIVE/shares/PiMediaServer/torrents_movies/Captain America - The First Avenger (2011)/Captain.America.The.First.Avenger.1080p.BrRip.x264.YIFY.mp4] because [/media/PIUSBDRIVE/shares/PiMediaServer/movies/Captain America The First Avenger (2011)/Captain America The First Avenger (2011).mp4] already exists
Re: Movie Folder named correctly, but filename is unchanged
Posted: 24 Apr 2016, 06:35
by rednoah
Input file:
Code: Select all
Captain America - The First Avenger (2011)/Captain.America.The.First.Avenger.1080p.BrRip.x264.YIFY.mp4
Output file:
Code: Select all
Captain America The First Avenger (2011)/Captain America The First Avenger (2011).mp4
So according to the logs it works exactly as you want and as it should according to your format. In this case it's skipping it because the output file already exists, which means it has been working all along.
Re: Movie Folder named correctly, but filename is unchanged
Posted: 24 Apr 2016, 13:04
by Ash789
Just tried the script with another file and everything worked as expected.
Not sure what was going on yesterday!
I was a bit confused as to why I wasn't getting a 1080p at the end of the filename in the log,
but just realised about the additional steps required to get MediaInfo working.
Thanks for the help rednoah.
This is a great tool!