Rutorrent Rss Pcre Tutorial.: Understanding Naming Schemes / Tags
Rutorrent Rss Pcre Tutorial.: Understanding Naming Schemes / Tags
Naming schemes (the name of the torrents and files) are usually quite standard, though
they may differ in some ways. Typically the torrents have the following naming sheme:
show.season#episode#.title.source.format.releasegroup.extension
So some typical shows would look like this:
The.Simpsons.S21E04.Treehouse.of.Horror.XX.HDTV.XviD-FQM.avi
CSI.New.York.S06E05.720p.HDTV.X264-DIMENSION.mkv
Family.Guy.S08E03.720p.WEB-DL.DD5.1.AVC-CtrlHD.mkv
The format is usually one of three codecs, and is also given away by the file extension.
XviD/DivX (.avi) This is the most popular format of choice. It is usually a small file size.
x264 (.mkv) This is the high quality format of choice. It is usually a large file size.
transport (.ts) This is a redundant format and is extremely large.
Now, where files differ; you may or may not find the following information in the torrent.
Also a lot of times the source and format will be swapped or only show one or the other.
Now there is one more tag that I have yet to mention. This one is used when a torrent is
re-released and is usually re-released well after everyone has already downloaded and
watched their show. It is generally a good idea to avoid these since most people have no
interest in using their ratio to re-download a show. These include the following:
reencode, recode, repack, proper, and rerip.
Syntax in Theory.
Everything between the / and the /i will be case insensitive. So it will match
The.Simpsons, SIMPSONS, or the.simpsons.
The ^ shows that the following must be at the very beginning of the line. As mentioned
above, this would be the difference between downloading Desperate.Housewives or
House.
. Matches any single character. This will include a period or a space that are commonly
used between words in torrent names. If you would like to only match periods and not
spaces, since a period is a special character, you would do this by escaping the period
like this: [\.]
(the.)? Using this makes the word the optional so it will be possible to download files
with names starting with both The.Simpsons and Simpsons.
((its|it's).)? Using the preceding two principles above, this would allow you to match
either its, it's, or neither (but nothing else) so you would match the following:
Its.Always.Sunny.In.Philadelphia., It's.Always.Sunny.In.Philadelphia., and
Always.Sunny.In.Philadelphia..
.* This references any number of wildcards, this is an easy way to skip over the title of
the episode if one is included in the filename.
(s)?(01|1)(e|x)?[0-9]+ (s)? means the S is either there or it isn't. (01|1) means
that there must be a number here, it may be either 01 or 1. The (e|x)? means that
there may be an E or an X here but nothing else. [0-9]+ means that there will either be
one or two numbers here, but no more or less.
This would cover everything from S01E02, S8E02, 1x02, or 2010. This will also lower
the chance of capturing torrents named such
as The.Simpsons.S01.DVDRip.5.1.x264-irie that may be released in your RSS feed
but you would not want to download due to their enormous size. It is a good idea to use
the specific season number to lower the risk of downloading old episodes as well.
.*hdtv Is used as the source. Using the wildcards shows that the word hdtv must show
up somewhere towards the end of the torrent name. If you wanted to only download
high quality movies you could use .*720, .*hr.hdtv or even .*1080p. Just make sure
you don't exclude those sources in your exclusion list!
Exclusions.
Well, we already know we want to avoid repacks and the such. You may also want to
avoid smaller resolutions of your TV shows formatted specifically for an iPhone or a PSP.
Sometimes a file has a larger audio stream that isn't compressed and makes the file
larger such as ac3. Here is the exclusion filter I use:
/(hr.hdtv|ac3|720p|1080i|1080p|bdrip|dvdrip|dvdr|dvd-
r|psp|ipod|iphone|mp4|reencode|recode|rerip|repack|proper|preair|transport|web-
dl)/i
This basically means that if any of the strings between the | operators will not be
downloaded.
Filter Examples:
/^30.rock.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^90210.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^((its|it's).)?always.sunny.in.philadelphia.*(s)?(05|5)(e|x)?[0-9]+.*hdtv/i
/^american.dad.*(s)?(05|5)(e|x)?[0-9]+.*hdtv/i
/^americas.next.top.model.*(s)?13(e|x)?[0-9]+.*hdtv/i
/^bones.*(s)?(05|5)(e|x)?[0-9]+.*hdtv/i
/^bored.to.death.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^csi.miami.*(s)?(08|8)(e|x)?[0-9]+.*hdtv/i
/^csi.(new.york|newyork|ny).*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^californication.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^castle.2009.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^criminal.minds.*(s)?(05|5)(e|x)?[0-9]+.*hdtv/i
/^curb.your.enthusiasm.*(s)?(07|7)(e|x)?[0-9]+.*hdtv/i
/^defying.gravity.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^desperate.housewives.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^dexter.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^dollhouse.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^eastwick.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^entourage.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^family.guy.*(s)?(08|8)(e|x)?[0-9]+.*hdtv/i
/^(flashforward|flash.forward).*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^flashpoint.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^fringe.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^gary.unmarried.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^glee.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^gossip.girl.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^greek.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^greys.anatomy.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^heroes.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^house.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^how.i.met.your.mother.*(s)?(05|5)(e|x)?[0-9]+.*hdtv/i
/^law.and.order.*(s)?20(e|x)?[0-9]+.*hdtv/i
/^law.and.order.svu.*(s)?11(e|x)?[0-9]+.*hdtv/i
/^legend.of.the.seeker.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^lie.to.me.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^mad.men.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^medium.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^melrose.place.2009.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^merlin.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^monk.*(s)?(08|8)(e|x)?[0-9]+.*hdtv/i
/^mythbusters.*(s)?(07|7)(e|x)?[0-9]+.*hdtv/i
/^ncis.*(s)?(07|7)(e|x)?[0-9]+.*hdtv/i
/^ncis.los.angeles.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^nip.tuck.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^numb3rs.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^one.tree.hill.*(s)?(07|7)(e|x)?[0-9]+.*hdtv/i
/^parks.and.recreation.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^private.practice.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^psych.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^sanctuary.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^saturday.night.live.*(s)?35(e|x)?[0-9]+.*hdtv/i
/^smallville.*(s)?(09|9)(e|x)?[0-9]+.*hdtv/i
/^so.you.think.you.can.dance.*(s)?(06|6|02|2)(e|x)?[0-9]+.*hdtv/i
/^sons.of.anarchy.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^south.park.*(s)?13(e|x)?[0-9]+.*hdtv/i
/^star.wars.*clone.wars.*(s)?(02|2)(e|x)?[0-9]+.*hdtv/i
/^stargate.universe.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^supernatural.*(s)?(05|5)(e|x)?[0-9]+.*hdtv/i
/^(the.)?amazing.race.*(s)?15(e|x)?[0-9]+.*hdtv/i
/^(the.)?big.bang.theory.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^(the.)?cleveland.show.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^(the.)?forgotten.2009.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^(the.)?good.wife.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^(the.)?office.*(s)?(06|6)(e|x)?[0-9]+.*hdtv/i
/^(the.)?sarah.jane.adventures.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^(the.)?simpsons.*(s)?21(e|x)?[0-9]+.*hdtv/i
/^(the.)?ultimate.fighter.*(s)?10(e|x)?[0-9]+.*hdtv/i
/^(the.)?vampire.diaries.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^til.death.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^torchwood.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^trauma.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i
/^true.blood.*(s)?(03|3)(e|x)?[0-9]+.*hdtv/i
/^two.and.a.half.men.*(s)?(07|7)(e|x)?[0-9]+.*hdtv/i
/^ugly.betty.*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^(the.)?venture.(brothers|bros).*(s)?(04|4)(e|x)?[0-9]+.*hdtv/i
/^white.collar.*(s)?(01|1)(e|x)?[0-9]+.*hdtv/i