[19. June 2013] Soundcloud® available now | [7. June 2013] Youporn available now | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
12-31-2011, 03:40 PM
Post: #46
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(12-22-2011 09:51 PM)Azatoth Wrote:  
(12-21-2011 03:31 AM)melon Wrote:  Have you installed 'local'? Plaese post 'torrentexpander_errors.txt' here in the forum. You will find it in /share/Apps/TorrentExpander/bin/

yes, local v0.1.8-nmt1 is installed. And there is no file 'torrentexpander_errors.txt' in that location.

latest version of torrentexpander is installed, but still not working.

At least, I now get a .setupresult file:

Information: transmission is installed
Information: opkg is installed
Information: internet connection avaiable
Information: updating opkg
./setup.sh: line 187: opkg: not found
Information: unzip is not installed
Installing unzip
./setup.sh: line 187: opkg: not found
Information: unrar is not installed
Installing unrar
./setup.sh: line 187: opkg: not found
Information: wget is not installed
Installing wget
./setup.sh: line 187: opkg: not found
Information: busybox is not installed
Installing busybox
./setup.sh: line 187: opkg: not found
./setup.sh: line 187: opkg: not found
Error: torrentexpander setup aborted
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Azatoth for this post
12-31-2011, 09:19 PM
Post: #47
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Lukjod,
The issue you're experiencing is actually amazing news.

Can you try this command on your NMT :
find -L / -maxdepth 1 > /dev/null 2>&1 && if [ "$?" == "0" ]; then echo "find_l_available"; fi
This line was used by torrentexpander to detect if find -L is supported on your platform. With the -L option, find can search for symlinks
Based on your logs, this line failed inexplicably and I have no idea why

After some research, I've found out that the -follow option does almost the same thing and is supported by most platforms.
While replacing all find -L by find -follow , I found out a few errors in my code that would explain some of the issues a few users experienced.
I've just released a new SVN build that should solve your issue

Regarding software and filetypes not included in your settings.ini file, torrentexpander will expand / copy or move them to your destination and stop right after.
No renaming or post process will be done afterwards.

Thanks again for your feedback
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to toitoinou for this post
01-01-2012, 11:33 AM
Post: #48
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
@ Toitoinou

Thanks, now all is running fine,
Yours command find -L / -maxdepth 1 > /dev/null 2>&1 && if [ "$?" == "0" ]; then echo "find_l_available"; fi give not result as You have change svn.
Finally torrentexpander works as expectedSmile
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to lukjod for this post
01-01-2012, 12:39 PM (This post was last modified: 01-01-2012 02:39 PM by toitoinou.)
Post: #49
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
This is great !
Thank you for pointing me in the right direction.

I'm planning to add a new feature : stop and remove the torrent in transmission or rtorrent when in destructive mode
Any suggestions on how to do it ?
This is a ticket I've been postponing for too long
http://code.google.com/p/torrentexpander...etail?id=6

EDIT : I've added torrent removal from transmission but I cannot try it on my setup. If you're willing to try it, just download the latest SVN release here : http://code.google.com/p/torrentexpander...owse/trunk


Thanks again

Toitoinou aka addictedtoscreens
Find all posts by this user
Add Thank You Quote this message in a reply
01-01-2012, 02:23 PM
Post: #50
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
@Toitoinou

Another problem is that after completion of download transmission is not starting torrentexpander. My guess is that mayby its so0mething with "" marks in the line
Code:
"script-torrent-done-filename": "/share/Apps/TorrentExpander/bin/torrentexpander.sh $TR_TORRENT_DIR/$TR_TORRENT_NAME/"
well I don't know how format it right, this will probably not work,
Code:
"script-torrent-done-filename": "/share/Apps/TorrentExpander/bin/torrentexpander.sh "$TR_TORRENT_DIR/$TR_TORRENT_NAME/""

Mayby someone with better linux script knowledge will work that out
Find all posts by this user
Add Thank You Quote this message in a reply
01-01-2012, 02:38 PM
Post: #51
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(12-31-2011 03:40 PM)Azatoth Wrote:  
(12-22-2011 09:51 PM)Azatoth Wrote:  
(12-21-2011 03:31 AM)melon Wrote:  Have you installed 'local'? Plaese post 'torrentexpander_errors.txt' here in the forum. You will find it in /share/Apps/TorrentExpander/bin/

yes, local v0.1.8-nmt1 is installed. And there is no file 'torrentexpander_errors.txt' in that location.

latest version of torrentexpander is installed, but still not working.

At least, I now get a .setupresult file:

Information: transmission is installed
Information: opkg is installed
Information: internet connection avaiable
Information: updating opkg
./setup.sh: line 187: opkg: not found
Information: unzip is not installed
Installing unzip
./setup.sh: line 187: opkg: not found
Information: unrar is not installed
Installing unrar
./setup.sh: line 187: opkg: not found
Information: wget is not installed
Installing wget
./setup.sh: line 187: opkg: not found
Information: busybox is not installed
Installing busybox
./setup.sh: line 187: opkg: not found
./setup.sh: line 187: opkg: not found
Error: torrentexpander setup aborted

Please could you do this command and paste here the result?

Quote:echo $PATH
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Jannyy for this post
01-01-2012, 02:45 PM
Post: #52
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Hi again lukjod,

To my knowledge, the script works with either of these lines
"script-torrent-done-filename": "/share/Apps/TorrentExpander/bin/torrentexpander.sh $TR_TORRENT_DIR/$TR_TORRENT_NAME/"
or
"script-torrent-done-filename": "/share/Apps/TorrentExpander/bin/torrentexpander.sh"

I've noticed that users have generally more luck with this line on recent builds of transmission and I have no idea why
"script-torrent-done-filename": "/share/Apps/TorrentExpander/bin/torrentexpander.sh"

Maybe DathRarhek could help us make sense of all that
Find all posts by this user
Add Thank You Quote this message in a reply
01-01-2012, 08:14 PM
Post: #53
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Hi Toitoinou
My transmission didn't start last svn script by using line in settings.json
Code:
"script-torrent-done-filename": "/share/Apps/TorrentExpander/bin/torrentexpander.sh"
Now will try revert backtolast version and will download again via transmission.
Find all posts by this user
Add Thank You Quote this message in a reply
01-01-2012, 08:22 PM
Post: #54
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Hi Lukjod
Please make sure you turn off transmission before you edit its settings.json
Also don't forget to chmod +x the SVN build you downloaded.

The two latest builds should only work better than the previous ones. I don't see any reason why they wouldn't work with transmission if the previous ones worked.

Toitoinou aka addictedtoscreens
Find all posts by this user
Add Thank You Quote this message in a reply
01-01-2012, 11:09 PM
Post: #55
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Quote:Please could you do this command and paste here the result?

Quote:echo $PATH

/opt/sybhttpd/localhost.drives/HARD_DISK # echo $PATH
/share/Apps/AppInit:/usr/bin:/bin:/usr/sbin:/sbin
Find all posts by this user
Add Thank You Quote this message in a reply
01-02-2012, 12:13 AM
Post: #56
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Problem found! I'm working!
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Jannyy for this post
01-02-2012, 12:24 AM
Post: #57
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(01-01-2012 08:22 PM)toitoinou Wrote:  Hi Lukjod
Please make sure you turn off transmission before you edit its settings.json
Also don't forget to chmod +x the SVN build you downloaded.

The two latest builds should only work better than the previous ones. I don't see any reason why they wouldn't work with transmission if the previous ones worked.

Toitoinou aka addictedtoscreens

ok, my problem was not making chmod command
Now will try again
thx for help
rgds
Lukasz
Find all posts by this user
Add Thank You Quote this message in a reply
01-02-2012, 07:03 AM (This post was last modified: 01-02-2012 07:04 AM by toitoinou.)
Post: #58
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Azatoth, Jannyy,
I think I found a way to solve this : we backup the user's $PATH variable and we add the missing paths to it.
Once the script is done, we restore the user's $PATH value

Here's what it would look like

Quote:# SCRIPT START
PATH_BACKUP="$PATH"
for test_path in $(echo -e "/usr/local/sbin\n/usr/local/bin\n/usr/sbin\n/usr/bin\n/sbin\n/bin\n/usr/games\n/usr/bin\n/bin\n/usr/sbin\n/sbin\n/usr/local/bin\n/usr/X11/bin\n/Applications\n/opt/syb/sigma/bdj/jvm/bin\n/usr/bin/X11\n/opt/syb/app/bin\n/opt/syb/app/sbin\n/opt/syb/sigma/bin\n/nmt/apps"); do
if [[ -d "$test_path" && "$PATH" != *$test_path* ]]; then PATH="$PATH:$test_path"; fi;
done
export PATH="$PATH"
...
# Rest of the script
...
export PATH="$PATH_BACKUP"
# SCRIPT END


Toitoinou aka Addictedtoscreens
Find all posts by this user
Add Thank You Quote this message in a reply
01-02-2012, 08:54 AM
Post: #59
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Can't wait for the new release. Big Grin

PCH-A-210 2TB
Find all posts by this user
Add Thank You Quote this message in a reply
01-02-2012, 09:14 AM (This post was last modified: 01-02-2012 02:50 PM by lukjod.)
Post: #60
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
@ Toitoinou

all is working fine, torrent was stopped and deleted, name was properly changed and processed.
One more request before updating nmj database I put 1 line to download subs. is this possible to take from torrentexpander info about changed transmission folder name and download subs just for it as now I scan whole /share/Video/Movies directory
Code:
#!/bin/sh

# Download PL subtitles and convert them to subrip .srt
/share/napi/napi.sh -s -f subrip -l /share/Video/napi.log /share/Video/Movies/*/*

# This script can be executed to update NMJ database.
if [ "$(pgrep scannerx)" == "" ]; then
    echo "Start updating NMJ"
    wget --delete-after "http://localhost:8008/metadata_database?arg0=scanner_start&arg1=SATA_DISK/nmj_database/media.db&arg2=background&arg3=" >/dev/null 2>&1
else
    echo "Update already started"
fi
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  nzbget does not download twentefan 1 125 06-18-2013 12:49 PM
Last Post: chris57
  Automatic RSS Torrent downloader Sulkin 16 813 06-08-2013 10:36 PM
Last Post: jhmiller
  sickbeard and download folder help! naboull1 1 484 05-11-2013 06:41 PM
Last Post: naboull1
  Transmission. How to change download paths to other HDD connected to A300 ? djhifi 0 506 05-07-2013 01:05 AM
Last Post: djhifi
  Download to NAS or other networked storage. kerberosvx 1 542 04-09-2013 01:24 PM
Last Post: chris57
  NZBGet download x pars instead of one/all/none shazada 0 579 04-07-2013 03:46 PM
Last Post: shazada
  Single download at a time ? divine 1 493 03-28-2013 08:44 PM
Last Post: Willem53
  [nzbget] NZBget 0.7.0 download and discussion Ger Teunis 492 225,326 01-25-2013 10:02 AM
Last Post: Peige
  RSS feed auto download and start torrents votepsi 2 874 01-22-2013 05:47 AM
Last Post: ItsPopcornTime
  A400 NMT Apps and Torrent Download destination th14 6 1,572 01-06-2013 08:14 AM
Last Post: chris57

Forum Jump: