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

#551 2011-11-17 15:38:57

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

Re: [REL] Automatic for funplug-0.5

Hm.
One thing you could do is crank up the verbose log level of Automatic to 4 (-v 4 on the commandline), and look what strings get wrongly matched.
Also note that Automatic compares the <title> element of an RSS item with your given filters, so if the item title looks different than, say, the name of the torrentfile, Automatic might download torrents you actually do not want.

Offline

 

#552 2011-11-18 11:00:41

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Hm.
One thing you could do is crank up the verbose log level of Automatic to 4 (-v 4 on the commandline), and look what strings get wrongly matched.
Also note that Automatic compares the <title> element of an RSS item with your given filters, so if the item title looks different than, say, the name of the torrentfile, Automatic might download torrents you actually do not want.

Ok i have done some more research

I had a torrent that was matched the normal way and in the log i had a lot of text that showed the whole process..

But last night this happend in the log:

"
[init_regex] Regular expression: (?!.*(hdchina|chdbits|multi|bd9|3d|ps3))2011.*1080p
[isRegExMatch] Text to match against: The Help 2011 MULTI 1080p BluRay x264-NERDHD
[isRegExMatch] err=-1
../src/list.c, 228: [cleanupList] size before: 100
../src/list.c, 239: [cleanupList] size after: 0
"

All seemed fine since regex didn't match. But I still got a prowl push and it was added to transmission anyway..

I also run the command ps to see which processes were running and found a lot of automatic processes running at the same time. I did killall and restarted a new session so now only one process of automatic is running. Can this have caused this mess?

Last edited by whiteout (2011-11-18 11:24:19)

Offline

 

#553 2011-11-18 11:47:15

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

Re: [REL] Automatic for funplug-0.5

whiteout wrote:

Can this have caused this mess?

Definitely as the extraneous instances would be running with older configuration files, therefore older filter values.


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

Offline

 

#554 2011-11-18 12:12:05

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

FunFiler wrote:

whiteout wrote:

Can this have caused this mess?

Definitely as the extraneous instances would be running with older configuration files, therefore older filter values.

Great lets hope it will work now then. So final question: If I change my automatic.conf file. I dont have to run automatic again? Or do i have to kill the current process and run a new one?

Offline

 

#555 2011-11-18 13:36:24

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

Re: [REL] Automatic for funplug-0.5

If you change your .conf file, you need to kill the active process and start a new one.
Otherwise Automatic won't know you changed something.

Last edited by KyleK (2011-12-03 15:54:25)

Offline

 

#556 2011-12-01 23:46:00

cybernesto
New member
Registered: 2011-12-01
Posts: 2

Re: [REL] Automatic for funplug-0.5

Hello Kylek, thanks a lot for the great work. I'm using automatic 0.6.7 on a Fritz!Box and it works perfectly except for the Prowl notifications. If I enter my API Key in the conf file it returns (with verbose level 3)
../src/web.c, 401: [getHTTPData] url=https://prowlapp.com/publicapi/verify?apikey=(MY_API_KEY), curl_session=(nil)
../src/web.c, 365: [am_curl_init] Created new curl session 0x41e738
../src/web.c, 431: [getHTTPData] response code: 0
../src/web.c, 433: [getHTTPData] 'https://prowlapp.com/publicapi/verify?apikey=(MY_API_KEY)': Error (retval: 1)
../src/web.c, 570: [closeCURLSession] Closing curl session 0x41e738

If on the terminal I try to do curl to the same key I get this answer:
<?xml version="1.0" encoding="UTF-8"?>
<prowl>
<success code="200" remaining="996" resetdate="1322776785" />
</prowl>

Which I suppose is a correct answer. Do you know what could be wrong?

Offline

 

#557 2011-12-03 12:36:26

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

Re: [REL] Automatic for funplug-0.5

Hm. CURL response code 0 means  curl wasn't able to create a connection at all (or even resolve the host). I suppose this was not a one-time issue?
Last time I saw this, the NAS had a fundamental DNS issue (it couldn't resolve any domain at all), but apparently that is not an issue here.
Did you build curl for the Fritz!Box yourself? Are the curl library and the curl command-line tool using the same codebase (i.e. are they the same version)?

Last edited by KyleK (2011-12-04 00:38:17)

Offline

 

#558 2011-12-03 20:00:28

cybernesto
New member
Registered: 2011-12-01
Posts: 2

Re: [REL] Automatic for funplug-0.5

Hi KyleK thanks for the quick response! I was actually using a ready compiled curl. After compiling it myself the prowl verification from automation also worked! It seems like while building curl a missing library was included (libcrypto??)
I didn't quite understood it, but I'm happy it works now. Thanks again for your help!

Offline

 

#559 2011-12-08 21:50:35

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

Re: [REL] Automatic for funplug-0.5

Hey guys, here's a Christmas-y update for your favorite RSS torrent daemon wink

Automatic v0.7 is out!

This one brings the much-requested feature of binding filters to a certain feed, so you won't get duplicate downloads.
Automatic now also stores the RSS item GUID instead of the downloaded link to accomodate some feeds that get updated over time
(I should've done it this way from the beginning, actually, but so far it worked out fine).

Get the package from the first post as always, the source code is updated as well.

Cheers!

Offline

 

#560 2011-12-09 17:13:58

Pejn
Member
Registered: 2007-12-17
Posts: 61

Re: [REL] Automatic for funplug-0.5

Thanx kylek!, will try it out.

Offline

 

#561 2011-12-21 19:19:32

torro
Member
From: Lillehammer, Norway
Registered: 2011-12-21
Posts: 6

Re: [REL] Automatic for funplug-0.5

Edit: Reason, solved.

I had som problems getting multiple episodes, but it looks like tweaking the rss-feeds did the trick.

Last edited by torro (2011-12-21 20:54:26)


-=torro=-

Offline

 

#562 2011-12-22 00:54:02

drewdrewdrew
New member
Registered: 2008-07-23
Posts: 4

Re: [REL] Automatic for funplug-0.5

I'm getting the following error when trying to install the update.

Skipping Automatic-0.7.0-1.tgz (installed: Automatic-0.6.5-1)

anyone know how to fix that?

tahnks

Offline

 

#563 2011-12-22 03:26:40

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

Re: [REL] Automatic for funplug-0.5

Are you using the correct option to perform an upgrade rather than an install?

funpkg -u <pkg name>


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

Offline

 

#564 2011-12-25 03:57:52

drewdrewdrew
New member
Registered: 2008-07-23
Posts: 4

Re: [REL] Automatic for funplug-0.5

thank you funfiler. I don't seem to have automatic.conf in my etc folder. any suggestions? thanks

Offline

 

#565 2011-12-25 04:26:58

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

Re: [REL] Automatic for funplug-0.5

There is a sample that gets installed to /ffp/etc. Rename it and edit as appropriate.


Attachments:
Attachment Icon automatic.conf-sample, Size: 4,021 bytes, Downloads: 488

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

Offline

 

#566 2011-12-27 04:03:12

happysmp
Member
Registered: 2011-12-27
Posts: 5

Re: [REL] Automatic for funplug-0.5

Hoping for some help.
Have a DNS-321, installed fun_plug and the following packages

Transmission-2.32-1.tgz
Automatic-0.7.0-1.tgz

Install went fine
Modified automatic.conf (attached)

On start I get the following error

root@NAS:/ffp/start# ./automatic.sh  start
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf -l /mnt/HD_a2/.transmission-daemon/automatic.log -v 3
Error parsing config file: Unknown error


What am I missing.
i'm reading through the 23 pages of posts now looking for answer.


thanks


Attachments:
Attachment Icon automatic.conf, Size: 4,268 bytes, Downloads: 509

Offline

 

#567 2011-12-27 04:30:27

happysmp
Member
Registered: 2011-12-27
Posts: 5

Re: [REL] Automatic for funplug-0.5

Got it.
Checked the logs and noticed it was shutting down the daemon around line 43.
Checked the config file and see that some things that should be commented out were not.

Here is the snippet from the original sample file

# A feed contains at least a feed URL and some optional parameters:
#    "cookie"  =>  If the feed sits behind a login-secured site, you may specify
                   can download the feed (and any torrents that are matched)
     "id"      =>  Give a feed a numeric feed ID which later on can be used to r



Starting to play with it now

Offline

 

#568 2011-12-27 06:00:25

drewdrewdrew
New member
Registered: 2008-07-23
Posts: 4

Re: [REL] Automatic for funplug-0.5

FunFiler wrote:

There is a sample that gets installed to /ffp/etc. Rename it and edit as appropriate.

Thank you. But I can't seem to move it into the ffp/etc folder!! sad

Offline

 

#569 2011-12-27 11:59:57

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

Re: [REL] Automatic for funplug-0.5

When installing automatic, all files will be attributed to the user root, including the config sample.
If you're not accessing your NAS as root, you'll have to either use sudo (if installed), or su.

Offline

 

#570 2011-12-31 05:54:16

happysmp
Member
Registered: 2011-12-27
Posts: 5

Re: [REL] Automatic for funplug-0.5

Need more help.

Both automatic and transmission seem to be working right.
I'm getting these error messages in the automatic.log
Help?

Example
../src/config_parser.c, : Unknown suboption 'feedID'!



../src/config_parser.c, 789: [parse_config_file] option: filter
../src/config_parser.c, 790: [parse_config_file] param:  pattern => ""(?!.*720p)Terra Nova"
           folder => "/mnt/HD_a2/NAS/Completed/TV_Test"
           feedID => 1
          (125 byte)
../src/config_parser.c, 791: [parse_config_file] -----------------
../src/config_parser.c, 506: filter= pattern => ""(?!.*720p)Terra Nova"
           folder => "/mnt/HD_a2/NAS/Completed/TV_Test"
           feedID => 1
          (type: 2)
../src/config_parser.c, 322: Unknown suboption 'feedID'!
../src/list.c, 228: [cleanupList] size before: 3
../src/list.c, 239: [cleanupList] size after: 0
../src/config_parser.c, 749: reading multiline param
../src/config_parser.c, 763: multiline param: param_good=0
../src/config_parser.c, 789: [parse_config_file] option: filter
../src/config_parser.c, 790: [parse_config_file] param:  pattern => ""(?!.*720p)The Darkest Hour"
           folder => "/ffp/etc/"
           feedID => 2
          (107 byte)
../src/config_parser.c, 791: [parse_config_file] -----------------
../src/config_parser.c, 506: filter= pattern => ""(?!.*720p)The Darkest Hour"
           folder => "/ffp/etc/"
           feedID => 2
          (type: 2)
../src/config_parser.c, 322: Unknown suboption 'feedID'!
../src/list.c, 228: [cleanupList] size before: 3
../src/list.c, 239: [cleanupList] size after: 0
[11/12/31 03:47:49] ../src/automatic.c, 556: Daemon started
../src/automatic.c, 561: Automatic version: 0.7.0 (40605)



Also getting this

../src/web.c, 526: response code: 409
../src/web.c, 529: Error code 409, session ID: CLFgrM4eKFryW4RfKNExJHghOQV5aL4bIbJAR2CAOeHM61Nn
../src/web.c, 569: [closeCURLSession] Closing curl session 0x28868


attaching my log

Last edited by happysmp (2011-12-31 06:02:36)


Attachments:
Attachment Icon automatic.log, Size: 18,906 bytes, Downloads: 456

Offline

 

#571 2012-01-02 10:47:21

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

Re: [REL] Automatic for funplug-0.5

The error you get is caused by a faulty automatic.conf-sample: the parameter name is "feedid" (all lower-case), instead of "feedID".
The string comparison is not case insensitive, and I'm not sure if it should be.

Offline

 

#572 2012-01-02 22:14:14

happysmp
Member
Registered: 2011-12-27
Posts: 5

Re: [REL] Automatic for funplug-0.5

Thanks Kyle,

I changed the conf file and also noticed I had an extra " in the line for the torrent name.
Things are "automatic" now!

Another question,
Is this a global path where to store the finished downloaded torrents?
# path where Automatic will store downloaded torrents
torrent-folder = "/mnt/HD_a2/NAS/Temp"


and this is the override on the filter?
filter = { pattern => "(?!.*720p)Terra Nova"
           folder => "/mnt/HD_a2/NAS/Completed/TV_Test"
           feedid => 1


My first "automatic" downloads are going now,
waiting to see if it respects one of these paths, or if it respects the Completed Downloads path set in transmission.

Offline

 

#573 2012-01-02 22:22:48

happysmp
Member
Registered: 2011-12-27
Posts: 5

Re: [REL] Automatic for funplug-0.5

Everything seems to be working, but still getting this error in the log
../src/config_parser.c, 319: Invalid value ' 1' for filter option 'feedID'

--- see below ---

../src/config_parser.c, 789: [parse_config_file] option: filter
../src/config_parser.c, 790: [parse_config_file] param:  pattern => "(?!.*720p)Terra Nova"
           folder => "/mnt/HD_a2/NAS/Completed/TV_Test"
           feedid => 1
          (124 byte)
../src/config_parser.c, 791: [parse_config_file] -----------------
../src/config_parser.c, 506: filter= pattern => "(?!.*720p)Terra Nova"
           folder => "/mnt/HD_a2/NAS/Completed/TV_Test"
           feedid => 1
          (type: 2)
../src/config_parser.c, 319: Invalid value ' 1' for filter option 'feedID'
../src/list.c, 228: [cleanupList] size before: 3
../src/list.c, 239: [cleanupList] size after: 0
../src/config_parser.c, 749: reading multiline param

Offline

 

#574 2012-01-05 15:44:40

kramed
Member
Registered: 2009-06-02
Posts: 34

Re: [REL] Automatic for funplug-0.5

Kyle, Thanks for the program.

This is the first time I am trying to use it. I am using the exact syntax from the example.conf

Error:

../src/config_parser.c, 419: Invalid value ' 1' for feed option 'ID'
../src/config_parser.c, 319: Invalid value ' 1' for filter option 'feedID'
../src/config_parser.c, 319: Invalid value ' 1' for filter option 'feedID'
../src/automatic.c, 561: Automatic version: 0.7.0 (40605)
../src/automatic.c, 578: 1 feed URLs
../src/automatic.c, 579: Read 2 filters from config file
../src/state.c, 111: Restored 0 old entries


conf:

feed =  {  url     => "http://rss.torrentleech.org/xxxxxx"
           cookie  => ""
           id      => 1
        }

filter = { pattern => "regex*"
           folder  => "/mnt/HD_a2/downloads"
           feedid  => 1
         }

Offline

 

#575 2012-01-09 12:16:46

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

Re: [REL] Automatic for funplug-0.5

I've put out Automatic v0.7.1, which should fix the reported issues with the feed ID.
Please note 2 things:
1. The feed ID is optional. If you only use one feed, or want all filters to be valid for all feeds, remove the option.
2. The feed ID is not a number anymore, but can be a string. This way you can name your feeds for better recognizability.

Check the first post, as always, for the download link.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB