Alex,
I think I am too lazy to find the patterns...;)
Anyway, I managed to solve the original problem a different way. The issue
that started me on this journey is that some of the .mkv files had been
converted, and my original one liner was failing:
find /media/plex/ -name "*.mkv" -exec ffmpeg
Sure there is! There is never a pattern *until we want a pattern*, then
you'd be surprised at what pops up!
You might find that you need to process in groups (*ie: movies that have
"()" in the name and others that don't*).
Try this:
find /media/plex/ -type f -name "*.mkv" -exec bash -c "if [
Alex,
Thanks for the idea. However, there really aren't any common patterns in
the 120 targets that I can match a regex to.
Mark
On Sun, Oct 15, 2017 at 8:20 AM, Snyder, Alexander J <
a...@misteralexander.com> wrote:
> I did something very similar (BASH/find/ Plex) just the other day! The
> sol
Aaron,
Thanks for the tip. However,
find /media/plex -name "Robin Hood (1973 Movie) [x264-AAC]*"
Does not find anything. Returns nothing on the command line. No errors, it
just does not match anything.
Mark
On Sun, Oct 15, 2017 at 4:08 AM, Aaron Jones wrote:
> Im just laying in bed, but try
I did something very similar (BASH/find/ Plex) just the other day! The
solution Aaron gave will fix it:
"{}" instead of '{}'.
May I also suggest matching the output to a regex pattern. That helps me
sort with great precision:
. -exec bash -c "if [[ "{}" =~ (my)([pattern]{3}) ]]; then doThis;
Im just laying in bed, but try double quotes instead of singles and then paste
me the exact error if you get one.
> On Oct 14, 2017, at 10:15 PM, Mark Phillips
> wrote:
>
> I found a few (~120) .mkv files crept into my plex movie drive. Plex on my
> limited plex server has trouble transcodin
I found a few (~120) .mkv files crept into my plex movie drive. Plex on my
limited plex server has trouble transcoding these files in real time, so I
need to transcode them into mp4s ahead of time.
I tried this script, but I have an problem with the second find command.
find /media/plex/ -name '*