Adding more torrent sites for rss d/l (1 Viewer)

Swede

Portal Pro
September 6, 2006
490
47
West Coast Archipelago
Home Country
Sweden Sweden
Well, I tried but couldn't get it to work.

This works in the Free Regular Expression Designer I used
<td><a href="/torrent/(?<id>\d*)[^"]*/(?<name>[^"]*)"[^<]*</a></td>[^<]*<td>(?<date>[^<]*?)&nbsp[^<]*</td>[^<]*<td><nobr><a href="http://torrents.thepiratebay.org(?<link>[^<]*)" [^>]*".*?</td>[^<]*<td align="right">(?<size>[^<]*)</td>[^<]*<td align="right">(?<seeds>\d*)</td>[^<]*<td align="right">(?<leechers>\d*)</td>

Tv Series Log:
00000009 - 2009-12-07 13:09:39 - Starting Torrentsearch process
00000009 - 2009-12-07 13:09:39 - **********************************
00000009 - 2009-12-07 13:09:39 - Torrentsearch: processing 13 entries for search Dexter+S04E10
00000009 - 2009-12-07 13:09:42 - Torrentsearch: processing 0 entries for search Dexter+4x10
00000009 - 2009-12-07 13:09:42 - Torrentsearch: processing 0 entries for search Dexter+410


Log says I get 13 entries for search Dexter+S04E10 but in MP it only says 0 entries for search Dexter+410
Perhaps something in the plugin code needs to be adjusted?
 

bluenote

Portal Member
December 11, 2009
35
2
Home Country
Canada Canada
Surely there are people who have got this working. Even a step through on how to go about creating the new regex's would be awesome. Or a pointer to my tvseries specific resources for where to find out or find out how to find out?

Any help appreciated. I'm not afraid of slowly working through regex, although I've only had to use it once or twice, but I'd like to know more about how tvseries uses it. [and tips on designing it]

thanks
 

tranquil

Portal Pro
September 18, 2008
110
2
Tel Aviv
Home Country
Israel Israel
I have a very good experience with regex.

if you have torrent sites with working rss feature, i can try to write them a regex.
 

bluenote

Portal Member
December 11, 2009
35
2
Home Country
Canada Canada
Hey tranquil

How about isohunt? Their RSS is accessed with this kind of a format:

h**p://isohunt.com/js/rss/Legal+Torrent+S01E01?iht=

If you want to see more complex examples, just do a search on the regular web page, then press the RSS button at top left.

Love to see what you come up with!
 

tranquil

Portal Pro
September 18, 2008
110
2
Tel Aviv
Home Country
Israel Israel
ISOHUNT.COM:

After playing around a bit i managed to get the right regex to capture all the groups:

href='(?<link>/torrent_details/(?<id>\d+)/[^\?]+)\?tab=summary'>(?<name><b>[^<>+]+</b>[^<>+]+)</a></td><td class="[^"]+" title='\d+ files'>(?<size>\d+\.\d+\s*MB)</td><td class="row\d+">(?<seeds>\d+)</td><td class="row\d+">(?<leechers>\d+)

btw, there's a good site for online regex testing: RegExr: Online Regular Expression Testing Tool.

but i still can't see any results from MPTVseries.
i suspected that's because there is not direct link to the .torrent file in the search results page (usually a disk icon), but you have to click on the name and a js sub menu open... only there there in a link.

maybe someone can help?, that understand html more than i do...

here's the setting i've done so far: (in the screen shot)

attachment.php
 

Attachments

  • isohunt-torrent-setup.png
    isohunt-torrent-setup.png
    11.4 KB

bluenote

Portal Member
December 11, 2009
35
2
Home Country
Canada Canada
Thanks tranquil. I'll take those and look at the HTML and see if I can come up with anything (but it might not be for a day or two, depending).

thanks for working on this!
 

bluenote

Portal Member
December 11, 2009
35
2
Home Country
Canada Canada
Hey tranquil

I think that you might be processing the wrong data (looking at the isohunt info you posted).

Your search URL (I think) should be http://isohunt.com/js/rss/$search$?iht=

And that will produce output that you can parse pretty easily (and provides a direct link).

I'm going to try and work on this but I don't have your skills with regex. Have a look and see if I'm on the right track though!

EDIT:

Ok. I did create some regex that performs, how I think it should. The end results is I get "No entries" or whatever the unsuccessful message is though.

My log entries:

00000026 - 12/21/2009 3:06:14 AM - Starting Torrentsearch process
00000026 - 12/21/2009 3:06:14 AM - **********************************
00000026 - 12/21/2009 3:06:15 AM - Torrentsearch: processing 14 entries for search Angel+S04E01
00000026 - 12/21/2009 3:06:37 AM - Torrentsearch: processing 15 entries for search Angel+4x01
00000026 - 12/21/2009 3:07:06 AM - Torrentsearch: processing 18 entries for search Angel+401

My torrent search config: (Isohunt)

http://isohunt.com/js/rss/$search$?iht=

<item><title>(?<name>.*?)</title><link>.*?</link><guid>http://isohunt\.com/torrent_details/(?<id>.*?)/.*?</guid><enclosure url='(?<link>.*?)' length='.*?'.*?Size: (?<size>.*?) MB.*?Seeds: (?<seeds>.*?) &amp.*?Leechers: (?<leechers>.*?) &amp.*?<pubDate>(?<date>.*?)</pubDate></item>

http://isohunt.com/torrent_details/$id$/?tab=summary

MB</b> in <b>(?<filecount>.*?)</b> files

I think I could get this going if I knew a little more about what operations and what requirements / how the evaluation process works.
 

tranquil

Portal Pro
September 18, 2008
110
2
Tel Aviv
Home Country
Israel Israel
you might be right...

it does look much simpler... i'll give it a try and let you know.
 

mb76pl

Portal Member
April 19, 2008
20
0
Wroclaw
Home Country
Poland Poland
hi all,

I can confirm that the search query, regex and parsing works, except for actual adding torrent to download... I'm getting the following entries in log:

00000021 - 2009-12-26 20:15:16 - **********************************
00000021 - 2009-12-26 20:15:16 - Starting Torrentsearch process
00000021 - 2009-12-26 20:15:16 - **********************************
00000021 - 2009-12-26 20:15:17 - Torrentsearch: processing 8 entries for search Numb3rs+S06E10
00000021 - 2009-12-26 20:15:47 - Torrentsearch: processing 0 entries for search Numb3rs+6x10
00000021 - 2009-12-26 20:15:49 - Torrentsearch: processing 0 entries for search Numb3rs+610
00000021 - 2009-12-26 20:15:53 - Torrentsearch process exception catched

Unfortunately, I have no ideal how to get more detailed logging (tried debug logging in MP but is doens't seem to affect tvseries logging level)
 

Users who are viewing this thread

Top Bottom