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

#376 2010-11-24 17:02:06

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

Re: [REL] Automatic for funplug-0.5

Looks like the file upload failed...trying again.

Offline

 

#377 2010-11-24 17:03:20

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

Re: [REL] Automatic for funplug-0.5

To any mods... getting the following when I try to submit a post w/ an attachment:

Code:

Fatal error: Call to undefined function attach_find_extention() in /home/omad/5017/forum.source.pri.ee/include/attach/attach_func.php on line 111

Offline

 

#378 2010-11-24 17:39:54

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

Re: [REL] Automatic for funplug-0.5

Modify the script or command that you use to start Automatic to include a "-v 2" to enable verbose level 2 logging. If I recall correctly, increasing this to level 3 will also show you the parsing information and filters.
example:

Code:

automatic_flags="-v 2 -c /ffp/etc/automatic.conf -a -l ${LOG_FILE}"

Also, just to simplify things and rule out other problems, backup your configuration file and remove all the filters except the one you are trying to fix. See if that helps.

Just cut and paste the file into CODE tags rather than attach if that option isn't working.

Last edited by FunFiler (2010-11-24 17:41:11)


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

Offline

 

#379 2010-11-24 18:57:12

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

Re: [REL] Automatic for funplug-0.5

Here's my automatic.conf file

Code:

##############################
## Version-specific options ##
##############################

# Transmission version. Options are "1.2", "1.3", and "external"
transmission-version = "1.3"

# Call an external program instead of transmission directly
#
# If you use this, set transmission-version to "external"
# For best results, use an absolute path to the executable
# Executable is passed a single parameter, the name of the .torrent
# file that was downloaded.  The .torrent file passed to this external
# program may be removed after the program returns.
# The program should return exit code 0 for success and non-0 for failure
# Automatic won't respond to ctrl-C while waiting for this to return
#
# transmission-external = "/usr/local/bin/custom-add-torrent"

# For Transmission 1.3x and newer only: set the host on which Transmission runs (default: localhost)
rpc-host = "localhost"

# For Transmission 1.3x and newer only: set the RPC port on which Transmission & Clutch communicate (default: 9091)
rpc-port = 9091

# For Transmission 1.3x and newer only: If you configured Transmission/Clutch to use password authentication, Automatic needs that information as well
rpc-auth = "user:pass"

# For Transmission 1.2x only: Path to the Transmission configuration files
# transmission-home = "~/.config/transmission"


#####################
## General options ##
#####################

# Specify an RSS feed by its URL and optionally a Cookie string for private feeds
# If you have more than one feed, just create another "feed" option

feed = { url => "http://www.tvtorrents.com/mytaggedRSS?digest=string"
        cookies => ""
        }                            

# list of feed URLs. You can specify one or more feeds, in case of the latter use curly brackets (see the "patterns" option for an example)
# DEPRECATED. Use the "feeds" option instead
#url = ""

# interval in minutes between checks for new downloads
interval = 30

# Limit upload speed (in KB/s) for each torrent that is added to Transmission via Automatic
#upload-limit = 10

# Automatically add downloaded torrents to Transmission (requires
# transmission-daemon and transmission-remote to be installed or use
# of "external" option)
# If this is not set, all Automatic will do is save the .torrent file.
# use-transmission = yes

# Instruct Transmission to immediately start downloading torrents after being added
# If set to 'no' torrents will be added in a paused state
# start-torrents = yes

# path where Automatic will store downloaded torrents
torrent-folder = "/Downloads"

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

# Prowl API key. You can use this to send push notifications to an iPhone. See http://prowl.weks.net for more information
#prowl-apikey = ""

# A filter contains a regular expressions which is matched against each RSS item.
# You may also specify a "folder" sub-option for each filter which will tell Transmission
# to download any matches with that particular pattern to a folder of your choice.
# If you want files to go to Transmission's default download folder, just omit it.
#
# Please don't use curly brackets within a regular expression, it'll horribly break the configuration parser :)
# Letter-casing does not matter
#
# If you have more than one pattern, just create a number of additional "filter" options

filter = { pattern => "(?!.*720p)(?!.*season)30.Rock"
           folder => "/mnt/HD_a2/Media/Television/30.Rock"
         }
filter = { pattern => "(?!.*720p)(?!.*season)Boardwalk.Empire"
           folder => "/mnt/HD_a2/Media/Television/Boardwalk.Empire"
         }
filter = { pattern => "(?!.*720p)(?!.*season)Community"
           folder => "/mnt/HD_a2/Media/Television/Community"
         }           
filter = { pattern => "(?!.*720p)(?!.*season)Dexter"
           folder => "/mnt/HD_a2/Media/Television/Dexter"
         }         
filter = { pattern => "(?!.*720p)(?!.*season)Entourage"
           folder => "/mnt/HD_a2/Media/Television/Entourage"
         }  
filter = { pattern => "(?!.*720p)(?!.*season)Futurama"
           folder => "/mnt/HD_a2/Media/Television/Futurama"
         }  
         
filter = { pattern => "(?!.*720p)(?!.*season)How.I.Met.Your.Mother"
           folder => "/mnt/HD_a2/Media/Television/How.I.Met.Your.Mother"
         }         
filter = { pattern => "(?!.*720p)(?!.*season)Always.Sunny.In.Philadelphia"
           folder => "/mnt/HD_a2/Media/Television/Its.Always.Sunny.In.Philadelphia"
         }        
filter = { pattern => "(?!.*720p)(?!.*season)Mad.Men"
           folder => "/mnt/HD_a2/Media/Television/Mad.Men"
         }         
filter = { pattern => "(?!.*720p)(?!.*season)Modern.Family"
           folder => "/mnt/HD_a2/Media/Television/Modern.Family"
         }
     
filter = { pattern => "(?!.*720p)(?!.*season)South.Park"
           folder => "/mnt/HD_a2/Media/Television/South.Park"
         }
 
filter = { pattern => "(?!.*720p)(?!.*season)The.Big.Bang.Theory"
           folder => "/mnt/HD_a2/Media/Television/The.Big.Bang.Theory"
         }    
filter = { pattern => "(?!.*720p)(?!.*season)The.League"
           folder => "/mnt/HD_a2/Media/Television/The.League"
         }
filter = { pattern => "(?!.*720p)(?!.*season)The.Office"
           folder => "/mnt/HD_a2/Media/Television/The.Office"
         } 
filter = { pattern => "(?!.*720p)(?!.*season)Two.and.a.Half.Men"
           folder => "/mnt/HD_a2/Media/Television/Two.And.A.Half.Men"
         }         
filter = { pattern => "(?!.*(720p|season))^The.Walking.Dead"
   folder => "/mnt/HD_a2/Media/Television/The.Walking.Dead"
         }    
         
# patterns contains a number of regular expressions which are matched against the RSS feed entries
# please don't use curly brackets within a regular expression, it'll horribly break the configuration parser :)
# letter-casing does not matter
# DEPRECATED (but still supported for compatibility reasons).
# Use "filter" option instead.

#patterns =  { "Name.of.Something.I.Want.to.Download.Automatically.*HDTV"
#              "Something.else.to.download.*720p"
#              "(?!.*720p)Some.Video.But.Not.The.HD.Version"
#            }

Last edited by turkvu (2010-11-24 18:59:32)

Offline

 

#380 2010-11-24 19:27:27

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

Re: [REL] Automatic for funplug-0.5

tyj82 wrote:

Can i request upgrade to isolate the feed to have different option.
Feed1 have options and filter dedicated for feed1
Feed2 have options and filter dedicated for feed2

.....

+1
This feature would be great smile

Offline

 

#381 2010-11-24 20:07:03

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

Re: [REL] Automatic for funplug-0.5

turkvu wrote:

Here's my automatic.conf file

The only thing I can think of is that you have some non-unix friendly characters in there. Does the verbose debug logging show anything useful? You can try removing all other filters and/or change the order to see if it makes any difference.

I've never run the way you are, I use transmission-home and use-transmission = yes, but if it is working for you for other torrents, then that should be fine.

Last edited by FunFiler (2010-11-24 20:08:53)


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

Offline

 

#382 2010-11-24 23:58:38

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

Re: [REL] Automatic for funplug-0.5

Enabled logging - for some reason however I edit my conf file it still logs the 15 filters I had. I edited down to just the one filter and it still loaded 15. Am I forgetting about some step in changing the conf file? I've been stopping automatic, updating the conf file then restarting automatic. I've double checked and the conf file has been saved correctly.

Offline

 

#383 2010-11-25 04:26:22

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

Re: [REL] Automatic for funplug-0.5

Are you sure it is reading that file and not another one somewhere else? Automatic is not like Transmission in this sense, it doesn't save the config on ext erasing any changes. The steps you are taking should be fine. I presume you are passing the conf file path and name on the command line.

The log file will show which config file is being read

Code:

../src/automatic.c, 526: config file: /ffp/etc/automatic.conf

Last edited by FunFiler (2010-11-25 04:41:21)


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

Offline

 

#384 2010-11-25 04:38:06

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

Re: [REL] Automatic for funplug-0.5

Enhancement Request

Read the configuration file date/timestamp on startup. Check the config file date/time to see if it has been updated at {interval} (same as the processing interval) and re-read it if necessary.

This would allow for configuration changes without restarting the daemon and would also allow for automated configuration file changes (to process different feeds at different times for example).


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

Offline

 

#385 2010-11-25 05:43:28

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

Re: [REL] Automatic for funplug-0.5

Looks like it was pointed somewhere else...always the easy things. Thanks for the help.

Offline

 

#386 2010-11-25 14:40:58

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

Re: [REL] Automatic for funplug-0.5

Cool. Sounds like you got it working. Glad I could help. I've made similar mistakes myself too many times to count.


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

Offline

 

#387 2010-11-26 11:41:24

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

Re: [REL] Automatic for funplug-0.5

FunFiler wrote:

Enhancement Request

Read the configuration file date/timestamp on startup. Check the config file date/time to see if it has been updated at {interval} (same as the processing interval) and re-read it if necessary.

This would allow for configuration changes without restarting the daemon and would also allow for automated configuration file changes (to process different feeds at different times for example).

This has been requested before, and I know it is quite common for daemons to support reloading the settings via SIGHUP (and w/o restarting the daemon).

It's definitely on the list, although I see potential problems, since you really have to re-read _everything_.


tyj82 wrote:

Can i request upgrade to isolate the feed to have different option.
Feed1 have options and filter dedicated for feed1
Feed2 have options and filter dedicated for feed2

Same goes for this one. This might be a bit easier to realize, I'll have to check.

I'm pretty busy with work and life these days, so I haven't had much time to work on Automatic. I hope I get around doing some coding around christmas though :)

Offline

 

#388 2010-11-29 06:54:18

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

Re: [REL] Automatic for funplug-0.5

Ignore this...figured it out.

Last edited by turkvu (2010-11-29 06:59:16)

Offline

 

#389 2010-12-15 07:25:09

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

Re: [REL] Automatic for funplug-0.5

Hello.
I'm new on this (I just got my NAS, DNS 323) and I'm trying to configure Automatic with my old feeds, but I get the following error with a particular feed page (that didn't happen with uTorrent):
"[10/12/14 23:05:46] ../src/automatic.c, 389: [1] Found new download: [HorribleSubs] Bleach - 301 [720p].mkv (http://www.kickasstorrents.com//torrent … -t4820346/)
../src/torrent.c, 124: Error uploading torrent: invalid or corrupt torrent file"
If you paste the link into the explorer you will get the torrent file.
Other question that I have is: Do I have to use dots (.) for the file paths?
IE: folder => "/mnt/HD_a2/MOVIES/SERIES/The.Big.Bang.Theory"
or folder => "/mnt/HD_a2/MOVIES/SERIES/The Big Bang Theory"
Thanks a lot in advance.

Offline

 

#390 2010-12-15 20:01:13

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

Re: [REL] Automatic for funplug-0.5

To answer your second question first: You can use whitespace in folder names, but I advise you to properly escape it (just in case, cause I didn't test it):

Code:

folder => /mnt/HD_a2/MOVIES/SERIES/The\ Big\ Bang\ Theory"

Regarding your first question, this is indeed strange. Can you give me the feed URL you use? Does it happen only for one specific torrent, or several/many?

Offline

 

#391 2010-12-17 02:09:04

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

Re: [REL] Automatic for funplug-0.5

Thanks a lot for the info.
These are the feeds that I'm using:
http://www.frozen-layer.com/fansubs/151/feed --> Works
http://ezrss.it/feed/ --> Don't Work
http://www.kickasstorrents.com/search/% … %5D/?rss=1 --> Don't Work

I can see the following lines on Automatic log that can be related to the problem:

../src/state.c, 100: [load_state] Error: Unable to open statefile '/home/root/.config/automatic.state' for reading: No such file or directory

***************************Yesterday I was getting this error:*************************

[10/12/15 16:08:21] ../src/automatic.c, 389: [1] Found new download: [HorribleSubs] Bleach - 301 [XviD AnimeSenshi).avi (http://www.kickasstorrents.com//torrent … -t4822763/)
../src/torrent.c, 124: Error uploading torrent: invalid or corrupt torrent file

*****************************Today, this one:*****************************

[10/12/15 17:08:49] ../src/automatic.c, 389: [1] Found new download: [HorribleSubs] Bleach - 301 [XviD AnimeSenshi).avi (http://www.kickasstorrents.com//torrent … -t4822763/)
../src/torrent.c, 133: sendHTTPData() failed! (Response Code: 401)

Offline

 

#392 2010-12-17 04:19:17

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

Re: [REL] Automatic for funplug-0.5

The state file issue is an easy fix. Either correct the path and file name or create the file in the given path. You should have a statefile directive in your config file.

Some of the torrent site are overloaded these days and the issue could be at their end, at least for part of it. Although, I also feed from ezrss.it and have had no issues lately.

Last edited by FunFiler (2010-12-17 04:20:51)


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

Offline

 

#393 2010-12-18 04:51:44

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

Re: [REL] Automatic for funplug-0.5

Thanks a lot man!
I found my error, I'm ashame to say it, but it maybe can help other newby like me: I forgot the user:password.
I want to ask a new functionality if is not too much to as: Queue files.
Thanks again

Offline

 

#394 2010-12-18 12:43:39

pello_pepper
New member
Registered: 2010-12-18
Posts: 3

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

To answer your second question first: You can use whitespace in folder names, but I advise you to properly escape it (just in case, cause I didn't test it):

Code:

folder => /mnt/HD_a2/MOVIES/SERIES/The\ Big\ Bang\ Theory"

Transmission will not accept escaped Folder names, specify the path like this:

Code:

folder => "/mnt/HD_a2/MOVIES/SERIES/The Big Bang Theory"

Last edited by pello_pepper (2010-12-18 12:52:57)

Offline

 

#395 2010-12-18 12:45:16

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

Re: [REL] Automatic for funplug-0.5

You mean download queueing like some BitTorrent clients (e.g. uTorrent) do it?
Queueing is being developed for Transmission, although it's not really clear when it will be featured in a official release (I already use it and it works reasonably well).

Therefore I don't see any need for a similar implementation in Automatic.

Offline

 

#396 2010-12-18 17:56:30

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

Re: [REL] Automatic for funplug-0.5

Lol, you are right (wrong forum).
thanks pello_pepper.
Thank Kylek

Offline

 

#397 2010-12-19 16:32:47

pello_pepper
New member
Registered: 2010-12-18
Posts: 3

Re: [REL] Automatic for funplug-0.5

Hey KyleK,

I mad a little patch. It enables automatic to log to syslog (usefull for openwrt router) if -l syslog is specified and also the patch fixes a litte bug that made all log messages contain file and line.

Maybe you could include this in your next release.

EDIT: seems it is not possible to upload .patch files here

Get it here: http://skweez.net/~elm/syslog.patch

Last edited by pello_pepper (2010-12-19 16:37:44)

Offline

 

#398 2010-12-23 14:46:02

Daro
Member
Registered: 2010-12-23
Posts: 21

Re: [REL] Automatic for funplug-0.5

Hi,

i browsed through the whole thread but i didnt find solution for my problem. How can i filter this:

Code:

<title>Így jártam anyátokkal - 6x12 [HDTV-720p - Eng - CTU](stevent02)</title>

as you see i have problem with non english characters. I tried with unicode setting like \u00cd as "Í" but pcre doesnt support it.

Can someone help me how can i use the non english chars?

Last edited by Daro (2010-12-23 14:46:50)

Offline

 

#399 2010-12-23 17:38:20

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

Re: [REL] Automatic for funplug-0.5

You could wildcard them with "."?

filter = { pattern => "j.rtam.any.tokkal" }


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

Offline

 

#400 2010-12-23 18:00:33

Daro
Member
Registered: 2010-12-23
Posts: 21

Re: [REL] Automatic for funplug-0.5

FunFiler wrote:

You could wildcard them with "."?

filter = { pattern => "j.rtam.any.tokkal" }

Yes still not working. Looks like the xml parser cant understand it

This is a part from a verbose 4 log what doesnt look good

Code:

[init_regex] Regular expression: (?!.*Wgy jĂĄrtam anyĂĄtokkal - 6x01 [HDTV-Rip - Eng - LOL](aljasPOD)
[isRegExMatch] err=-1o match against: Ă

this is better

Code:

[init_regex] Regular expression: (?!.*Web).gy.j.rtam.any.tokkkal.*720p
[isRegExMatch] Text to match against: TĂśrtetĹk - 6x05 - Fore [DVDRip - Hun/Eng - HDTV](speed1211)
[isRegExMatch] err=-1

The both parts should look same, and in 1st case should be match...
As i see when the first character is not english then xml parser failed.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB