Zachary Kotlarek 9 лет назад
Родитель
Сommit
fa0df85119
3 измененных файлов с 2 добавлено и 11 удалено
  1. 1 1
      findTorrent.pl
  2. 1 0
      modules.txt
  3. 0 10
      save_page.js

+ 1 - 1
findTorrent.pl

@@ -969,7 +969,7 @@ foreach my $content (@html_content) {
 			$title =~ s/^\s+//;
 
 			# Find the magnet URL
-			my ($url) = $tr =~ /\<a\s+href=\"(magnet\:[^\"]+\")/i;
+			my ($url) = $tr =~ /\<a\s+href=\"(magnet\:[^\"]+)\"/i;
 			if (!defined($url) || length($url) < 1) {
 				if ($DEBUG) {
 					print STDERR "Skipping TR with no magnet URL\n";

+ 1 - 0
modules.txt

@@ -10,6 +10,7 @@ DMX:
 	Time::HiRes
 
 Other:
+	Capture::Tiny
 	URI::Encode
 	HTML::Strip
 	MP3::Tag

+ 0 - 10
save_page.js

@@ -1,10 +0,0 @@
-//phantomjs save_page.js 'http://extratorrent.cc/search/?search=grand+tour+s01e06&new=1&x=0&y=0'
-
-var system = require('system');
-var page = require('webpage').create();
-
-page.open(system.args[1], function()
-{
-    console.log(page.content);
-    phantom.exit();
-});