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

#576 2012-01-09 12:40:32

Elgrande
Member
Registered: 2010-05-02
Posts: 9

Re: [REL] Automatic for funplug-0.5

Hi Kylek,

I have updated Automatic and transmission to its latest version 0.7.1 / 2.42 and I get the following errors after a reboot.
It seems that Automatic could find the Rss feeds. any idee why ?

[12/01/09 11:29:15] ../src/automatic.c, 556: Daemon started
../src/automatic.c, 561: Automatic version: 0.7.1 (98bcd61)
../src/automatic.c, 578: 2 feed URLs
../src/automatic.c, 579: Read 21 filters from config file
../src/web.c, 432: [getHTTPData] 'https://prowlapp.com/.....: Couldn't resolve host name (retval: 6)
../src/state.c, 111: Restored 71 old entries
../src/web.c, 432: [getHTTPData] 'http://ez..': Couldn't resolve host name (retval: 6)
../src/web.c, 432: [getHTTPData] 'http://rss.the...': Couldn't resolve host name (retval: 6)


NAS: CH3MNAS with 2 TB storage.

Offline

 

#577 2012-01-09 12:43:13

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

Re: [REL] Automatic for funplug-0.5

It looks to me like your NAS can't resolve any host names.
What happens if you type this on the command line:

Code:

$ ping heise.de
$ ping prowlapp.com

Check your /etc/hosts file for any strange redirections.

Offline

 

#578 2012-01-09 13:04:38

Elgrande
Member
Registered: 2010-05-02
Posts: 9

Re: [REL] Automatic for funplug-0.5

When I ping a host from the NAS I get a Bad address error.

I have checked /ffp/etc/ fore a hosts file but i noticed that there isn’t one.
Fore testing purposes I put the NAS in the DMZ and tried again but whiteout any joy.

I just checked the DNS setup in the device and noticed that the DNS 1 and 2 where made blank I filled out the DNS adresses and
now Automatic is working like a charm

Last edited by Elgrande (2012-01-09 13:20:45)


NAS: CH3MNAS with 2 TB storage.

Offline

 

#579 2012-01-09 13:25:19

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

Re: [REL] Automatic for funplug-0.5

Glad you found a way to fix the issue.
Just for information: The hosts file should be in /etc/hosts, not /ffp/etc/hosts (it's a system file).
Usually it is empty though.

Offline

 

#580 2012-01-14 11:17:41

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

Re: [REL] Automatic for funplug-0.5

KyleK
I'm getting the following error with old and new versions:
../src/automatic.c, 458: Checking feed 'http://rss.bt-chat.com/?cat=9&group=2' (40 items)
../src/xml_parser.c, 175: Error: Unable to parse input data!

I believe it is because one of the torrents has a "!" in it. I haven't had time to modify the code and try it out to verify. My line numbers my differ from yours as I've modified some of the debug info.

Last edited by FunFiler (2012-01-14 11:19:22)


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

Offline

 

#581 2012-01-18 13:33:30

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

Re: [REL] Automatic for funplug-0.5

I would have to say this is an issue with the feed then.
XML parsing is done completely by libxml2, which I assume is fairly up-to-date regarding the XML standard.
If the text of an XML element contains a character that is otherwise used within XML (e.g. for annotations), the element has to be either escaped, or the complete text has to be put in a![CDATA[...]] element.

Offline

 

#582 2012-01-28 22:21:31

gmpassos
Member
Registered: 2008-05-21
Posts: 7

Re: [REL] Automatic for funplug-0.5

Hi there. Is there any parameter that configures a minimum of seeders for a torrent to be downloaded? It would be nice... Thanks and congratulations for the application.

Offline

 

#583 2012-01-28 23:22:02

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

Re: [REL] Automatic for funplug-0.5

No. This would only be possible if that kind of information is available within the RSS feed, which it is not (at least I haven't seen any feed that includes seeds/leechers).

Offline

 

#584 2012-01-30 13:48:38

gmpassos
Member
Registered: 2008-05-21
Posts: 7

Re: [REL] Automatic for funplug-0.5

Kylek, I need your help. Is this line ok e correct?

pattern => "^californication.(?!.*(WEB|subbed))720p"

This should filter Californication (the TV show), only 720p release, and excluding the releases that have WEB or SUBBED. Anything missing?

Thanks you again!

Last edited by gmpassos (2012-01-30 13:49:12)

Offline

 

#585 2012-01-30 15:56:23

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

Re: [REL] Automatic for funplug-0.5

No, that won't work. Exclusions have to go to the front of the regular expression:

Code:

pattern => "(?!.*(WEB|subbed))^californication.*720p"

Offline

 

#586 2012-02-02 16:34:20

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

Re: [REL] Automatic for funplug-0.5

I added a link to Automatic 0.7.1 for ffp-0.7-arm, in case anyone already switched to ffp-0.7.

Be aware that the arm package is only for newer devices (DNS-320, DNS-325).

For those who switched to ffp-0.7-oarm, you should be able to use the regular ffp-0.5 package (let me know if not!).

Offline

 

#587 2012-02-04 12:14:38

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

Re: [REL] Automatic for funplug-0.5

@KyleK

Did you make the script more compatible or something?

The last time i tried it on my DNS 320 it was really confusing to get it to work. But 0.7.1 was really simple.

Offline

 

#588 2012-02-04 21:19:46

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

Re: [REL] Automatic for funplug-0.5

No, the functionality of Automatic has not changed.
The new release ist just for people who have an EABI NAS and have switched to ffp-0.7-arm. The old version of Automatic would not work on these machines.

Offline

 

#589 2012-02-07 22:18:54

Leazah
New member
Registered: 2012-02-07
Posts: 2

Re: [REL] Automatic for funplug-0.5

Hi! I'm from Spain, so sorry for my english ;-)
I have a DNS-320 with funplug 0.7 installed. I've installed automatic and, besides copying some libs from /lib to /ffp/lib, I'm having a Segmentation Fault error.

../src/automatic.c, 561: Automatic version: 0.7x (6e62154)
../src/automatic.c, 562: verbose level: 2
../src/automatic.c, 563: Transmission version: 1.3
../src/automatic.c, 564: RPC host: localhost
../src/automatic.c, 565: RPC port: 9091
../src/automatic.c, 566: RPC auth: none
../src/automatic.c, 567: foreground mode: yes
../src/automatic.c, 568: config file: /etc/automatic.conf
../src/automatic.c, 569: Transmission home: /home/root/.config/transmission
../src/automatic.c, 570: check interval: 30 min
../src/automatic.c, 571: Upload limit: -1 KB/s
../src/automatic.c, 572: torrent folder: /mnt/HD_a2/torrent
../src/automatic.c, 573: start torrents: yes
../src/automatic.c, 574: state file: /home/root/.config/automatic/automatic.state
../src/automatic.c, 578: 1 feed URLs
../src/automatic.c, 579: Read 1 filters from config file
../src/state.c, 111: Restored 0 old entries
[12/02/07 20:16:32] ../src/automatic.c, 608: ------ Checking for new episodes ------
Segmentation fault

Any help?
Thanks!

Offline

 

#590 2012-02-08 00:20:06

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

Re: [REL] Automatic for funplug-0.5

Got a strange problem, that I can not figure out. I use Kamorra, and have a few shows in my rss feed that is downloading on my DNS-325 with Fun_Plug 0.5 and 0.7.1/2.4.2

If I include this filter, or any combination with the name(s), the shows are updated before Automatic terminates. This happened by itself last week, and it can? have something to do with the new changes at Kamorra. I just wonder which show will be the next to kill my Automatic... Anyone got a small fix for this?

filter = { pattern => "Show's.Sodomy*"
    folder => "/mnt/HD/HD_a2/TV_Program/Shows_Sodomy/"
            }

Last edited by torro (2012-02-12 19:12:30)


-=torro=-

Offline

 

#591 2012-02-08 00:36:42

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

Re: [REL] Automatic for funplug-0.5

@Leazah: What do you mean by copying libs to /ffp/lib? You should always use library packages that are specifically provided for ffp-0.7.
All of Automatics dependencies should be available as package. Let me know if this is not the case.

@torro: Automatic quits by itself when you add this filter to your config file? What does the log file say about it?

Offline

 

#592 2012-02-08 09:44:54

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

Re: [REL] Automatic for funplug-0.5

The log does not tell anything, everything seems OK, but Automatic just quits.
I tried to delete the state file and to just have this filter in my config file, but with similar result.

Is there a way to enable debugging, or more detailed log level?

Last edited by torro (2012-02-08 10:54:36)


-=torro=-

Offline

 

#593 2012-02-08 12:12:28

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

Re: [REL] Automatic for funplug-0.5

Try this:

Code:

$ automatic -f -o -c /ffp/etc/automatic.conf -v 4 -l automatic.log

It will run Automatic in foreground mode, and quit (on purpose) after it checked the feeds once.
If it quits earlier than expected (because of a crash, for example), the logfile should reflect that.

Last edited by KyleK (2012-02-08 12:13:41)

Offline

 

#594 2012-02-08 12:30:16

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

Re: [REL] Automatic for funplug-0.5

It output "Segmentation fault"

Edit: This is, so far, only happening when this specific TV show is included in the config file.
        Both the torrent- and the avi file has normal characters, but it could have something
        to do with the ' . Automatic quits whether the torrents exist or not.
        Here is the RSS link..[removed]

Last edited by torro (2012-02-12 19:11:35)


-=torro=-

Offline

 

#595 2012-02-08 20:13:44

Leazah
New member
Registered: 2012-02-07
Posts: 2

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

@Leazah: What do you mean by copying libs to /ffp/lib? You should always use library packages that are specifically provided for ffp-0.7.
All of Automatics dependencies should be available as package. Let me know if this is not the case.

Maybe I've done something wrong, but what I did was just download the automatic package and funpkg'd it. No warning nor anything else. But when I started it, it asked for some libs in /ffp/lib that I found in /bin, so I copied them.
Should I download any specific package for this libs? Anyway, it's possible that's my fault, because I had to change several routes in the script to get it run.

PS: Thanks and again, sorry for my english.

Offline

 

#596 2012-02-10 17:06:50

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

Re: [REL] Automatic for funplug-0.5

@Leazah: Automatic depends on curl, PCRE and libxml2, all of which are available from fonz' repository and must be installed for Automatic to work. Copying any files from /lib to /ffp/lib will most certainly break things.

Just use slacker to install the requirements:

Code:

$ slacker -Ui

Offline

 

#597 2012-02-10 17:08:25

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

Re: [REL] Automatic for funplug-0.5

torro wrote:

It output "Segmentation fault"

Here is the log: http://pastebin.com/vnyFJBY6

Edit: This is, so far, only happening when this specific TV show is included in the config file.
        Both the torrent- and the avi file has normal characters, but it could have something
        to do with the ' . Automatic quits whether the torrents exist or not.
        Here is the RSS link for this show: http://showrss.karmorra.info/feeds/34.rss

The good news is that I pinned down the problem and already fixed it.

The not so good news is that I only fixed it for the new ffp-0.7-arm platform.
I'll do my best to provide a ffp-0.5 package before Monday (which is when I will be away for ~ 10 days).

Offline

 

#598 2012-02-10 23:44:24

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

Re: [REL] Automatic for funplug-0.5

Ok, Automatic v0.7.2 is now available for ffp-0.5 and ffp-0.7-arm.
It fixes the issue torro reported (Automatic could crash in some rather rare cases).

Get the packages from the first post.

Offline

 

#599 2012-02-12 21:00:39

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

Re: [REL] Automatic for funplug-0.5

Thanks. The new release fixed the problem.


-=torro=-

Offline

 

#600 2012-03-01 23:41:44

djtaz
Member
Registered: 2010-04-03
Posts: 33

Re: [REL] Automatic for funplug-0.5

Hey Kylek, 
Thanks again for this amazing bit of code , its made my life so much easier.
As you may know , the piratebay has recently removed torrents and only use magent files now , and im wondering if automatic can support magent addresses as i know transmission can.  I can cut and paste the files into transmission and that works ok, but i get errors when i try to get them with an RSS feed. 

Code:

[12/03/01 21:32:53] ../src/automatic.c, 397: [(null)] Found new download: The Adventures of Tintin 2011 DVDRip XviD-TARGET (magnet:?xt=urn:btih:2ded86af7c0cce8224262ba703                                                                   191bf7d8537a5d&dn=The+Adventures+of+Tintin+2011+DVDRip+XviD-TARGET)
../src/web.c, 422: [getHTTPData] 'magnet:?xt=urn:btih:2ded86af7c0cce8224262ba703191bf7d8537a5d&dn=The+Adventures+of+Tintin+2011+DVDRip+XviD-TARGET': Couldn't resolve host                                                                    name (retval: 6)
[12/03/01 21:32:53] ../src/automatic.c, 397: [(null)] Found new download: Hugo.2011.DVDRip.XviD- AMIABLE (magnet:?xt=urn:btih:047939ea084451b77f60bd4951c53ac62a22ec5e&dn=                                                                   Hugo.2011.DVDRip.XviD-+AMIABLE)
../src/web.c, 422: [getHTTPData] 'magnet:?xt=urn:btih:047939ea084451b77f60bd4951c53ac62a22ec5e&dn=Hugo.2011.DVDRip.XviD-+AMIABLE': Couldn't resolve host name (retval: 6)
[12/03/01 21:32:53] ../src/automatic.c, 397: [(null)] Found new download: Machine Gun Preacher 2011 Dvdrip xvid Cinemagic (magnet:?xt=urn:btih:7be37ac7f65dc78bf8b115629e6                                                                   0220c637fe0d1&dn=Machine+Gun+Preacher+2011+Dvdrip+xvid+Cinemagic)
../src/web.c, 422: [getHTTPData] 'magnet:?xt=urn:btih:7be37ac7f65dc78bf8b115629e60220c637fe0d1&dn=Machine+Gun+Preacher+2011+Dvdrip+xvid+Cinemagic': Couldn't resolve host                                                                    name (retval: 6)

That being said, it very well could be my RSS feed , but i have tried a few things and cant seem to work it out so i said id ask the expert.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB