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

#701 2012-08-24 16:00:44

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

Re: [REL] Automatic for funplug-0.5

Can you point me to the correct post that mentions this problem? (Hint: The date in the upper-left of each post is a ref link to that particular post)

EDIT: Scratch that, found the post. I checked my private messages as well, and it seems the guy never responded to my message, so I don't think I've ever worked on this problem (then again, it's been 2 years).

Can you provide me a sample config file that shows this problem?

Last edited by KyleK (2012-08-24 16:27:19)

Offline

 

#702 2012-08-24 16:58:35

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

Which version are you running?


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#703 2012-08-24 17:43:39

Komano
Member
Registered: 2011-06-10
Posts: 42

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Can you point me to the correct post that mentions this problem? (Hint: The date in the upper-left of each post is a ref link to that particular post)

EDIT: Scratch that, found the post. I checked my private messages as well, and it seems the guy never responded to my message, so I don't think I've ever worked on this problem (then again, it's been 2 years).

Can you provide me a sample config file that shows this problem?

Sent you my automatic.conf

FunFiler wrote:

Which version are you running?

I'm running the latest as always. 0.80

Offline

 

#704 2012-08-27 13:07:02

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

Re: [REL] Automatic for funplug-0.5

Komano: The error occurs because you escape whitespaces in folder names in the config file:

Code:

filter = { 
   pattern => "..."
   folder => "/mnt/HD/HD_a2/Videos/Television\ Series"
}

Since the path is in quotes, no escaping of whitespace is necessary. In fact, it cannot be used here, because the folder name will eventually end up in a JSON packet, and escaped whitespace in JSON is apparently not allowed.

Offline

 

#705 2012-08-27 16:23:18

Komano
Member
Registered: 2011-06-10
Posts: 42

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Komano: The error occurs because you escape whitespaces in folder names in the config file:

Code:

filter = { 
   pattern => "..."
   folder => "/mnt/HD/HD_a2/Videos/Television\ Series"
}

Since the path is in quotes, no escaping of whitespace is necessary. In fact, it cannot be used here, because the folder name will eventually end up in a JSON packet, and escaped whitespace in JSON is apparently not allowed.

Oh. Interesting find. I didn't know that you couldn't do that. Figure you had to use the same path.

Offline

 

#706 2012-08-28 09:45:52

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

Re: [REL] Automatic for funplug-0.5

Believe me, I didn't know either smile

If I find the time I'll make a code change so escaped whitespace is parsed out automatically by the application.

Offline

 

#707 2012-09-29 19:40:29

turkvu
Member
Registered: 2010-09-29
Posts: 30

Re: [REL] Automatic for funplug-0.5

Just re-installed automatic and when I try to start it I get the following:

Code:

root@DLink321:~# /mnt/HD_a2/ffp/start/automatic.sh start
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf -l /mnt/HD_a2/.transmission-daemon/automatic.log
/ffp/bin/automatic: can't load library 'libxml2.so.2'

Any ideas?

Offline

 

#708 2012-09-29 20:05:25

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

Re: [REL] Automatic for funplug-0.5

Automatic is dependent on libxml2, which fonz provides a package for for all ffp versions. You need to install that as well.

Offline

 

#709 2012-09-29 20:27:44

turkvu
Member
Registered: 2010-09-29
Posts: 30

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Automatic is dependent on libxml2, which fonz provides a package for for all ffp versions. You need to install that as well.

Got it, thanks!

Offline

 

#710 2012-10-24 18:08:38

pacman789
New member
Registered: 2012-10-24
Posts: 1

Re: [REL] Automatic for funplug-0.5

This is works whit ZyXEL NSA-310?
The website is crashed. (http://kylek.is-a-geek.org)
Where can i download automatic for transmission?

Thanks:)

Offline

 

#711 2012-10-26 03:24:14

draks
Member
Registered: 2012-10-26
Posts: 5

Re: [REL] Automatic for funplug-0.5

When I reboot my DNS-320 all the old feeds got downloaded again. Here's what I've checked:

My automatic.state file looks fine:

root@asgard:/mnt/HD/HD_a2/.transmission-daemon# ls -l | grep automatic.state
-rwxrwxrwx    1 nobody   root          105 Oct 25 12:49 automatic.state
root@asgard:/mnt/HD/HD_a2/.transmission-daemon# cat automatic.state
QPR_S03E02_720
QPP_S07E04_720
QPM_S11E03_720
QBJ_S11E02_720
QBE_S03E01_720
QBD_S07E03_720
Q7Q_S05E03_720
root@asgard:/mnt/HD/HD_a2/.transmission-daemon#



Here's my feed and filter sections:

#####
feed =  {  url          => "http://www.dailytvtorrents.org/rss/combined/47c96ced29e79d12df2e69f7cbe2e38239045af6e988c933bbfa9cd6
0af7b3e7cb0afc51f26d17d5?only=720&minage=3"
           cookie       => ""
           id           => ""
           url_pattern  => ""
           url_replace  => ""
        }

# Download everything
filter = { pattern => ".*"
         }
#####

When I check on automatic.log I can see that this only happens one time (after boot), after that he correctly creates the automatic.state and from that point on everything works fine so I think that the main problem here is automatic.state not surviving the boot...

I've tried to find some wiki for Automatic but haven't found none so maybe someone here can give a tip about what I should look/change  ?

Offline

 

#712 2012-10-26 08:31:47

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

Re: [REL] Automatic for funplug-0.5

The log file should have a line that says it loaded x entries from automatic.state.
Is that line in your log?

Offline

 

#713 2012-10-27 01:14:58

draks
Member
Registered: 2012-10-26
Posts: 5

Re: [REL] Automatic for funplug-0.5

It shows that it restored 0 entries.

root@asgard:/mnt/HD/HD_a2/.transmission-daemon# head automatic.log
../src/automatic.c, 697: Automatic version: 0.8.0 (95ada5c)
../src/state.c, 111: Restored 0 old entries
../src/automatic.c, 265: Transmission version: 1.3
../src/automatic.c, 266: RPC host: localhost

Offline

 

#714 2012-10-30 09:43:34

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

Re: [REL] Automatic for funplug-0.5

Where is the file automatic.state stored?

Offline

 

#715 2012-10-31 02:24:21

draks
Member
Registered: 2012-10-26
Posts: 5

Re: [REL] Automatic for funplug-0.5

It is on:
/mnt/HD/HD_a2/.transmission-daemon/automatic.state


The config file looks right:
# path to the file which stores information about already downloaded torrents (so they don't get readded to Transmission)
statefile = "/mnt/HD/HD_a2/.transmission-daemon/automatic.state"

Permissions too:
-rwxrwxrwx    1 nobody   root          105 Oct 29 20:57 automatic.state

Offline

 

#716 2012-11-02 15:16:50

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

Do you have a "nobody" group?

On my system, the owner is nobody:501 instead of nobody:root


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#717 2012-11-02 15:22:38

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

Re: [REL] Automatic for funplug-0.5

Could you please try this:
1. disable automatic starting of automatic after a reboot (i.e. remove executing priviledges from /ffp/start/automatic.sh)
2. reboot
3. Check if the file exists, and if it is empty

I somehow suspect that the file might never be properly written to.

Offline

 

#718 2012-11-05 22:32:38

stoffeboffe
Member
Registered: 2012-05-10
Posts: 21

Re: [REL] Automatic for funplug-0.5

Hey guys,
trying to setup the latest automatic on my DNS-323 with ffp 0.7.

I've been following the last post on this page: http://www.tekforums.net/computing-tech … to-guides/

I really don't have the patience to go through all post in this thread, can't find a singe post with the error, the search just points me to this thread.

When checking my automatich.log I get this
../src/automatic.c, 697: Automatic version: 0.8.0 (95ada5c)
../src/state.c, 111: Restored 0 old entries
../src/automatic.c, 290: 1 feed URLs
../src/automatic.c, 291: Read 5 filters from config file
[12/11/05 21:27:46] ../src/automatic.c, 731: Daemon started
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 24: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 32: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 31: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 24: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 32: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 31: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 24: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 32: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 31: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 24: missing )

Any thoughts on what the issue might be? Need any more info from my side to be able solve the problem?

Thanks in advance.

Offline

 

#719 2012-11-06 04:21:35

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

stoffeboffe wrote:

Hey guys,
../src/regex.c, 40: [init_regex] PCRE compilation failed at offset 37: missing )

If I recall correvtly, it is saying that there is a syntax issue with your Regex expressions in your configuration file.

Take the sample, edit it (with a Linux friendly editor). Keep it simple to start, one expression only (or even none to ensure the error goes away). Then build it up.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#720 2012-11-06 12:24:18

stoffeboffe
Member
Registered: 2012-05-10
Posts: 21

Re: [REL] Automatic for funplug-0.5

Looks a bit better now;
../src/automatic.c, 697: Automatic version: 0.8.0 (95ada5c)
../src/state.c, 111: Restored 0 old entries
../src/automatic.c, 290: 1 feed URLs
../src/automatic.c, 291: Read 5 filters from config file
[12/11/06 11:20:15] ../src/automatic.c, 731: Daemon started

Thanks for the help, it was a simple mistake from my side that I couldn't get my head around last night.

Now I have to figure out a way to test "my" automatic, none of the series in my filter air soon.

Offline

 

#721 2012-11-06 12:29:29

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

Re: [REL] Automatic for funplug-0.5

You can feed some manually written RSS file to automatic using the (undocumented) --xml and --match-only parameters:

Code:

$ automatic -o -f -c automatic.conf --matchonly --xml test.xml

The output will tell you if a filter matched.

Offline

 

#722 2012-11-06 13:13:40

stoffeboffe
Member
Registered: 2012-05-10
Posts: 21

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

You can feed some manually written RSS file to automatic using the (undocumented) --xml and --match-only parameters:

Code:

$ automatic -o -f -c automatic.conf --matchonly --xml test.xml

The output will tell you if a filter matched.

Thanks for this. Since I'm a n00b at all this I off course run into some problems. Not sure how to edit the file, so I tried this

Code:

 automatic -o -f -c automatic.conf Homeland.720p-DIMENSION --xml test.xml

and get this result

../src/automatic.c, 697: Automatic version: 0.8.0 (95ada5c)
../src/state.c, 111: Restored 0 old entries
../src/automatic.c, 290: 1 feed URLs
../src/automatic.c, 291: Read 6 filters from config file
../src/xml_parser.c, 185: Error: Unable to parse input data!
[12/11/06 12:02:06] ../src/automatic.c, 149: Shutting down daemon

I have put test.xml in the same directory as automatic.conf and it has R/W rights.


I also have a question regarding the RSS feed, the link I get looks like this, a bit edited though smile

Code:

http://www.torrentzzzzzz.net/rss.php?passkey=218&username=xxxx&38&33&limit=200&direct=1

Does it look ok? I can choose from either Direct Link or Web Link, any difference?

Offline

 

#723 2012-11-06 13:16:34

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

Re: [REL] Automatic for funplug-0.5

Hm. Seems your test.xml is not a proper XML file.
Also, that "Homeland.720p-DIMENSION" does not belong on the command line.

The idea is to define filters in automatic.conf, and then test them on test.xml

Always choose "direct link" over "web link", otherwise Automatic won't work

Offline

 

#724 2012-11-06 14:21:34

stoffeboffe
Member
Registered: 2012-05-10
Posts: 21

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Hm. Seems your test.xml is not a proper XML file.
Also, that "Homeland.720p-DIMENSION" does not belong on the command line.

The idea is to define filters in automatic.conf, and then test them on test.xml

Always choose "direct link" over "web link", otherwise Automatic won't work

Thanks for all your help!!!

Probably just me who don't understand how this is supposed to work. So what I did was I added a release in test.xml which should stick in my filter and the output I got was this

sh-4.1# automatic -o -f -c automatic.conf --xml test.xml
../src/automatic.c, 697: Automatic version: 0.8.0 (95ada5c)
../src/state.c, 111: Restored 0 old entries
../src/automatic.c, 290: 1 feed URLs
../src/automatic.c, 291: Read 6 filters from config file
Entity: line 1: parser error : Start tag expected, '<' not found
Homeland.S02E04.720p.HDTV.x264-EVOLVE
^
Entity: line 1: parser error : Start tag expected, '<' not found
Homeland.S02E04.720p.HDTV.x264-EVOLVE
^
[12/11/06 13:11:13] ../src/automatic.c, 149: Shutting down daemon

Something happens at least smile

Offline

 

#725 2012-11-06 14:26:00

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

Re: [REL] Automatic for funplug-0.5

test.xml still is not a proper RSS file.
What you can do is download the RSS feed from your torrent provider:

Code:

$ wget "http://www.torrentzzzzzz.net/rss.php?passkey=218&username=xxxx&38&33&limit=200&direct=1" -O test.xml

Then have look at it. Modify the contents of the file to whatever you want Automatic to catch on, then run the command from my previous post again.

You can also test your regular expressions with other tools, or even online:
http://www.regexplanet.com/advanced/java/index.html
http://www.spaweditor.com/scripts/regex/
http://regexpal.com/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB