Plex Forums: Auto-rename your episodes - Plex Forums

Jump to content

  • (22 Pages)
  • +
  • « First
  • 20
  • 21
  • 22
  • You cannot start a new topic
  • You cannot reply to this topic

Auto-rename your episodes

#421 User is offline   fhb Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 23-October 09

Posted 27 May 2010 - 10:28 PM

View PostMikedm139, on 27 May 2010 - 08:49 PM, said:

After further thought on your comments on thetvdb implementation, I wonder what value it would provide. Plex already scrapes thetvdb when adding files to the library as long as they are named in the "Show Name - S##E##" format. That is pretty easy to accomplish with this program as long as the original filenames include the info in some fashion. If the filenames (and/or folder structures) don't include the series, season, and episode then I'm not aware of any way of scraping the data from thetvdb or any other source. Although, that would be interesting to see...

Well it wouldn't be interesting for somebody who only uses Plex but there are some PC's here and my siblings watch shows using the file system. titles would make it perfect, it's no basic need.
0

#422 User is offline   Mikedm139 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 17-October 09

Posted 28 May 2010 - 04:40 PM

View PostBoso, on 06 May 2010 - 08:32 AM, said:

I've tried, and noticed that Plex handles multiple sub files very well! :)
this setup works for sure:
- Show.Name.S01E01.avi
- Show.Name.S01E01.en.srt
- Show.Name.S01E01.it.srt
- Show.Name.S01E01.it.X.srt
- Show.Name.S01E01.Y.srt

is it possible to rename .srt files leaving the "double" extension?
:D


Regex isn't my forte but, it seems to me that if there is a standard set of language notations for the .srt files, such as en/it/etc it should be possible to build a rule for it. I would try something like

match "[-._]" replace " "
match "(.*)s(d\{1,2})e(d\{2})(en|it)?(X|Y)?(srt)" replace "\1/Season \2/\1 - S\2E\3.\4.\5.\6"
this step may add a couple extra periods in cases where there no extra additional extensions so...
match "(?\.+)" replace "\."

Remove the "s when copy/pasting. I'm not at my computer and haven't tested this. It's just based on your example. If there are other language notations you want considered, just add them to the (en|it) list each separated by pipes |. I wasn't sure what the X & Y represented, but you can just replace in the rule as appropriate.
0

#423 User is offline   Boso Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 30-July 08

Posted 29 May 2010 - 04:57 PM

View PostMikedm139, on 28 May 2010 - 04:40 PM, said:

Regex isn't my forte but, it seems to me that if there is a standard set of language notations for the .srt files, such as en/it/etc it should be possible to build a rule for it. I would try something like

match "[-._]" replace " "
match "(.*)s(d\{1,2})e(d\{2})(en|it)?(X|Y)?(srt)" replace "\1/Season \2/\1 - S\2E\3.\4.\5.\6"
this step may add a couple extra periods in cases where there no extra additional extensions so...
match "(?\.+)" replace "\."

Remove the "s when copy/pasting. I'm not at my computer and haven't tested this. It's just based on your example. If there are other language notations you want considered, just add them to the (en|it) list each separated by pipes |. I wasn't sure what the X & Y represented, but you can just replace in the rule as appropriate.


Thanks!
I'll try them... :D
0

#424 User is offline   banjomacman Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 02-February 10

Posted 27 July 2010 - 01:02 AM

I'm having trouble with using folder actions. I get the following in my console.

7/26/10 8:57:11 PM com.softwarefromspace.com[3426] folder action called
7/26/10 8:57:30 PM /System/Library/CoreServices/AppleScript Runner.app/Contents/MacOS/AppleScript Runner[3431] CPSGetFrontProcess(): This call is deprecated and should not be called anymore.

That's it and it doesn't run. If I manually run episode linker it works. If folder actions just doesn't reliably work can I use cron to schedule it? Thanks. Mike.
0

#425 User is offline   Mikedm139 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 17-October 09

Posted 28 July 2010 - 11:22 PM

View Postbanjomacman, on 27 July 2010 - 01:02 AM, said:

If folder actions just doesn't reliably work can I use cron to schedule it?


I thought I had folder actions working (lasted about a week). Current consensus is that it's Apple's fault that folder actions are unreliable. I've read about people using cron to automate EL or similar scripts, but I don't know the first thing about cron so I can't help you with that.
0

#426 User is offline   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 355
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 24 August 2010 - 06:02 PM

Does this script have the capability of moving files to folders (in this case from my Mac to my NAS) that Plex looks for content?
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#427 User is offline   adriandb Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 234
  • Joined: 19-April 09

Posted 25 August 2010 - 04:33 PM

Yes, as long as the volume is mounted in the finder.
0

#428 User is offline   mgworek Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 47
  • Joined: 11-June 08

Posted 01 September 2010 - 03:18 PM

I am trying to do a mass file rename and having trouble. My folder structure is Shows>Show Tile>Season #>101

I am doing a test with one show. If I tell the source it is Shows (like I said, i want to do a mass file rename), I run it and it does Season 1>Season 1>Season 1 - s0101 it is bypassing the show tile.

Any thoughts?

Thanks
0

  • (22 Pages)
  • +
  • « First
  • 20
  • 21
  • 22
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users