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

#326 2010-09-02 11:24:02

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

Hi, thank you for the support. I looks like it was the "}" at the bottom I had to remove. Now it's working (I think). The tracker is down today, so it will not work anyway, but the program is starting, so I guess everything is like it is supposed to do. If not, I will return smile

Offline

 

#327 2010-09-03 03:21:03

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

Ok, now when the tracker is up and runing, it's time to keep asking my questions big_smile

Automatic starts, it finds the program I want it to download, and it even add it to transmission. But it will not be downloaded. I have manually downloaded many other programs from the same tracker with no problems.

I have told automatic.conf to save the program to mnt/HD_a2/RSS/Hotel

Transmission says: Downloading from 0 of 0 peers (this is one of the most downloadable file at the tracker, so I know that there is enough seeders.

Here is what the comand "automatic -f" is saying:

root@nsa220plus:/ffp/start# automatic -f
../src/automatic.c, 530: 1 feed URLs
../src/automatic.c, 531: Read 1 filters from config file
../src/state.c, 100: [load_state] Error: Unable to open statefile '/root/.config/automatic.state' for reading: No such file or directory
[10/09/03 01:07:57] ../src/automatic.c, 384: Found new download: Hotel.**** (http://www.***bits.net/download.php/***/Hotel.***.wmv.torrent)
../src/torrent.c, 121: Torrent has already been added to Transmission
../src/state.c, 66: Saving state (1 downloaded torrents) to disk
../src/state.c, 68: Error: Unable to open statefile '/root/.config/automatic.state' for writing: No such file or directory
../src/web.c, 431: [getHTTPData] 'http://www.***bits.net/rss.php?feed=***': Server returned nothing (no headers, no data)

How can I get the torrent start downloading?

Offline

 

#328 2010-09-03 03:32:41

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

Re: [REL] Automatic for funplug-0.5

To ensure you don't get duplicates, you want to fix the state file issue.

Unless you are running as root, I would change the location of the state file in automatic.conf.

Once you figure out where you want it then issue some commands. I will use /tmp as an example.

Create a blank state file using the touch command
touch /tmp/automatic.state

Change the permissions
chmod 777 /tmp/automatic.state

Automatic is doing its job by creating the torrent and passing it to Transmission. However, the only thing that could be related that I would suspect are the cookie values or something along those lines.

Also, be sure you are looking at current log info. Sometimes it is easy to get fooled and look at old data. Shut down transmission and automatic, delete both log files, then start transmission, then start automatic. Check the logs again for new information.

Last edited by FunFiler (2010-09-03 03:33:42)


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

Offline

 

#329 2010-09-03 12:13:52

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

Wohoo. It seems to work big_smile

Thank you so much!

Last edited by r2d290 (2010-09-03 12:16:42)

Offline

 

#330 2010-09-03 13:46:00

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

Re: [REL] Automatic for funplug-0.5

Cool


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

Offline

 

#331 2010-09-03 23:45:29

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

Re: [REL] Automatic for funplug-0.5

Sorry for being absent for a while, guys. I've moved to another apartment and was without internet for a month (yes, it was hard smile

I'll be available for support again if anything should come up.

Offline

 

#332 2010-09-04 01:47:10

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

Re: [REL] Automatic for funplug-0.5

Must have seemed like the Dark Ages smile Good to have you back.


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

Offline

 

#333 2010-09-10 19:30:10

Marijom
Member
From: Sweden
Registered: 2007-07-06
Posts: 54

Re: [REL] Automatic for funplug-0.5

Thanks for a nice program.
When starting with a new program it should be nice if it didn't remove the old logfile. ( add a date stamp to it and save it under another name instead or so). When making changes to the configuration it isn't always i remember to save the old logfile.

after some not so nice words i made this quick change to the automatic.sh file but it will be overwritten by next upgrade.

Code:

Now=$(date +"%Y%m%d%H%M")
automatic_flags="-c /ffp/etc/automatic.conf -l /mnt/HD_a2/.transmission-daemon/automatic-$Now.log"

Offline

 

#334 2010-09-11 00:52:00

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

Re: [REL] Automatic for funplug-0.5

Have an autorollover setting for the log would be pretty cool. Personally I couldn't care much for old data but it is handy now and then to pop it open to see what is going on.


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

Offline

 

#335 2010-09-22 22:28:50

cornelpopa
New member
Registered: 2010-07-25
Posts: 2

Re: [REL] Automatic for funplug-0.5

My head is spinning after trying to understand regular expression.

For a while I had figured a way that was OK. Ex: To download the episodes from the House MD series in 720p I was using the following filter:

filter = { pattern => "^House.*720p"
         }

But, this filter also downloaded the "WEB-DL" version too.

So I was back to study regular expression, and I came up with

filter = { pattern => "(?!.*WEB-DL)^House.*720p"
         }

Can somebody confirm that this expression will match "House" at beginning, 720p somewhere in the rest, but it will discard if WEB-DL is found?

Thanks in advance.

Offline

 

#336 2010-09-22 23:55:19

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

Re: [REL] Automatic for funplug-0.5

This is what I use for House (I grab the SD feeds to save on space):
filter = { pattern => "(?!.*(720p|micro|repack))^House\." }

Looks like yours should work for what you want to do.

You can delete the automatic.state file if you want to test it out so that it won't skip files that have been previously identified (just delete them from transmission if you don't want to d/l them again). I think log level 3 would also provide a lot more info in regards to the rule processing. I usually run log level 2 myself.

Last edited by FunFiler (2010-09-23 00:05:38)


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

Offline

 

#337 2010-09-23 01:03:05

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

Re: [REL] Automatic for funplug-0.5

cornelpopa wrote:

My head is spinning after trying to understand regular expression.

For a while I had figured a way that was OK. Ex: To download the episodes from the House MD series in 720p I was using the following filter:

filter = { pattern => "^House.*720p"
         }

But, this filter also downloaded the "WEB-DL" version too.

So I was back to study regular expression, and I came up with

filter = { pattern => "(?!.*WEB-DL)^House.*720p"
         }

Can somebody confirm that this expression will match "House" at beginning, 720p somewhere in the rest, but it will discard if WEB-DL is found?

Thanks in advance.

The expression looks fine to me, it should work.

If you run a Windows OS, I highly recommend The Regex Coach to test regular expressions.
It's rather easy to use and you can play with it until  the expression fits your needs.

I don't know any similar tools on other operating systems off the top of my head, but I'm sure they do exist.

Offline

 

#338 2010-10-03 19:04:34

sharks
Member
Registered: 2009-06-03
Posts: 13

Re: [REL] Automatic for funplug-0.5

hi everyone,

I have a probleme. The RSS feed of the tracker I go returns me the page of the announce instead of the .torrent file. So, automatic says me "invalide .torrent" . Anyone has also this problem? if yes, how to solve it? I think I can't do something, only the tracker could do something.
For example: the link of announce of a file I want is "http://www.*******.com/torrents-details.php?id= xyz"
for downloading it: i have to go on: "http://www.*******.com/download.php?id= xyz"
The RSS returns me "http://www.*******.com/torrents-details.php?id= xyz" and not "http://www.*******.com/download.php?id= xyz"
Is there a script for automatic to redirect the link?

Other question: Is it possible to change the "automatic.sh" in the start folder for launching also transmission when it starts? If yes, what command line should I use?

Thank you and nice week-end!

Sharks.

Last edited by sharks (2010-10-03 19:13:05)

Offline

 

#339 2010-10-03 20:09:00

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

Re: [REL] Automatic for funplug-0.5

Automatic only works properly if the feed contains direct download links for the torrent file.
Some sites don't like automatic downloading tools, so they won't put the "correct" link into the feed.
Other sites, however, have multiple feeds: One with links to the details page (for use in a browser, for example), and another feed with direct links.
You should check with the site owner.

Ideally, Transmission should be started before Automatic. If both transmission.sh and start.sh in the /ffp/start folder have executable rights, that will automatically happen when you boot up the NAS.

Offline

 

#340 2010-10-03 20:46:28

sharks
Member
Registered: 2009-06-03
Posts: 13

Re: [REL] Automatic for funplug-0.5

Thank you for the answer. I will ask the owner. The previous site (closed now), I used, allowed the direct download RSS. I hope this site allows this too but I still haven't see the RSS link for that.

Offline

 

#341 2010-10-05 00:13:30

sekatsim
New member
Registered: 2010-10-05
Posts: 3

Re: [REL] Automatic for funplug-0.5

I'm having an issue, I hope someone can offer a solution:

I've gotten RSS feeds for a couple of TV shows I'd like to keep track of, and combined them using a Pipe. I put the pipe URL into automatic. The shows aren't showing up in Transmission, though.. and my automatic.log output looks like:

[10/10/04 13:05:41] ../src/automatic.c, 509: Daemon started
../src/automatic.c, 530: 1 feed URLs
../src/automatic.c, 531: Read 1 filters from config file
../src/state.c, 100: [load_state] Error: Unable to open statefile '/home/root/.config/automatic.state' for reading: No such file or directory
[10/10/04 13:05:41] ../src/automatic.c, 384: Found new download: House 4x12 [720P - HDTV - DIMENSION] (http://www.bt-chat.com/download1.php?info_hash=ef
../src/torrent.c, 124: Error uploading torrent: no method name


Any thoughts?

Offline

 

#342 2010-10-05 03:30:11

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

Re: [REL] Automatic for funplug-0.5

Personally, I use one line per show. Keeps things clean and easy to modify.


Example

filter = { pattern => "(?!.*(720p|micro|repack))^Haven\.S.*eztv" }
filter = { pattern => "(?!.*(720p|micro|repack))^Hawaii.Five.*VTV" }
filter = { pattern => "(?!.*(720p|micro|repack))^Hells.Kitchen.US.S.*eztv" }
filter = { pattern => "(?!.*(720p|micro|repack))^House\..*eztv" }

Without seeing your actual configuration file, or at least the lines in question, it is hard to offer much advice.

You should fix the state file problem though. Just issue a 'touch' command on the file, assuming the path is correct.

touch /home/root/.config/automatic.state
chmod 777 /home/root/.config/automatic.state

Last edited by FunFiler (2010-10-05 03:33:00)


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

Offline

 

#343 2010-10-06 17:13:27

sekatsim
New member
Registered: 2010-10-05
Posts: 3

Re: [REL] Automatic for funplug-0.5

That did help, putting it all on one line. Now I have:

filter = { pattern => "." folder => "/mnt/HD_a2/Movies/TV\ Shows/" }

The daemon starts up fine, but nothing gets downloaded. Log:

[10/10/06 06:10:14] ../src/automatic.c, 509: Daemon started
../src/automatic.c, 530: 1 feed URLs
../src/automatic.c, 531: Read 1 filters from config file
../src/state.c, 111: Restored 0 old entries

I thought, maybe my filters/folder aren't correct, so I tried commenting out the filter and restarting automatic. Now the log just says, "no filters found", and automatic exists.


I was able to fix the state file problem.. I just created the folder and file, and it stopped throwing the error. Thanks

Offline

 

#344 2010-10-06 18:42:11

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

Re: [REL] Automatic for funplug-0.5

What are you trying to accomplish with this?
filter = { pattern => "." folder => "/mnt/HD_a2/Movies/TV\ Shows/" }


Download everything?

If so, try
filter = { pattern => ".*" folder => "/mnt/HD_a2/Movies/TV\ Shows/" }


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

Offline

 

#345 2010-10-06 21:22:17

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

Re: [REL] Automatic for funplug-0.5

Bah, config parsing can be a b*tch! smile

Putting 'pattern' and 'folder' on a single line won't work, this breaks the config parser. I'll think of something.
For now, please put these parameters on separate lines (the parser is specifically looking for the linebreak).

Other than that, FunFiler was right. 'pattern => "."' only matches a single character. If you want to match anything that a feed gives you, use ".*"

Offline

 

#346 2010-10-06 21:59:13

sekatsim
New member
Registered: 2010-10-05
Posts: 3

Re: [REL] Automatic for funplug-0.5

Ok, I've got the entries coming through in the log again, but I'm back to:

[10/10/06 10:56:03] ../src/automatic.c, 384: Found new download: House 4x15 [720P - HDTV - DIMENSION] (http://torrent.zoink
../src/torrent.c, 124: Error uploading torrent: no method name

Is this an error with communicating with transmission? It is running, and transmission-remote works.

Offline

 

#347 2010-10-11 19:03:06

Frans
Member
Registered: 2009-05-20
Posts: 28

Re: [REL] Automatic for funplug-0.5

I've been trying to download certain episoded of certain seasons, tried every combination but it doesn't work! Can somebody help me? I believe the following to be correct:

Code:

filter = { pattern => "^Dexter\.S0[5-9]E"
           folder => "/mnt/HD_a2/Series/Dexter/"
         }

EDIT:
Solved... It looks at the <title> and not at the filename in the RSS feed and they where totally different...

Last edited by Frans (2010-10-11 19:31:17)

Offline

 

#348 2010-10-12 04:25:36

Stork
Member
Registered: 2008-12-18
Posts: 32

Re: [REL] Automatic for funplug-0.5

Is there a users guide/manual/101 for automatic?

Offline

 

#349 2010-10-12 08:13:13

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

Re: [REL] Automatic for funplug-0.5

sekatsim wrote:

Ok, I've got the entries coming through in the log again, but I'm back to:

[10/10/06 10:56:03] ../src/automatic.c, 384: Found new download: House 4x15 [720P - HDTV - DIMENSION] (http://torrent.zoink
../src/torrent.c, 124: Error uploading torrent: no method name

Is this an error with communicating with transmission? It is running, and transmission-remote works.

I wrote you a private message last week or so, did you get it? I'll need a copy of your automatic.conf so I can figure out what's going on.

Offline

 

#350 2010-10-12 08:14:50

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

Re: [REL] Automatic for funplug-0.5

Stork wrote:

Is there a users guide/manual/101 for automatic?

The first post of this thread is kinda it :)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB