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

#451 2011-02-21 20:47:20

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

Re: [REL] Automatic for funplug-0.5

I just tested this myself with Transmission 2.21 and Automatic 0.6.2, but I can't replicate this.
Things to check:
1. The folder you specify per pattern in automatic.conf has to exist and must have write rights for whatever user is running Transmission (default: nobody).
2. Is the Incomplete folder ever used (e.g. when you add torrents to Transmission directly, or for patterns in Automatic that don't have a custom folder specified)


Unfortunately Transmission has no log output whatsoever when a new torrent gets added, but if all fails I can add some and give you a custom build for tracking this issue.

Offline

 

#452 2011-02-21 21:57:35

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

Re: [REL] Automatic for funplug-0.5

1. I'm using root (I know.. bad me) as the user in transmission and it is the owner of the folder.

Code:

/mnt/HD_a2/ffp/etc # ls -ahl /mnt/HD_a2/TVShows/
drwxrwxrwx    6 root     root         4.0k Feb 17 10:26 .
drwxrwxrwx   15 root     root         4.0k Feb 16 19:45 ..
drwxr-xr-x    3 root     root         8.0k Feb 17 10:26 Archive
drwxrwxrwx    2 root     root         4.0k Feb 20 09:25 JustIn

2.  The .part file does appear now in the Incomplete folder.   And when the file is completely downloaded, it appears in the /mnt/HD_a2/Downloads folder sad

So I'm halfway there smile


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

Offline

 

#453 2011-02-21 22:04:42

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

Re: [REL] Automatic for funplug-0.5

Ok,

the next time Automatic adds a new torrent to Transmission (that has specified a custom folder), please check what Transmission has set as download folder:

Code:

$ transmission-remote -t <torrentid> -i

If it states the folder from Automatic (the correct one), then somethings wrong either with Transmission, or some permission issue.
If it lists the wrong folder, however, Automatic  apparently does something wrong.

Can you update to the latest version of Automatic, just to rule out any issues there?

Last edited by KyleK (2011-02-21 22:48:43)

Offline

 

#454 2011-02-21 22:31:08

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

Re: [REL] Automatic for funplug-0.5

n00b question.. how do I determine the torrentid ?


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

Offline

 

#455 2011-02-21 22:50:02

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

Re: [REL] Automatic for funplug-0.5

First, just list all torrents:

Code:

$ transmission-remote -l

The torrent ID will be on the far left of the table.

Then, the above command (which was wrong in my previous post):

Code:

$ transmission-remote -t <tid> -i

Offline

 

#456 2011-02-21 22:53:51

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

Re: [REL] Automatic for funplug-0.5

I did update to the latest Automatic and here is the relevant info I get.

NAME
  Id: 9
  Name: The.Simpsons.S22E13.HDTV.XviD-LOL.avi
  Hash: 8f9f3b3d683a24beea11797327b4a285409e09c3

TRANSFER
  State: Stopped
  Location: /mnt/HD_a2/Downloads
  Percent Done: 1.29%


is that the information you were looking for?


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

Offline

 

#457 2011-02-21 22:59:50

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

Re: [REL] Automatic for funplug-0.5

Yeah.
As you can see, Transmission doesn't have the correct download folder for this specific torrent.

Hm hm, weird.
Either Transmission for some reason ignores the custom download folder, or Automatic is at fault somehow.

Can you send me your automatic.conf (1100101+automatic<at>gmail.com)

Offline

 

#458 2011-02-22 10:08:43

wtfok
Member
Registered: 2011-01-25
Posts: 31

Re: [REL] Automatic for funplug-0.5

FunFiler wrote:

That URL is to a standard HTML page, not a RSS feed. You should be using http://ezrss.it/feed/ instead

Hi, I would like to come back at this post on page 15. In the source of a search-page from ezrss.it (like this one for example), it does say "<rss version="2.0">". This would mean it would work, right? It seems to be static though; it doesn't seem to contain new items automaticly in my reader...
Your example of http://ezrss.it/feed/ does also say "<rss version="2.0">", so my question is: what is the difference here? smile

Last edited by wtfok (2011-02-22 10:12:26)

Offline

 

#459 2011-02-22 11:40:53

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

Re: [REL] Automatic for funplug-0.5

@tanstaafl1963:
Mystery solved!

I spent all evening yesterday trying to figure out what was going on: Using your automatic.conf I removed all filters but the for The Simpsons, but for some reason it didn't catch the episode from the feed: That's because your pattern is invalid!
Filter patterns must not contain any whitespace, otherwise they won't work.
So, the correct filter should be:

Code:

filter =  { pattern => "(?!.*(mkv))The.Simpsons"
            folder => "/mnt/HD_a2/TVShows/JustIn"
          }

But this wasn't the weird part: When I didn't remove the other filters from automatic.conf, Simpsons episodes were added to Transmission anyway, even though the pattern is invalid.
The reason for this is this filter:

Code:

filter =  { pattern => "(?!.*(mkv))V"  }

It basically matches for every RSS item that contains the letter "V" (even the fact that it is capitalized doesn't matter).
Since most items in your feed contain the format string "XviD", this filter would match _everything_.

Understandable, "V" is a very unfortunate name for a TV show when it comes to auto-downloading smile

Here's the correct pattern for it:

Code:

filter =  { pattern => "(?!.*(mkv))^V\s"  }

It specifies that "V" must be the very first letter of the show title, and the character after "V" must be a whitespace.


Let me know if you still have issues after fixing your config file.

Offline

 

#460 2011-02-22 22:33:16

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

Re: [REL] Automatic for funplug-0.5

Appropriately enough, my response is "D'oh!"  smile


Thank you !


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

Offline

 

#461 2011-02-24 19:07:39

armand2099
Member
Registered: 2010-12-15
Posts: 7

Re: [REL] Automatic for funplug-0.5

Hello.
For some reason automatic stop working on my dns 323.
I had tried to start it with: /ffp/start/automatic.sh start and it start, but when I do a /ffp/start/automatic.sh stop
I get a "automatic is not running " message.
as I do not know much about linux, I don't know what else to do. Any suggestions?
thanks

Offline

 

#462 2011-02-26 22:23:25

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

Re: [REL] Automatic for funplug-0.5

By default, a logfile is created at /mnt/HD_a2/.transmission-daemon/automatic.log
You could have a look there and see why it quit unexpectedly.

Or, you can start Automatic in foreground mode and check if it spews out any fatal error:

Code:

$ automatic -f -v 2 -c /ffp/etc/automatic.conf

Offline

 

#463 2011-02-28 02:32:14

orangelmo
New member
Registered: 2011-02-26
Posts: 2

Re: [REL] Automatic for funplug-0.5

Hi Everyone.  I finally got my 323 back up and running and wanted to try and get automatic working.  Originally I couldn't get the automatic.conf to save until i changed the permissions.  When I actually tried to start up automatic I get:

Code:

/ffp/start/automatic.sh start
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf -l /mnt/HD_a2/.transmission-daemon/automatic.log
Segmentation fault

I'm using Transmission 2.21 and automatic 0.6.2

Last edited by orangelmo (2011-02-28 02:48:06)

Offline

 

#464 2011-02-28 08:48:26

wtfok
Member
Registered: 2011-01-25
Posts: 31

Re: [REL] Automatic for funplug-0.5

Excuse me for this kick, but does anyone know the answer to my question about the difference between the RSS feeds I posted?

Offline

 

#465 2011-02-28 10:17:21

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

Re: [REL] Automatic for funplug-0.5

@orangelmo:
Please upgrade to Automatic 0.6.4. You're most likely getting the segfault because of a bug in 0.6.2 (multiple newlines at the end of the config file)

@wtfok:
As you can see in the link from your post, the URL has the option "mode=rss" at the very end, which simply tells the site to produce a valid RSS feed of the search result.
So yes, in this case you can use feeds from that URL. FunFiler just stated that when you simply specify "http://eztv.it/" as your sole feed URL, it won't work, because that link gives you a HTML page, not an RSS feed.

Offline

 

#466 2011-02-28 10:19:17

wtfok
Member
Registered: 2011-01-25
Posts: 31

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

@orangelmo:
Please upgrade to Automatic 0.6.4. You're most likely getting the segfault because of a bug in 0.6.2 (multiple newlines at the end of the config file)

@wtfok:
As you can see in the link from your post, the URL has the option "mode=rss" at the very end, which simply tells the site to produce a valid RSS feed of the search result.
So yes, in this case you can use feeds from that URL. FunFiler just stated that when you simply specify "http://eztv.it/" as your sole feed URL, it won't work, because that link gives you a HTML page, not an RSS feed.

Thanks for the answer. I will try this feed again then, and hope it works this time smile

Offline

 

#467 2011-02-28 11:14:10

orangelmo
New member
Registered: 2011-02-26
Posts: 2

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

@orangelmo:
Please upgrade to Automatic 0.6.4. You're most likely getting the segfault because of a bug in 0.6.2 (multiple newlines at the end of the config file)

Sorry I meant to say I'm using 0.6.4.  Not really sure why I put in 6.2

Offline

 

#468 2011-02-28 13:15:44

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

Re: [REL] Automatic for funplug-0.5

Oh, well in that case can you please send me your automatic.conf to 1100101+automatic<at>gmail.com?

Please also attach the logfile that is produced by this command:

Code:

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

I suspect a malformed config file, but segfaults are most certainly not supposed to happen, so this definitely involves a fix of some kind.

Offline

 

#469 2011-02-28 13:54:32

wtfok
Member
Registered: 2011-01-25
Posts: 31

Re: [REL] Automatic for funplug-0.5

About malformed config files, I have something to add about that.

My config file stated the following:

Code:

feed = { url => "http://rss.thepiratebay.com/208/"
        cookies => ""
        }

I got this to work, but received double files, so I searched for another feed. To remember my PB URL, I did the following

Code:

#feed = { url => "http://rss.thepiratebay.com/208/"
feed = { url => "http://www.ezrss.it/search/index.php?show_name=&date=&quality=720p&release_group=DIMENSION&mode=rss"
        cookies => ""
        }

This didn't download anything at all. But then I did it in a more clean way:

Code:

feed = { url => "http://www.ezrss.it/search/index.php?show_name=&date=&quality=720p&release_group=DIMENSION&mode=rss"
        cookies => ""
        }

Worked like a charm. So how does commenting a rule not seem to work properly?

And by the way, my very first problem with Automatic emerged from an encryption on my password. When I typed in my unencrypted password, it changed back to an encrypted version. Then, after some retries, it didn't. Quite mysterical, and probably my fault, but maybe something that you should give attention for a minute or two.

Last edited by wtfok (2011-02-28 13:54:59)

Offline

 

#470 2011-02-28 22:19:02

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

Re: [REL] Automatic for funplug-0.5

I can't replicate your first issue with the commented feed line. Looking at the code, as soon as a line is commented with a '#', everything else on that line is ignored until the end of the line, and no further processing is done.

Automatic not downloading any torrents must have another reason. Automatic checks if there is at least 1 feed and also at least 1 filter, otherwise it would quit with an error.

Regarding your other issue with authentication, that is a mystery to me as well. Automatic takes the auth string from the config file as-is and passes it to Transmissions built-in mini-webserver unmodified. Therefore it shouldn't matter whether you use the cleartext password or the hashed string from Transmission's settings.json, it should work either way.

Offline

 

#471 2011-03-02 02:12:45

satch80
New member
Registered: 2011-03-02
Posts: 1

Re: [REL] Automatic for funplug-0.5

When a show with an ampersand (&) in the title is added to my RSS feed on a private tracker, automatic stops parsing the RSS feed on the entry and won't add any new downloads.

Here is the verbose log info:

Entity: line 369: parser error : xmlParseEntityRef: no name
<link>http://######.###/download.php/######/###########&#######
                                                                                                   ^
../src/xml_parser.c, 170: Error: Unable to parse input data!

Has anybody encountered this and came up with a fix?

Offline

 

#472 2011-03-02 11:28:37

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

Re: [REL] Automatic for funplug-0.5

Unfortunately there is nothing I can do about it. Within text fields, the characters '<' and '&' on their own are considered illegal, because they're special characters.
Whoever produces the RSS feed has to ensure that these special characters are either escaped (e.g. '&' becomes '&amp;'), or things like titles are completely encapsulated in "![CDATA[ {title} ]]" elements (which tell the XML parser to actually not parse the content of the CDATA section, but store it as-is).

Offline

 

#473 2011-03-09 20:01:49

notsee
Member
Registered: 2011-03-09
Posts: 9

Re: [REL] Automatic for funplug-0.5

When compiling gcc 3.4, CURLINFO_RESPONSE_CODE not fit into uint16_t (web. h). If you use a long (http://linux.die.net/man/3/curl_easy_getinfo) - works.

If used as a Description for "folders" or "filters" UTF-8 characters - SEGFAULT a function shorten (). (eg the path to the folders in the Cyrillic alphabet).

Offline

 

#474 2011-03-09 20:10:18

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

Re: [REL] Automatic for funplug-0.5

notsee wrote:

When compiling gcc 3.4, CURLINFO_RESPONSE_CODE not fit into uint16_t (web. h). If you use a long (http://linux.die.net/man/3/curl_easy_getinfo) - works.

If used as a Description for "folders" or "filters" UTF-8 characters - SEGFAULT a function shorten (). (eg the path to the folders in the Cyrillic alphabet).

Thanks for the tip about CURLINFO_RESPONSE_CODE, that one's easy to fix :)

Regarding UTF8 characters in the config file, I've never actually thought about that. Can you provide an example config that produces a segfault?

Offline

 

#475 2011-03-09 20:24:29

notsee
Member
Registered: 2011-03-09
Posts: 9

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Regarding UTF8 characters in the config file, I've never actually thought about that. Can you provide an example config that produces a segfault?

Attached.

I just use a function isMatch () "item-> url" instead of "item-> name", so the pattern as it looks.

Last edited by notsee (2011-03-09 20:35:01)


Attachments:
Attachment Icon automatic.conf, Size: 4,271 bytes, Downloads: 461

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB