unrar, Move and rename subs helps

Any questions? Need some help?
Post Reply
nerdydave
Posts: 5
Joined: 30 Sep 2019, 18:56

unrar, Move and rename subs helps

Post by nerdydave »

I am trying to automate the process of getting the subs out of the subfolder rename it and put it with the movie.

The subs are IDX and SUB files. They are in a nested rar file. The sub names a lot of time does not make any sense without knowing what was the parent directory. just moving all the subs out of there parent directory can make it really hard to figure out which ones go with each mkv file. Moving each file by itself takes forever.

Any suggestions on the best way to get the MKV + .idx + .sub all in the same folder and renamed would be awesome!

So far I got the movies and TV shows decompressed moved and renamed properly just the subs is what is left.

If anyone would like to build this I would be happy to pay for the work done.

Thank you
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unrar, Move and rename subs helps

Post by rednoah »

Please share a sample file structure (e.g. empty video files, with rar archive with subs) for testing. If it's a relatively easy task, then purchasing a life-time license should be payment enough.
:idea: Please read the FAQ and How to Request Help.
nerdydave
Posts: 5
Joined: 30 Sep 2019, 18:56

Re: unrar, Move and rename subs helps

Post by nerdydave »

I Believe I have a lifetime license PX9461974

typical file structure I am working with is Y:\completed\Ritual.2000.1080p.BluRay.x264-REGRET has the multi-part rars and Y:\completed\Ritual.2000.1080p.BluRay.x264-REGRET\Subs contains the subs. the subs are nested so they need to be unraired twice.

hope that helps.

pic link: https://drive.google.com/file/d/1Ho0jyH ... sp=sharing

right now what it does is that it unrars everything but I have to go hunt down the subs through multiple folders. The movies get moved to /moviename folders on the correct drive.

Thank you.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unrar, Move and rename subs helps

Post by rednoah »

So you're using the amc script? In this case, please post the log file so we can see what's happening.
:idea: Please read the FAQ and How to Request Help.
nerdydave
Posts: 5
Joined: 30 Sep 2019, 18:56

Re: unrar, Move and rename subs helps

Post by nerdydave »

Code: Select all

Extracting files [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.subs\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.rar, Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.subs\Subs\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.idx]
Ignore orphaned subtitles: Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.subs\Subs\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.idx
Read archive [jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.rar] and extract to [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.subs\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks\Subs]
Extracting files [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.subs\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks\Subs\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.sub]
Ignore orphaned subtitles: Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks.subs\Subs\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks\Subs\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.sub

Input: Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-
SPARKS\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.mkv

Rename movies using [TheMovieDB]
Auto-detect movie from context: [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.mkv]
Auto-detect movie from context: [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BRRip.X264.AAC-ETRG\Jack.Reacher.Never.Go.Back.2016.1080p.BRRip.x264.AAC-ETRG.mp4]
[DUPLICATE] from [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BRRip.X264.AAC-ETRG\Jack.Reacher.Never.Go.Back.2016.1080p.BRRip.x264.AAC-ETRG.mp4] to [Z:\server FTP\filebot\Movies\Jack Reacher - Never Go Back (2016)\Jack Reacher - Never Go Back (2016).mp4]
[DUPLICATE] from [Z:\server FTP\WinSCP\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\jack.reacher.never.go.back.2016.1080p.bluray.x264-sparks\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS\Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.x264-SPARKS.mkv] to [Z:\server FTP\filebot\Movies\Jack Reacher - Never Go Back (2016)\Jack Reacher - Never Go Back (2016).mkv]
Processed 2 files

all i need to do now is grab the extracted subs and put them into the same folder the movies got placed.

thanks
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unrar, Move and rename subs helps

Post by rednoah »

I see. The Ignore orphaned subtitles rule excludes these subtitle files. In some cases, that is desired behaviour, because such subtitles are likely to get mismatched, but in your case, it'd probably be fine. I'll make changes to allow it in -non-strict mode.


:idea: You can try the latest script revision with these changes by using -script dev:amc in combination with the latest FileBot 4.8.6 beta release.
:idea: Please read the FAQ and How to Request Help.
nerdydave
Posts: 5
Joined: 30 Sep 2019, 18:56

Re: unrar, Move and rename subs helps

Post by nerdydave »

Sweet! Thank you so much!

I will try that soon as I can.
nerdydave
Posts: 5
Joined: 30 Sep 2019, 18:56

Re: unrar, Move and rename subs helps

Post by nerdydave »

Works Perfect.

been a tough week but I finally got a chance to test it.

Thank you so much.
Post Reply