Page 1 of 1

UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 15 Jan 2018, 23:36
by coldnose
Hi,

Sorry newbie to this but I can't seem to find this answer. Each UFC fight (including fight nights, etc.) generally come with 3 files: early prelim, prelim, and the PPV or main event. I want FB to be able to create a folder named for the main event and then move the 3 files into folder. Sometimes the files download as individual files and sometimes as folders.

Can FB handle this and how?

Thanks for your support.

Re: UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 15 Jan 2018, 23:46
by rednoah
This use case is probably not supported. Could you give me a few example file names and how you would like them organized?

Re: UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 16 Jan 2018, 23:21
by coldnose
Rednoah,

Thank you for looking into this. Here's a sample list of the files:
  • UFC 211 Early Prelims HDTV x264-Ebi [TJET]
    UFC 211 PPV Miocic vs dos Santos 2 HDTV x264-Ebi [TJET]
    UFC 211 Prelims HDTV x264-Ebi [TJET]
    UFC.212.Early.Prelims.WEB-DL.H264.Fight-BB.mp4
    UFC.212.PPV.Aldo.vs.Holloway.HDTV.x264-Ebi.mp4
    UFC.212.Prelims.WEB-DL.H264.Fight-BB.mp4
    UFC.213.Early.Prelims.WEB-DL.H264.Fight-BB.mp4
    UFC.213.Prelims.HDTV.x264-Ebi.mp4
    UFC.213.Romero.vs.Whittaker.PPV.HDTV..x264-Ebi.mp4
What I'd like to see is:
  • \UFC 211 Miocic vs dos Santos 2
    \UFC 212 Aldo vs Holloway
    \UFC 213 Romero vs Whittaker
With each folder containing the three files/folders related to the event. Note that some of the above are files (.mp4) and others are folder names.

Re: UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 17 Jan 2018, 14:10
by rednoah
Presumably, these UFC episodes don't quite match the data in TheTVDB.

You could use plain file mode to at least group them into folders like so:

Code: Select all

{fn.match(/UFC.\d{3}/).space(' ')}/{fn}
:idea: Adding the title from the main file as well is possible, as is cleaning the file names, but that'll make the format expression significantly more complex.

Re: UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 17 Jan 2018, 22:56
by coldnose
Thank you for your suggestion. I will continue to play with the batch rename and the format expression. I appreciate the help!

Re: UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 19 Jan 2018, 10:28
by sighunter
UFC Events are not in TheTVDB but rather TheMovieDB (https://www.themoviedb.org/movie/465372 ... -whittaker)
It should work if you treat them like movies. It can't separate Prelims/PPV/Early Prelims though

Re: UFC Fights (incl Fight Night, UFC on Fox, etc..)

Posted: 19 Jan 2018, 11:01
by rednoah
Is FileBot able to match them correctly? Because if that works, then you just need to keeps some bits of the original path just to make sure you don't end up with the same destination path for all 3 files.

e.g.

Code: Select all

{fn.match(/Early.Prelims|Prelims/)}