This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Help with regexp

Tags: None
(comma "," separated)
msson
Registered Member
Posts
1
Karma
0

Help with regexp

Sun Apr 29, 2007 9:44 am
Hi..

I'm having som trouble figuring out how to make a good filter for various tv-shows. Could anyone share their filters with me or help me make some?

Heroes
Stargate Atlantis
Smallville
Supernatural
Dexter
Prison Break
Eureka
Battlestar Galactica
Mythbusters
Ugly Betty
Men in Trees
Desperate Housewives
Stormhierta
Registered Member
Posts
11
Karma
0

Mon Jul 16, 2007 9:48 am
Yeah, a guide for how to write your regexp stuff for the RSS Feeds would be nice.
rwbehne
Registered Member
Posts
10
Karma
0

Mon Aug 06, 2007 5:22 am
Ya, I triple that. I looked into it, but building regular expressions is a foreign language to me. May as well have been greek!

I'd like to know how to make a filter for Star Trek Enterprise, all four seasons, all disks, iso images only.


--
Mit freundlichen Grüßen,
Russ.
randomjohn
Registered Member
Posts
9
Karma
0

Mon Aug 06, 2007 12:10 pm
There's a pretty good generic starter at

http://en.wikipedia.org/wiki/Regexp


eztvefnet has a pretty good one here:

http://docs.google.com/View?docid=dgsf923m_2d6k97n

you really ought to be able to figure it out if you read those 2 and do a little experimentation.

ktorrent's rss script is really good so your regexps don't have to be. I think for heroes all I have is heroes.*.hdtv.* and I exclude [264|720p]

if you only wanted the lol or xor release it's real easy to do, but that's enough to get started
rwbehne
Registered Member
Posts
10
Karma
0

Tue Aug 07, 2007 5:13 am
randomjohn wrote:There's a pretty good generic starter at

http://en.wikipedia.org/wiki/Regexp


eztvefnet has a pretty good one here:

http://docs.google.com/View?docid=dgsf923m_2d6k97n

you really ought to be able to figure it out if you read those 2 and do a little experimentation.

ktorrent's rss script is really good so your regexps don't have to be. I think for heroes all I have is heroes.*.hdtv.* and I exclude [264|720p]

if you only wanted the lol or xor release it's real easy to do, but that's enough to get started

Okaaaaaaaaaaaaaaaaaaayyyyyyyyyyyy....
So what does excluding `[264|720p]' mean? And if I only wanted to look for DVD iso files, what should I search on, and what for, because it's not just about which regular expressions to use, but what to search on? I'm somewhat clueless, even after looking at the pages you suggested.


--
Mit freundlichen Grüßen,
Russ.
randomjohn
Registered Member
Posts
9
Karma
0

Tue Aug 07, 2007 12:07 pm
excluding [264|720p] means I don't want h264 or x264 files or files in a 720p resolution to match my query.

I think you're not understanding how rss feeds work. They're used for recurring episodes of a show, usually. Things that have aired already and are out on dvd aren't the type of thing you'd expect to see on a tv rss feed. they're the sort of thing you'd have to break the copyright laws to get by searching on one of "those" bittorrent sites. You're not going to find an rss feed that is putting those out regularly now. If Star Trek was still airing, you'd set up a filter for something like Star.Trek.Enterprise.S??E??.hdtv.*.avi then, every week, within a few hours after it aired, you'd have it on your hard drive.
rwbehne
Registered Member
Posts
10
Karma
0

Wed Aug 08, 2007 3:12 am
randomjohn wrote:excluding [264|720p] means I don't want h264 or x264 files or files in a 720p resolution to match my query.

I think you're not understanding how rss feeds work. They're used for recurring episodes of a show, usually. Things that have aired already and are out on dvd aren't the type of thing you'd expect to see on a tv rss feed. they're the sort of thing you'd have to break the copyright laws to get by searching on one of "those" bittorrent sites. You're not going to find an rss feed that is putting those out regularly now. If Star Trek was still airing, you'd set up a filter for something like Star.Trek.Enterprise.S??E??.hdtv.*.avi then, every week, within a few hours after it aired, you'd have it on your hard drive.


Now you're learning...: I told you I was clueless! So if getting an iso isn't kosher, how is getting it in avi format so?

Now, in the example you gave, Supposing I decided to get different ones; For example, there's Stargate SG1, Stargate Atlantis, and suppose there's also another spinoff Stargate Whatever. Is this correct to get all?:
Stargate.*.S??E??.hdtv.*.avi


--
Mit freundlichen Grüßen,
Russ.
rwbehne
Registered Member
Posts
10
Karma
0

Wed Aug 08, 2007 5:43 am
Another thing that confuses me is the "Test text" section. How does that work?


--
Mit freundlichen Grüßen,
Russ.
randomjohn
Registered Member
Posts
9
Karma
0

Fri Aug 10, 2007 11:48 pm
the test text is good if you have the file listing from your rss feed and want to make sure it's going to match your expression.

I think your stargate example should work.

I'm not going to tell you where to get pirated copies of dvds. It's one thing to be downloading current episodes of broadcast shows as they come out, it's entirely another to pirate a commercially packaged and released dvds.
rwbehne
Registered Member
Posts
10
Karma
0

Mon Aug 13, 2007 4:13 am
randomjohn wrote:I'm not going to tell you where to get pirated copies of dvds. It's one thing to be downloading current episodes of broadcast shows as they come out, it's entirely another to pirate a commercially packaged and released dvds.


Actually, I'm more interested in current episodes. One show I like, but can't get good reception on is New Yankee Workshop. I've tried writing a filter, but for some reason it's not downloading anything. I'm filtering on New.Yankee.Workshop*[avi|mp4]. (I can use either format, but mp4 would be more convenient for me, since I can load it into my ipod and watch when and where I have time, then later delete it to make room for more.) I figured out how the test text works, and that filter works on files like New Yankee Workshop - Highboy1.avi.torrent.

I also wrote another filter for file names like NYWS-0606-router101.avi.torrent, using this filter: NYWS*[avi|mp4].

The test text says the former filter will work, but the latter one won't, and I don't see why. Also, even though the former filter should work, nothing has been downloaded. Perhaps I'm not using the correct feeds. Suggestions?


--
Mit freundlichen Grüßen,
Russ.
randomjohn
Registered Member
Posts
9
Karma
0

Mon Aug 13, 2007 5:11 pm
I'm far from an expert on regex, believe me. If you can take either the .avi or .mp4 and don't care which, why not just leave out the search term? Is there some other format that show comes out in that you want to exclude? As I mentioned above, I filter out all h264 and 720p, so usually only avi, mpg or mp4 would be left for me. try taking that expression out of your filter and adding the exclusions of whatever you want.
xevix
Registered Member
Posts
34
Karma
0

Sat Sep 22, 2007 10:12 am
A lot of anime titles include a hash in the title, such as: [Kuro-Hana] Kenichi - 48 [6BDD5AC6].avi

I've tried many things but the hash keeps interfering with the specific episodes I'm seeking. Here's my current regex: \[.*\].Kenichi.*[1-9]{2,2}.*.avi
xevix
Registered Member
Posts
34
Karma
0

Sat Sep 22, 2007 11:07 pm
Ok I've been looking at the RSS Filter code and the way it handles regex's deviates a bit from what I'm used to Qt doing by itself. The biggest problem seems to be that it assumes there's a season number, and in my case there isn't. What seems to be happening is that it takes what I want to be the episode number as the season, then uses part of the hash as the episode number. What really gets me though is how the episode bounds I set for the series aren't respected in any case.

I'd like the option of not requiring a season number, and for the episode bounds to work correctly.
zenten
Registered Member
Posts
2
Karma
0

Thu Oct 25, 2007 5:53 pm
I've read through this, and the links provided on regex, and I'm still having trouble.

What I want to do is have KTorrent grab everything that does not have .mkv in the name of the torrent file, and download it automatically. I only have one feed, and that is filtered on the feed end to only give me the series I want.

How would I do this?
Stormhierta
Registered Member
Posts
11
Karma
0

Tue Nov 06, 2007 7:39 am
You could just put a general *.mkv in the ignore section for the RSS filters?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]