Movie Folder named correctly, but filename is unchanged

Any questions? Need some help?
Post Reply
Ash789
Posts: 5
Joined: 15 Jan 2016, 11:52

Movie Folder named correctly, but filename is unchanged

Post 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!
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie Folder named correctly, but filename is unchanged

Post 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)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features
:idea: Please read the FAQ and How to Request Help.
Ash789
Posts: 5
Joined: 15 Jan 2016, 11:52

Re: Movie Folder named correctly, but filename is unchanged

Post 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
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Movie Folder named correctly, but filename is unchanged

Post 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.
:idea: Please read the FAQ and How to Request Help.
Ash789
Posts: 5
Joined: 15 Jan 2016, 11:52

Re: Movie Folder named correctly, but filename is unchanged

Post 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!
Post Reply