bohemtucsok / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

RSS "Save As" path problems #571

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Auto or manually add torrent from RSS feed.
2. Choose label and/or "Save As" path
3. When the torrent-download completes, the / in the path (provided manually 
and/or by the label) changes to %20F — adding everything before the filename 
to it, and moving it in my home directory.

What is the expected output? What do you see instead?
I think it's pretty obvious, I don't want it to fuck up the file path.

What environment are you using?
1. My ruTorrent version is 3.2
2. My rTorrent version is 0.8.6
3. I use Apache 2.2.16 on Ubuntu 10.10
4. I use Chrome 10 on Mac OS X 10.6.7

Original issue reported on code.google.com by sveinn.d...@gmail.com on 20 Apr 2011 at 9:42

GoogleCodeExporter commented 8 years ago
1) Update to svn version.
2) In RSS plugin label hasn't relation to torrent's path. What you talk about?

Original comment by novik65 on 20 Apr 2011 at 1:20

GoogleCodeExporter commented 8 years ago
Unless the SVN-version is newer than the laters release on this website... I 
have the newest version.

I thought the labels had something to do with the file-path, but that was just 
because I had the config add a label based on the path of the folder I added 
the torrent file to (using watch-folders).

Anyway, it doesn't work to set the path the RSS plugin should download to, 
since it replaces the / to %20F
Let's say it grabs the latest 30 Rock from the feed, and when it completes the 
download, the file should be moved to /downloads/videos/tv_shows/filename.avi 
— but instead it ends up in ~/downloads%20Fvideos%20Ftv_shows%20Ffilename.avi

Original comment by sveinn.d...@gmail.com on 20 Apr 2011 at 2:00

GoogleCodeExporter commented 8 years ago
>but that was just because I had the config add a label based on the path of 
the folder I added the torrent file to (using watch-folders)

How you do that?

Original comment by novik65 on 20 Apr 2011 at 7:21

GoogleCodeExporter commented 8 years ago
This is how I set it up

#######################################
# Watch directories
#######################################

schedule = 
watch_directory_1,10,10,"load_start=/downloads/apps/ios/*.torrent,d.set_custom1=
/downloads/apps/ios,d.delete_tied="
schedule = 
watch_directory_2,10,10,"load_start=/downloads/apps/mac/*.torrent,d.set_custom1=
/downloads/apps/mac,d.delete_tied="
schedule = 
watch_directory_3,10,10,"load_start=/downloads/apps/other/*.torrent,d.set_custom
1=/downloads/other/mac,d.delete_tied="
schedule = 
watch_directory_4,10,10,"load_start=/downloads/apps/win/*.torrent,d.set_custom1=
/downloads/apps/win,d.delete_tied="

schedule = 
watch_directory_5,10,10,"load_start=/downloads/games/ios/*.torrent,d.set_custom1
=/downloads/games/ios,d.delete_tied="
schedule = 
watch_directory_6,10,10,"load_start=/downloads/games/mac/*.torrent,d.set_custom1
=/downloads/games/mac,d.delete_tied="
schedule = 
watch_directory_7,10,10,"load_start=/downloads/games/ps3/*.torrent,d.set_custom1
=/downloads/games/ps3,d.delete_tied="
schedule = 
watch_directory_8,10,10,"load_start=/downloads/games/wii/*.torrent,d.set_custom1
=/downloads/games/wii,d.delete_tied="
schedule = 
watch_directory_9,10,10,"load_start=/downloads/games/win/*.torrent,d.set_custom1
=/downloads/games/win,d.delete_tied="

schedule = 
watch_directory_10,10,10,"load_start=/downloads/music/dubstep/*.torrent,d.set_cu
stom1=/downloads/music/dubstep,d.delete_tied="
schedule = 
watch_directory_11,10,10,"load_start=/downloads/music/electronic/*.torrent,d.set
_custom1=/downloads/music/electronic,d.delete_tied="
schedule = 
watch_directory_12,10,10,"load_start=/downloads/music/hiphop/*.torrent,d.set_cus
tom1=/downloads/music/hiphop,d.delete_tied="
schedule = 
watch_directory_13,10,10,"load_start=/downloads/music/house/*.torrent,d.set_cust
om1=/downloads/music/house,d.delete_tied="
schedule = 
watch_directory_14,10,10,"load_start=/downloads/music/indie/*.torrent,d.set_cust
om1=/downloads/music/indie,d.delete_tied="
schedule = 
watch_directory_15,10,10,"load_start=/downloads/music/other/*.torrent,d.set_cust
om1=/downloads/music/other,d.delete_tied="
schedule = 
watch_directory_16,10,10,"load_start=/downloads/music/techno/*.torrent,d.set_cus
tom1=/downloads/music/techno,d.delete_tied="

schedule = 
watch_directory_17,10,10,"load_start=/downloads/other/*.torrent,d.set_custom1=/d
ownloads/other,d.delete_tied="
schedule = 
watch_directory_17,10,10,"load_start=/downloads/other/audiobooks/*.torrent,d.set
_custom1=/downloads/other/audiobooks,d.delete_tied="
schedule = 
watch_directory_18,10,10,"load_start=/downloads/other/books/*.torrent,d.set_cust
om1=/downloads/other/books,d.delete_tied="
schedule = 
watch_directory_19,10,10,"load_start=/downloads/other/comics/*.torrent,d.set_cus
tom1=/downloads/other/comics,d.delete_tied="
schedule = 
watch_directory_20,10,10,"load_start=/downloads/other/fonts/*.torrent,d.set_cust
om1=/downloads/other/fonts,d.delete_tied="

schedule = 
watch_directory_21,10,10,"load_start=/downloads/videos/anime/*.torrent,d.set_cus
tom1=/downloads/videos/anime,d.delete_tied="
schedule = 
watch_directory_22,10,10,"load_start=/downloads/videos/documentaries/*.torrent,d
.set_custom1=/downloads/videos/documentaries,d.delete_tied="
schedule = 
watch_directory_23,10,10,"load_start=/downloads/videos/hd_movies/*.torrent,d.set
_custom1=/downloads/videos/hd_movies,d.delete_tied="
schedule = 
watch_directory_24,10,10,"load_start=/downloads/videos/movies/*.torrent,d.set_cu
stom1=/downloads/videos/movies,d.delete_tied="
schedule = 
watch_directory_25,10,10,"load_start=/downloads/videos/other/*.torrent,d.set_cus
tom1=/downloads/videos/other,d.delete_tied="
schedule = 
watch_directory_26,10,10,"load_start=/downloads/videos/tv_series/*.torrent,d.set
_custom1=/downloads/videos/tv_series,d.delete_tied="
schedule = 
watch_directory_27,10,10,"load_start=/downloads/videos/tv_shows/*.torrent,d.set_
custom1=/downloads/videos/tv_shows,d.delete_tied="

# on_finished = move_complete,"d.set_directory=$d.get_custom1= 
;execute=mv,-u,$d.get_base_path=,$d.get_custom1="
# Equivalent on_finished for rtorrent > 0.8.4
system.method.set_key = 
event.download.finished,move_complete,"d.set_directory=$d.get_custom1= 
;execute=mv,-u,$d.get_base_path=,$d.get_custom1="

Original comment by sveinn.d...@gmail.com on 20 Apr 2011 at 7:27

GoogleCodeExporter commented 8 years ago
Your code is bad. d.get_custom1 can't contain raw label. Label must be encoded. 
See php functions rawurlencode/rawurldecode for details.

Original comment by novik65 on 20 Apr 2011 at 8:06

GoogleCodeExporter commented 8 years ago
Thanks for the help!

I'm not a PHP programmer, so reading on PHP functions doesn't help me much — 
and I don't understand how it's related to the rTorrent config.

So, are you basically saying a "/" in the label is bad? Is there a conflict 
with my config (move on complete) and the ruTorrent RSS plugin?
What's a "raw label" and "encoded label"? Can't find anything on it :/
Is it possible to set up the watch-folders differently? (move on complete)

Original comment by sveinn.d...@gmail.com on 26 Apr 2011 at 10:49

GoogleCodeExporter commented 8 years ago
Yet once.
1) ruTorrent use custom1 fo store torrent's label.
2) ruTorrent store these labels in encoded form. Read this - 
http://ru.php.net/manual/en/function.rawurlencode.php header 'return values'.
3) As result, custom1 can't contain chars like '/'. If this happens - ruTorrent 
may try to fix this.

>Is it possible to set up the watch-folders differently? (move on complete)

Use named customs instead custom1 in your rtorrent.rc.
d.set_custom=name,value
d.get_custom=name

Or encode custom1 value before setting and decode it after getting.

>I'm not a PHP programmer, so reading on PHP functions doesn't help me

I'm not native englishman, so writing a large texts on english is a difficulty 
for me. I think, more difficulty than to you to read one page of the 
description of function 'rawurlencode'.

Original comment by novik65 on 26 Apr 2011 at 2:12

GoogleCodeExporter commented 8 years ago
I'm having the same issue.  Any solution?

Original comment by seedwatc...@gmail.com on 9 Sep 2011 at 9:52

GoogleCodeExporter commented 8 years ago
Ome ruTorrent version, some web-server etc? Really? 
Create a new issue with full set of info.

Original comment by novik65 on 10 Sep 2011 at 8:09