Closed GoogleCodeExporter closed 8 years ago
This can also be done from .rtorrent.rc
The original thread I read about it:
http://ubuntu-se.org/phpBB3/viewtopic.php?f=67&t=26376&start=80
Google is bad at translating it from swedish
The idea is to use on_finished = to execute "something" to unrar it.
Original comment by mikkr...@gmail.com
on 9 Oct 2009 at 2:18
yes, i'm aware of this, but i think most people want a simple right click unrar.
Original comment by Wonslung@gmail.com
on 9 Oct 2009 at 2:32
Absolutely, I was just talking about "until the plugin gets there" :-)
Original comment by mikkr...@gmail.com
on 10 Oct 2009 at 7:18
@mikkri31
Yeah, it sounds like a nice workaround, but I wouldn't want a "blanket" unrar, I
would want to be able to specify which torrents I want unrarred.
Original comment by TJHart85...@gmail.com
on 12 Oct 2009 at 2:42
Variants of realization:
1) Add call of unrar to torrent's list context menu. You will can run it
manually.
2) Add call of unrar to on_finished event, it will be called automatic.
What do you want?
Original comment by novik65
on 13 Oct 2009 at 9:19
you should be able to pick a torrent which is done from SOME menu and unrar it
to the folder it is in.
This would be the most basic function. Anything automatic should be an ADDED
function of the original
plugin. Most people who want this function want it for SPECIFIC torrents so
they can reseed the item as a no-
rar version.
Many private trackers allow you to reseed the SAME torrent if it's either rar
or non-rar (if the tracker has the
rar version, you can reseed non-rar version)
Original comment by Wonslung@gmail.com
on 13 Oct 2009 at 5:39
If this does get created, would it be possible to have a setting to "unrar once
download completed" Maybe even have it integrate into the RSS plugin as a
checkbox?
My apologies if I'm going way beyond the scope of what you'd like to do...just
throwing out what I would want in there & figure you can "catch" or implement
whatever you'd like.
No matter what, I appreciate all the hard work you've put into RUtorrent & all
the
help you've given me.
Also, my apologies to Wonslung for throwing my $.02 in on this. I don't know
the
etiquette in here, if it's cool for me to tack onto your initial request or if I
should make my own.....I'm going on the assumption that the dev would prefer to
see
everything related in one place, but if I'm wrong, let me know :-)
Original comment by TJHart85...@gmail.com
on 29 Oct 2009 at 3:09
no need to apologize. We would much rather you reply to a valid ticket than
open a new one about the same
thing.
Original comment by Wonslung@gmail.com
on 29 Oct 2009 at 3:12
My vote's for the automatic unrar.
Original comment by aprwilli...@gmail.com
on 8 Nov 2009 at 9:52
I agree with Wonslung that only some files (that you choose) should be unRARed.
Original comment by Bhav...@gmail.com
on 9 Nov 2009 at 2:54
Same here...I am a member of many sites that ONLY allow RARd torrents & I don't
always want to use the stuff I downloaded right away and it would be a massive
waste
of space to have it unrarred on the drive as well.
I don't know how hard it would be, but options for each? Blanket unrar
everything
downloaded & a right click menu that has "unrar" or "unrar after download
completed"
options?
Original comment by TJHart85...@gmail.com
on 9 Nov 2009 at 2:59
Another thing is for most movies I don't even waste my time unraring because
VLC will
open rars and play the videos.
Original comment by hlpimfal...@gmail.com
on 9 Nov 2009 at 4:02
also, if you have a remote seedbox, unrar is stupid UNLESS you are on a tracker
that allows you to reseed the
unrar'd version. This is the only reason to unrar on a remote server because
downloading split rar's via FTP is
WAY faster than single files.
Original comment by Wonslung@gmail.com
on 9 Nov 2009 at 7:04
I can imagine people on a remote server wanting to unrar the files first. Say
it's a
30 GB torrent (not likely I know, but possible with BR discs or just a couple
seasons
of a TV show)....Time to download the files is obviously not your first
concern, but
space on your hard drive might be.
My server is a local box though, so I'm just imagining a situation where people
might
have a legit use for this.
Original comment by TJHart85...@gmail.com
on 15 Nov 2009 at 5:48
either way, we need someone to write this.
Original comment by Wonslung@gmail.com
on 15 Nov 2009 at 6:05
I may be mistaken, but I don't believe on_finished will work for rtorrent
versions
0.8.5 and higher, you'd have to use something like this (from the swedish
ubuntu
link above):
system.method.set_key = event.download.finished,move_complete,"execute=mv,-
u,$d.get_base_path=,~/torrent/completed/;d.set_directory=~/torrent/completed/"
system.method.set_key =
event.download.finished,unpack_rar,"execute=/usr/local/bin/unpackrar.sh,$d.get_b
ase_p
ath=,$d.get_custom1="
where unpackrar.sh is a script that automatically unrars the file, such as:
#!/bin/bash
if [ "$2" != "" ]; then
yes no | nice -n 15 unrar x -r "$1/*.rar" "$2" >&- 2>&- &
fi
I believe the $d.get_custom1= refers to a specific destination path for certain
watch directories, such as:
schedule =
watch_directory_2,10,10,"load_start=/download/TV/*.torrent,d.set_directory=/down
load/
TV/,d.set_custom1=/archive/Series/"
Original comment by aprwilli...@gmail.com
on 25 Nov 2009 at 7:24
Will paste my settings in a bit , thanks to novi for originally posting the
foreign
site ;) + with some tinkering it works quite well at least for my purposes ,
watch
certain folders and label them such as TV/Series in rutorrent (i place the
torrent
files directly in watch dirs instead of using the add thru web interface) ,
unrar it
to my shared raids and have my wdtv live auto mounting the shared content on
boot ,
with some auto deleting upon certain ratio plugin (of the rar files) everything
works
pretty well and with rss feeds set up it's even more of a automated dream ;) .
Original comment by slas...@gmail.com
on 18 Dec 2009 at 6:06
in ubuntu/debian there is a package called unp, which is a perl script that will
basically uncompress anything you can uncompress in linux. Might be useful.
Original comment by hlpimfal...@gmail.com
on 30 Dec 2009 at 5:09
I agree both options have their merit. Personally my primary interest would the
ability
to goto the files listing on any torrent, select the .rar and tell it to
extract to
folder.
If the default extraction location option was customizable that would be a
bonus,
perhaps a setting where you could type '/home/usr/tv' or a blank setting
(default
setting) would be extract to existing folder.
Original comment by matthewk...@gmail.com
on 19 Jan 2010 at 1:23
>Many private trackers allow you to reseed the SAME torrent if it's either rar
or
non-rar (if the tracker has the rar version, you can reseed non-rar version)
1) I need the example of such torrent (with lesser data as possible).
2) What do you want to see as result of context menu command "unrar"? You cant
see
files from it output on interface, because these files is not a part of some
torrent.
Original comment by novik65
on 2 Feb 2010 at 10:24
i would imagine you would bring this menu up by right clicking on an actual
.rar file
within the FILES tab for manual use in which case it should give you a window
asking
where to save the output of unrar.
Some people also want an "automatic" unrar feature. The way THIS would work if
possible is, in files which had .rar files, it would unrar the contents on
completion
(maybe this would be set on a directory similar to autotools: for example, if a
file
is downloaded to /some/dir/in/path/unrar then auto-unrar would run on
completion on
any .rar files and dump contents into current directory. Any such plugin would
need
to be able to check directories recursively considering how most torrents will
be in
thier own dir.)
Personally, i think the most important aspect of this plugin would be the manual
unrar feature. You'd go to the file tab, right click the rar file and it would
unrar.
It might also be a good idea to have such a plugin capture STDIN, STDOUT, and
STDERR
and dump it into a file called error.log (and maybe have this be an option you
can
disable)
Original comment by Wonslung@gmail.com
on 2 Feb 2010 at 10:47
Thinking more about this:
If there was an "automatic" unrar function, it should probably be integrated
with
auto-tools. This would help prevent any problems like trying to extract an
incomplete file. Perhaps it could be run AFTER auto-move and be tunable.
Personally i think the manual unrar would be the most important but many people
who
ask me about this care about the automatic unrar as well. This type of function
seems like it would fit perfectly in with autotools, so if this was done, it
should
be done in this order:
manual unrar which would use the unrar binary for linux/freebsd, it would work
as i
described before (you'd go to files, then right click a rar file (or maybe even
a rar
piece) after selecting this, an "extract to location" menu would pop up, of
course
user would need read/write/execute to this location)
as far as providing the .torrent info i am not sure you understood what i meant
but i
could give you an example.
Some sites will allow you to download a file which is in one format and then
reupload
it in another. So if you downloaded the file as a dir full of split rar files
you
could extract it, then create a torrent with the unrarred file, then reupload
it to
the same site as -non-rar.
If you search Iptorrents you'll see this.
Original comment by Wonslung@gmail.com
on 2 Feb 2010 at 11:50
"Manual" version of plugin "unpack" added in r728
Original comment by novik65
on 5 Feb 2010 at 2:21
you are a god.
Original comment by Wonslung@gmail.com
on 5 Feb 2010 at 2:31
Truly a god!
Original comment by TJHart85...@gmail.com
on 5 Feb 2010 at 3:25
Wow awesome~!! Going to test it now.
Original comment by Bhav...@gmail.com
on 5 Feb 2010 at 11:02
I get this error when trying to 'unpack' a file;
Original comment by Bhav...@gmail.com
on 6 Feb 2010 at 2:19
Attachments:
Also. The torrent i am trying to unpack is named t1.76.rar .
Original comment by Bhav...@gmail.com
on 6 Feb 2010 at 2:20
is it a multi-part rar? if so did you select the multiple unrar selector?
also, make sure it's a bug and not a bad rar file. I've seen bad rar files
before
and it was always solved by getting the right rar file.
Original comment by Wonslung@gmail.com
on 6 Feb 2010 at 7:14
No it's just one small RAR file i packed myself to test the plugin. Are you
able to get
the plugin to work?
Original comment by Bhav...@gmail.com
on 7 Feb 2010 at 12:44
yes, it works flawlessly for me. I've been using it since it dropped on my
home nas
Original comment by Wonslung@gmail.com
on 7 Feb 2010 at 12:54
which os are you on? if it's debian, then you may have the problem that your
binary is
unrar-free which isn't as compatible as unrar-nonfree.
if you need a location for unrar-nonfree for debian let me know
Original comment by Wonslung@gmail.com
on 7 Feb 2010 at 12:56
How do I get this plugin?
When I follow directions here:
http://code.google.com/p/rutorrent/wiki/GetFromSVN
I am told that the plugin doesn't exist.
When I 'svn update' my rutorrent directory, I get 'At revision 732'.
When I click the link in novik's post, I see that it is in /branches/3.0 ... Do
I
need to checkout a different source than what is listed in the instructions:
http://code.google.com/p/rutorrent/wiki/GetFromSVN
?
Original comment by TJHart85...@gmail.com
on 7 Feb 2010 at 1:29
This plugin is ONLY for 3.0
in order to use it you must upgrade to 3.0, if you check the forums
(http://forums.rutorrent.org) i post a guide for how to upgrade to 3.0 with all
plugins. I also have a guide for how to set up 3.0 with multiple user
capabilities
in the same forum
Original comment by Wonslung@gmail.com
on 7 Feb 2010 at 1:54
I fixed the wiki (hope that's ok)
Original comment by Wonslung@gmail.com
on 7 Feb 2010 at 2:03
Thanks! I followed the instructions on your site & everything is good now!
Plugin works great...quick suggestion though, would it be possible to make it
choose
the directory that the .rar files are currently in as the default unpack
directory?
Original comment by TJHart85...@gmail.com
on 7 Feb 2010 at 3:59
I think this is a valid question. one question, do you have the _getdir plugin?
Also, if i don't put anything in the dir window, it unrars to the current dir,
for instance, i
just tested a file in /mnt/dump/torrents/Wonslung/sometvshow/someshow.rar and
it
unrared to /mnt/dump/torrents/Wonslung/someshow/someshow.mkv
Original comment by Wonslung@gmail.com
on 7 Feb 2010 at 4:31
I do have the _getdir plugin.
I didn't realize that if you left it blank, it would use the current directory.
It would have been more intuitive if it would have the data prefilled, but then
people who prefer to always unrar it to a certain directory would be upset, so
leaving it blank is 100% ok with me :-)
Thanks for the plugin Novik & THANK YOU for all the help Wonslung!
Original comment by TJHart85...@gmail.com
on 7 Feb 2010 at 4:57
It should also be noted that this plugin isn't done. Novik is working on one
major
update to it which would add an automatic unrar service. I'm not 100% sure how
it will
work but i would guess it would work somewhat like the auto-tools plugins.
Original comment by Wonslung@gmail.com
on 7 Feb 2010 at 5:52
>No it's just one small RAR file i packed myself to test the plugin. Are you
able to
get the plugin to work?
Attach it here, please. And torrent file too.
Original comment by novik65
on 7 Feb 2010 at 9:38
>Attach it here, please. And torrent file too.
Doesn't need, already fixed.
Autounpacking added in r742.
Original comment by novik65
on 11 Feb 2010 at 10:47
awesome
Original comment by Wonslung@gmail.com
on 12 Feb 2010 at 10:42
I was just checking out the new "automatic" setup. It's nice, but it would be
much
nicer if you could make it work somewhat like auto-tools.
Basically, you pick a dir, let's say it's /home/wonslung/download/unrar/
let's say your torrent download dir is /home/wonslung/download/
now you've got a dir inside of that which, if you set a torrent to download to,
it
will be auto-unpacked. Then everything else wouldn't be auto-unpacked.
See what i mean? This is a minor issue, but That is how i originally
envisioned it.
It's still wonderful as it is now, so please don't take this as a criticism
Original comment by Wonslung@gmail.com
on 13 Feb 2010 at 12:28
I concur with Wonslung, that type of functionality would be most excellent.
Another solution that you may like would be to have it based on labels (with
autotools
- labels, this could have effectively the same result as what Wonslung
requested). We
pick a label and the unpack plugin will unpack everything with that label.
Thanks for the awesome plugins though, even as they are now, they're great!
Original comment by TJHart85...@gmail.com
on 13 Feb 2010 at 1:26
Well, if you look at some of my original suggestions, i say that the automatic
portion of the plugin should be part of auto-tools or work LIKE auto-tools.
This
label idea would be most excellent.
Either way, it should be something that is SOMEHOW tunable. I'm not 100% sure
i want
to use a label for all my unrared stuff, though if this proves to be an EASIER
solution, then it would be fine.
Basically, i think you should be able to set a dir which, if any torrent is
downloaded to (or as part of the hierarchy ) would be auto-magically unrared on
completion.
Original comment by Wonslung@gmail.com
on 13 Feb 2010 at 1:37
Original issue reported on code.google.com by
Wonslung@gmail.com
on 4 Oct 2009 at 12:58