DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#151 2009-06-13 02:45:52

DasCrushinator
Member
Registered: 2009-05-09
Posts: 34

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

The short answer is: Yes
And there is no long answer smile

Thank you so very, very much for all your work and help, Kylek!

Offline

 

#152 2009-09-17 17:34:23

tanstaafl1963
Member
Registered: 2009-08-22
Posts: 58

Re: [REL] Automatic for funplug-0.5

First of all, I Love the idea of automatic, but as a linux noob, I'm a little confused.
and I'm not up on all the 'torrent technology'.. more of an end-user (click that and give me the show)  smile

Here's what I've got..

-- From the automatic.conf file.  This is a 'public' feed from the site.

# list of feed URLs. You can specify one or more feeds, in case of the latter us
url={"http://showrss.karmorra.info/feeds/6.rss"}

-- after starting automatic I see this:

-- automatic.log
1 feed URLs
Read 1 patterns from config file
Restored 0 old entries

-- At what point should I see the torrents appear in Transmission?

TIA,


DNS-323 FW 1.09
2 2-TB Drives
Automatic  0.7.0 |  Transmission 2.42

Offline

 

#153 2009-09-18 20:06:14

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

tanstaafl1963

Well, you have to tell Automatic what you want to download.
Since the tool is meant for reoccuring stuff, like TV shows, you specify a filter, or a pattern, that describes what you want to download.

Look in the config file at the "patterns =" section.

So, for example, you want to automatically download that favorite show of yours "My Favorite Show", you change the automatic.conf like this:

Code:

patterns = {
      "My.Favorite.Show"
}

For each additional show you just add a new line.

Offline

 

#154 2009-09-18 20:14:34

tanstaafl1963
Member
Registered: 2009-08-22
Posts: 58

Re: [REL] Automatic for funplug-0.5

I knew I left something out in my note..


patterns =  { "*"
            }

I thought this would grab everything...

but looking again through the forum, I'm guessing it should be

patterns =  { ".*"
            }

right?


DNS-323 FW 1.09
2 2-TB Drives
Automatic  0.7.0 |  Transmission 2.42

Offline

 

#155 2009-09-18 21:27:43

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Yes. If you want to grab everything, use that expression.

Offline

 

#156 2009-09-22 07:56:03

brasilcaps
Member
Registered: 2009-03-14
Posts: 6

Re: [REL] Automatic for funplug-0.5

Code:

Code:

1 feed URLs
Read 7 patterns from config file
Error code 409. session ID: 1A05YO9CkbQICy8Zhi0KidwJhijT2cVVMxNAn14stcGJT8np
RPC Version: 6
[load_state] Error: Unable to open statefile '/mnt/HD_a2/.transmission-daemon/automatic.state' for reading: No such file or directory

What's the error code 409?

Offline

 

#157 2009-09-22 16:07:15

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

HTTP Error 409 means "Conflict". Transmission uses it to assign a session ID to each contacting client, which expires after 30 minutes or so.
This was necessary to prevent cross-site scripting attacks, if I remember correctly.

You can ignore the message. It is just there for debugging purposes.

Automatic received a valid session ID (as seen above) and repeated the request. This time Transmission gladly answered with the RPC version.

Offline

 

#158 2009-09-23 05:00:38

brasilcaps
Member
Registered: 2009-03-14
Posts: 6

Re: [REL] Automatic for funplug-0.5

Thanks for the quick reply KyleK, I just left one more issue.

This keeps coming on,

Code:

[load_state] Error: Unable to open statefile '/mnt/HD_a2/.transmission-daemon/automatic.state' for reading: No such file or directory

Regardless what folder I point it to, it keeps saying that. I know those folders exist, any ideas?

Thanks

Offline

 

#159 2009-09-23 15:34:13

tanstaafl1963
Member
Registered: 2009-08-22
Posts: 58

Re: [REL] Automatic for funplug-0.5

I had that same problem. 

chmod 777 automatic.state

took care of it...


DNS-323 FW 1.09
2 2-TB Drives
Automatic  0.7.0 |  Transmission 2.42

Offline

 

#160 2009-09-25 05:08:43

brasilcaps
Member
Registered: 2009-03-14
Posts: 6

Re: [REL] Automatic for funplug-0.5

So aright, I got it to work but... only if i have my pattern like so

Code:

patterns =  {     "64k"
        "720p"
            }

but if i want it to be more specific like

Code:

patterns =  {     "Wrap.Up.64k"
        "Heroes.720p"
            }

For some reason it doesn't work

Offline

 

#161 2009-10-14 17:31:20

blase
Member
Registered: 2009-09-12
Posts: 9

Re: [REL] Automatic for funplug-0.5

Hello everyone

I have configured automatic and I have this URL as rss in automatic.conf


url = "http://xbt.xxxxxxxxxxxxx.com/rss.php?feed=dl:COOKIE:uid=xxxx;pass=7cd1fb0cf01881ae3f3f328add5f91c7"

this url is a private tracker

and returns me this error log

[getHTTPData] 'pass = 7cd1fb0cf01881ae3f3f328add5f91c7': Could not resolve host name
Error: Unable to parse input data!

I'm doing wrong?

Thanks

Offline

 

#162 2009-10-16 19:21:33

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

brasilcaps wrote:

So aright, I got it to work but... only if i have my pattern like so

Code:

patterns =  {     "64k"
        "720p"
            }

but if i want it to be more specific like

Code:

patterns =  {     "Wrap.Up.64k"
        "Heroes.720p"
            }

For some reason it doesn't work

Sorry for the late answer. This will only work if the thing you want to downlod is actually named "Wrap up 64k". If it's "Wrap up while its hot 64k" that pattern won't match.

Do it like this instead:

Code:

patterns =  {
     "Wrap.*Up.*64k"
     "Heroes.*720p"
}

Offline

 

#163 2009-10-16 22:34:23

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

blase wrote:

Hello everyone

I have configured automatic and I have this URL as rss in automatic.conf


url = "http://xbt.xxxxxxxxxxxxx.com/rss.php?feed=dl:COOKIE:uid=xxxx;pass=7cd1fb0cf01881ae3f3f328add5f91c7"

this url is a private tracker

and returns me this error log

[getHTTPData] 'pass = 7cd1fb0cf01881ae3f3f328add5f91c7': Could not resolve host name
Error: Unable to parse input data!

I'm doing wrong?

Thanks

Hi there,

That's actually a bug there, you didn't do anything wrong. I'll tryto release a fixed version this weekend. Will keep you updated here.


Cheers!

Offline

 

#164 2009-10-17 14:04:13

blase
Member
Registered: 2009-09-12
Posts: 9

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

blase wrote:

Hello everyone

I have configured automatic and I have this URL as rss in automatic.conf


url = "http://xbt.xxxxxxxxxxxxx.com/rss.php?feed=dl:COOKIE:uid=xxxx;pass=7cd1fb0cf01881ae3f3f328add5f91c7"

this url is a private tracker

and returns me this error log

[getHTTPData] 'pass = 7cd1fb0cf01881ae3f3f328add5f91c7': Could not resolve host name
Error: Unable to parse input data!

I'm doing wrong?

Thanks

Hi there,

That's actually a bug there, you didn't do anything wrong. I'll tryto release a fixed version this weekend. Will keep you updated here.


Cheers!

thanks - Gracias

Offline

 

#165 2009-10-20 00:35:53

magnazan
Member
Registered: 2009-05-28
Posts: 24

Re: [REL] Automatic for funplug-0.5

I'm experiencing an issue with Automatic which is causing a few headaches.

Basically my internet connection is a bit 'flaky' and will drop out from time to time.  Now what I've noticed is that if Automatic is checking the RSS feed it just hangs and doesn't download anything until I kill the process.

When enabling -v 3 I can get it to hang at this point:

Code:

../src/automatic.c, 345: Adding 'The Simpsons S21E04 Treehouse of Horror XX HDTV XviD-FQM' to bucket list
../src/regex.c, 28: [init_regex] Regular expression: .*
Found new download: Desperate Housewives S06E04 The God-Why-Dont-You-Love-Me Blues HDTV XviD-FQM (http://torrent.zoink.it/Desperate.Housewives.S06E04.The.God-Why-Dont-You-Love-Me.Blues.HDTV.XviD-FQM.%5Beztv%5D.torrent)
../src/regex.c, 28: [init_regex] Regular expression: Content-Length:\s(\d+)
../src/regex.c, 97: [isMatch] Text to match against: Content-Length: 14693
 (23 byte)
../src/web.c, 72: Content-Length: 14693
../src/web.c, 329: [getHTTPData] response code: 200

Now if I go and do a wget on the torrent file it will show a status [--stalled--] which is what I think is happening in the Automatic.

Now the other issue with this is that if I kill the process because it never finished and wrote out to the state file it tries to download them all again (If i've deleted them from Transmission).

So it is possible to add the following features:

+ So sort of timeout while waiting to download the torrent
+ Writing to the state file after successfull download and add to transmission - rather than at the end of run

Offline

 

#166 2009-10-20 10:56:20

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

The timeout is currently set to 30 seconds. If it doesn't break off the download after that, I'll have to look into it.

The second issue is actually a good idea. I'll put it on the TODO list.

Offline

 

#167 2009-10-23 03:17:44

magnazan
Member
Registered: 2009-05-28
Posts: 24

Re: [REL] Automatic for funplug-0.5

It's definitely not breaking after 30seconds and is causing the whole process to stop.

Offline

 

#168 2009-10-29 21:12:21

blase
Member
Registered: 2009-09-12
Posts: 9

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

blase wrote:

Hello everyone

I have configured automatic and I have this URL as rss in automatic.conf


url = "http://xbt.xxxxxxxxxxxxx.com/rss.php?feed=dl:COOKIE:uid=xxxx;pass=7cd1fb0cf01881ae3f3f328add5f91c7"

this url is a private tracker

and returns me this error log

[getHTTPData] 'pass = 7cd1fb0cf01881ae3f3f328add5f91c7': Could not resolve host name
Error: Unable to parse input data!

I'm doing wrong?

Thanks

Hi there,

That's actually a bug there, you didn't do anything wrong. I'll tryto release a fixed version this weekend. Will keep you updated here.


Cheers!

sorry to be impatient, for when the new version?

Thanks

Offline

 

#169 2009-10-29 21:18:10

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Hey guys,

new version 0.4.2 is now up at the first post. Sorry for the wait.

@magnazan, let me know if your problems with Automatic not timing out are fixed. I had a hard time testing this, so any info is appreciated smile


Cheers!

Offline

 

#170 2009-10-30 14:50:25

tanstaafl1963
Member
Registered: 2009-08-22
Posts: 58

Re: [REL] Automatic for funplug-0.5

how does automatic use 'automatic.state' ?

From my automatic.log file:

Error: Unable to open statefile '/mnt/HD_a2/.transmission-daemon/automatic.state' for writing: Is a directory

drwxrwxrwx    2 root     root         4096 Sep 14 13:11 automatic.state

it looks as though the last time automatic ran successfully was Sept 15.    Is this supposed to be a writable file? or a directory?


DNS-323 FW 1.09
2 2-TB Drives
Automatic  0.7.0 |  Transmission 2.42

Offline

 

#171 2009-10-30 15:35:55

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Hm.

automatic.state is not supposed to be directory, but a file. Automatic uses it to store the URLs of downloaded files, so they won't redownload every 10 minutes or so smile

Delete the folder, then it should work.
Still, I'm curious as to why it is a folder on your hard drive. Automatic surely didn't create it.

Offline

 

#172 2009-10-31 08:07:50

magnazan
Member
Registered: 2009-05-28
Posts: 24

Re: [REL] Automatic for funplug-0.5

Just wanted to confirm that whatever you did works perfectly.  Running automatic manually I can now see this:

Code:

[getHTTPData] 'http://re.zoink.it/4ae51a53': Timeout was reached

and the script continues.

Great work :-)

I have another feature request though:

+ When a torrent download times out can this be retried each time automatic runs
+ In addition to the above maybe an option to say if after 3 timeouts for a torrent then ignore it (Add it to the automatic.state)

Offline

 

#173 2009-11-01 13:55:59

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

magnazan wrote:

+ When a torrent download times out can this be retried each time automatic runs

Unless a torrent is successfully downloaded, its URL won't be stored in the internal history (and the statefile). Thus, with every new feed-checking interval, it should automatically be rematched and redownloaded.


magnazan wrote:

+ In addition to the above maybe an option to say if after 3 timeouts for a torrent then ignore it (Add it to the automatic.state)

Yeah, that should be doable. I'll add it to the TODO list.

I must say, if your network connection is so flakey even when downloading tiny .torrent files, how can you efficiently make use of Bittorrent at all? :)

Offline

 

#174 2009-11-02 05:49:40

magnazan
Member
Registered: 2009-05-28
Posts: 24

Re: [REL] Automatic for funplug-0.5

My ISP does packet shaping during busy hours of the day, now add constant torrenting in addition to shaping + crappy international routing, my connection often gets swamped :-)

Offline

 

#175 2009-11-20 16:43:39

index monkey
Member
From: UK
Registered: 2007-06-14
Posts: 112

Re: [REL] Automatic for funplug-0.5

First KyleK Thanks automatic is cool, and works great with my torrents.

Now I'm trying to get automatic to download .nzb instead of .torrent from the following feed http://www.tvnzb.com/tvnzb_new.rss
Its working but there are two issues:

1 - all the download files are given a .torrent extension (not really a problem, I have written a script to change the extension back to .nzb)
2 - The rss feed has a link to the file "http://www.tvnzb.com/nzb/31746" which in turn is the "my.show.s01.e01.nzb" file. automatic is saving the file as "31746.torrent" so when its queued up in nzbget I have no idea what it is untill I check the automatic log or its downloaded!

Is there a way to have the file named as "my.show.s01.e01.nzb" rather than "31746.torrent"?

automatic.log - names changed to protect the innocent -shows

wrote:

Found new download: My.Show.s01.e01-XviD-FQM (http://www.tvnzb.com/nzb/31746)
Saving state (48 downloaded torrents) to disk

I understand this is not what automatic was originally intended for but any assistance would be appreciated.

Last edited by index monkey (2009-11-20 17:12:46)


DNS-323, HW B1, 2 x 2TB WD green, fw 1.08, fun_plug 0.5, transmission, automatic, nzbget newsreader & rsync time machine backup.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB