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.

#51 2008-09-18 15:02:05

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: [REL] Automatic for funplug-0.5

Opperpanter wrote:

hmm ok, didn't know that, BUT a restart will sometimes indeed cause you to loose some good connections and stuff..

I just wrote a script to handle a watch folder myself.

If interest is there, I can post it here on the forum.

As requested, I made two simple scripts.

/ffp/scripts/tranmissionwatcher.sh

Code:

#!/ffp/bin/sh

WAIT_SECONDS=300
WATCH_DIR=/usb/transmission/torrent

while true 
do
    for file in $WATCH_DIR/*.torrent
    do
        echo $file
        if [ "$file" != "$WATCH_DIR/*.torrent" ]
        then
            echo adding "$file"
            echo [`date`] "$file" added to queue. >> /usb/transmission/log/transmissionwatcher.log
            transmission-remote -a "$file" >> /usb/transmission/log/transmissionwatcher.log
            mv "$file" "$file".queued
                fi
        sleep $WAIT_SECONDS
    done
done

I start this script at reboot by using

/ffp/start/starttorrentwatch.sh (make sure it is chmod a+x to survive reboot)

Code:

#!/ffp/bin/sh

cd /ffp/scripts
./transmissionwatcher.sh >> /usb/tmp/transmissionwatcher.log &

It checks every 5 minutes (300s) for new torrent files to add. If any files found, they're added to transmission without restart. The torrent files are renamed to .torrent.queued so they're skipped the next time.

I build this script based on somebody else's, I am not sure who/where, but credits go the original author.

Offline

 

#52 2008-09-19 15:05:50

lekeur
Member
Registered: 2008-09-09
Posts: 13

Re: [REL] Automatic for funplug-0.5

Thank you very much.

I have a problem with this script : I have ffp0.5. So I edit your script with notepad2 like this :

Code:

#!/ffp/bin/sh

WAIT_SECONDS=300
WATCH_DIR=/mnt/HD_a2/temp

while true 
do
    for file in $WATCH_DIR/*.torrent
    do
        echo $file
        if [ "$file" != "$WATCH_DIR/*.torrent" ]
        then
            echo adding "$file"
            echo [`date`] "$file" added to queue. >> /mnt/HD_a2/.transmission-daemon/transmissionwatcher.log
            transmission-remote -a "$file" >> /mnt/HD_a2/.transmission-daemon/transmissionwatcher.log
            mv "$file" "$file".queued
                fi
        sleep $WAIT_SECONDS
    done
done

Then I chmod a+x tranmissionwatcher.sh

I put tranmissionwatcher.sh to /mnt/HD_a2/ffp/start .

I telnet : "/mnt/HD_a2/ffp/start/tranmissionwatcher.sh start" but it doesn't work. It returns :

Code:

/ffp/bin/sh: /mnt/HD_a2/ffp/start/transmissionwatcher.sh: not found

How can I resolve it. ?
Sorry but I'm totally noob with linux.


Thank you in advance.

Last edited by lekeur (2008-09-19 19:19:47)

Offline

 

#53 2008-09-23 21:53:45

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

Re: [REL] Automatic for funplug-0.5

Sorry guys for my abstinence, but I switched the ISP and that apparently takes 2 weeks. *grml*
I'm back online now, and will be updating Automatic shortly. I already found a rather serious bug some of you might already have run into.
When the download history gets full, Automatic crashes hmm
It's already fixed and currently in testing, if it works well a release shall follow tomorrow.

I've also made first tests with a watch folder implementation which looks very good, it just needs some kinks here and there.

I'll keep you guys posted!


PS: For those who tried to download while the server was offline, you should be able to download the binaries again.

Offline

 

#54 2008-09-23 23:24:09

lekeur
Member
Registered: 2008-09-09
Posts: 13

Re: [REL] Automatic for funplug-0.5

Thank you in advance ! big_smile

Offline

 

#55 2008-09-24 16:49:13

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: [REL] Automatic for funplug-0.5

lekeur wrote:

I telnet : "/mnt/HD_a2/ffp/start/tranmissionwatcher.sh start" but it doesn't work. It returns :

Code:

/ffp/bin/sh: /mnt/HD_a2/ffp/start/transmissionwatcher.sh: not found

How can I resolve it. ?
Sorry but I'm totally noob with linux.


Thank you in advance.

If you want to run it by hand, just type

Code:

sh /mnt/HD_a2/ffp/start/transmissionwatcher.sh &

If you follow my exact instructions in previous post it works fine.

Last edited by Opperpanter (2008-09-24 16:50:34)

Offline

 

#56 2008-09-24 22:43:40

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

Re: [REL] Automatic for funplug-0.5

That hideous segfault bug that caused a silent crash is now fixed in the new version 0.2.1.
You should update to this version for stability reasons ASAP.

Links in the first post have been updated.

Please let me know if any problems arise.

Offline

 

#57 2008-10-03 18:52:04

castor
Member
Registered: 2007-12-18
Posts: 5

Re: [REL] Automatic for funplug-0.5

thanks for your work!

unfortunately the link to the source code doesn't work. could you fix it please.

Offline

 

#58 2008-10-03 22:17:14

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

Re: [REL] Automatic for funplug-0.5

I'm currently not at home, but I'll fix the download link for the sources (and update them as well to the newest version) as soon as I'm back. Sorry for the inconvenience.

Offline

 

#59 2008-10-07 20:14:58

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

Re: [REL] Automatic for funplug-0.5

I finally found the time to update the source package.
So, anyone feeling inclined to take a look at bicker/laugh/whatever, go ahead smile

I'm always open for suggestions, and would really appreciate it if you find a bug (or two).

Offline

 

#60 2008-10-10 01:56:58

Muppet
Member
Registered: 2008-05-21
Posts: 44

Re: [REL] Automatic for funplug-0.5

Quick question before installing.. can this read feeds stored on a https connection?

Offline

 

#61 2008-10-10 14:26:06

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

Re: [REL] Automatic for funplug-0.5

Hm, good question.
I use libcurl to do the HTTP stuff, and curl does support HTTPS. But it requires libssl, which Automatic currently is not linked against, so the current version definitely can't do it.

Do you know of a feed I can play around with? (preferrably a public one)

Offline

 

#62 2008-10-11 06:22:18

Muppet
Member
Registered: 2008-05-21
Posts: 44

Re: [REL] Automatic for funplug-0.5

Unfortunately the one I have in mind is a private tracker that I cannot supply a link for.

Offline

 

#63 2008-10-29 10:38:08

jjangg96
New member
Registered: 2008-10-29
Posts: 1

Re: [REL] Automatic for funplug-0.5

some private feed doesn't have "enclosure" so
show "Is this really a torrent feed?" infinitly
how do i do?

Offline

 

#64 2008-10-29 10:59:59

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

Re: [REL] Automatic for funplug-0.5

This is basically just a debug message I put in to see if I ever encounter feeds that do not mark their items as "application/x-bittorrent".
It should work properly nonetheless (i.e. torrents get added to Transmission regardless of the message)

I will bump up the message type for this in the next release so users won't be bothered with it anymore.

Offline

 

#65 2008-10-29 11:38:19

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

Re: [REL] Automatic for funplug-0.5

Muppet wrote:

Unfortunately the one I have in mind is a private tracker that I cannot supply a link for.

Sorry for the late reply, I've been rather busy lately.

That said, I actually did get to test whether Automatic can deal with HTTPS feeds, and to my surprise, it can.
That's because libcurl is compiled with openssl linkage, so as long as that library is present on your system (it should, Transmission requires it), you can add HTTPS feeds to Automatic.

Please note that Automatic cannot handle authentication, however. So if your feed requires a password of some kind, this is not available (yet). I've been planning to add authentication/cookie handling, but couldn't think of a nice way to do it yet.

Offline

 

#66 2008-11-08 20:12:44

msirwilson
New member
Registered: 2008-11-08
Posts: 3

Re: [REL] Automatic for funplug-0.5

Can someone help me with a regex entry that avoids 720p shows?

Offline

 

#67 2008-11-09 00:22:47

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

Re: [REL] Automatic for funplug-0.5

Regular expressions (at least the POSIX version) is great at matching strings, but not at all usable to NOT match something.

So all you can do is try to find some difference in the comparison string that is present for non-720p releases but not for 720p releases. This depends on the feed you're using. If you let me know what feed you're using, or what each feed entry looks like in XML, I can try to create a regular expression that does not include specific characteristics.

Offline

 

#68 2008-11-09 19:41:13

msirwilson
New member
Registered: 2008-11-08
Posts: 3

Re: [REL] Automatic for funplug-0.5

Thanks for your offer to help!
I am using tvrss.net/feed/eztv
I want to download Heroes and Prison Break but not the 720P releases.

edit:
So what I want are all xvid files. Will "heroes.*xvid" work?

Last edited by msirwilson (2008-11-09 19:54:33)

Offline

 

#69 2008-11-09 21:48:56

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

Re: [REL] Automatic for funplug-0.5

I'm afraid not. The eztv feed doesn't list the file name of each episode, but rather a "readable" string.

You can use this:

Code:

"Heroes.*\[HDTV"
"Prison Break.*\[HDTV"

But please note that this will most likely only work for this feed.

Offline

 

#70 2008-11-10 00:38:12

Muppet
Member
Registered: 2008-05-21
Posts: 44

Re: [REL] Automatic for funplug-0.5

You can negatively match using perl regex syntax, but like Kyle said I don't know if it works in the posix version.

e.g.

Code:

Heroes.*(?!720p)

may work if you give it a try.

Other than that, why don't you just use the search feature on tvrss.net to filter out the 720p releases from the feed? Click on the heroes show name then on the screen that comes up, set the quality box to "HDTV", check exact and voila. You can use the "Search-based RSS feed" link to get a feed for just that show with the 720p filtered out. eg: I did it here

Offline

 

#71 2008-11-10 19:37:46

msirwilson
New member
Registered: 2008-11-08
Posts: 3

Re: [REL] Automatic for funplug-0.5

Thanks for the help. How do you keep the search based feed from downloading every episode?

Offline

 

#72 2008-11-10 19:57:18

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

Re: [REL] Automatic for funplug-0.5

PODIX regex doesn't support negative lookahead/lookback, so the above syntax won't work, unfortunately.

Offline

 

#73 2008-11-11 01:00:43

Muppet
Member
Registered: 2008-05-21
Posts: 44

Re: [REL] Automatic for funplug-0.5

I guess you would have to set a starting episode in your regular expression to filter out all the old episodes.

Say you wanted to start from 3x6 (and yes you're getting into complicated territory here):

Code:

Heroes.*(3x([6-9]|[1-9][0-9])|[4-9]x[0-9]?[0-9]).*

That should cover you from 3x6 to 9x99. I'll leave it with you to work it out if they run to a 10th season!

I highly recommend http://www.regextester.com/ to test this sort of thing out

Offline

 

#74 2008-11-11 17:05:13

trepex
Member
Registered: 2008-11-09
Posts: 12

Re: [REL] Automatic for funplug-0.5

How would I grab one like this, and exclude the 720p version?

I want ones like this:
Heroes - 3x08 - Villians

And I want to exclude ones like this:
Heroes - 3x08 - Villians (720p .mkv)

Offline

 

#75 2008-11-11 19:17:19

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

Re: [REL] Automatic for funplug-0.5

As mentioned above, excluding certain kinds of items is currently very difficult and only possible with rather complex regular expressions. I'm currently testing a new regex engine though, which does support exclusion. With that it will be rather simple.

I'll keep you guys posted.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB