[19. April 2013] A-400 Advanced Network Setup now available | [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 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

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-26-2011, 11:26 AM (This post was last modified: 12-26-2011 11:27 AM by bassie112.)
Post: #31
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Quote:Are you using windows & putty tools? If yes, you could try to install busybox from CSI, than try again.
Busybox was installed. I'm now using Putty as before I was using CMD (as I said, I'm new to this stuff Wink).

I tried /share/Apps/TorrentExpander/bin/torrentexpander.sh and navigated to a torrent. The I get the following:
Code:
Your Unrar path is incorrect or permissions are incorrect please edit your torrentexpander_settings.ini file or edit your permissions

There's something wrong with your settings. Please review them now.
Find all posts by this user
Add Thank You Quote this message in a reply
12-26-2011, 05:51 PM
Post: #32
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(12-25-2011 10:12 PM)toitoinou Wrote:  Jannyy, I tried to "su nmt" but it fails with this message "su: can't chdir to home directory '/home/nmt'". Have you been able to log in with the nmt user to do more testing ?
This is a required step in order to debug the script. There is something specific about this nmt user but I don't know what exactly

Yeah.. this is something tricky. You can't su to the nmt user. But the samba and nfs server run as nmt, so not running transmission as nmt causes permission issues.

What might be the root of the issue here is that the telnet user runs with a different busybox than the torrentexpander shell script when executed from Transmission.

This is especially true on the A-110 where the telnet busybox is quite complete and the basic busybox that transmission (and thus torretnexpander) uses is very limited.
Find all posts by this user
Add Thank You Quote this message in a reply
12-26-2011, 09:15 PM
Post: #33
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
bassie112, the error message you have seen while manually running torrentexpander.sh points to a permissions error.
This error message is only displayed if unrar cannot be found or if it cannot be executed by the current user.
Can you use the "id" command while connected with putty ?
The root user should not experience such an error, so I'm really surprised

Thanks DathRarhek for these explanations
I officially have no idea on how to make sure torrentexpander.sh can be run by the nmt user if I can't run it manually.

Anybody got a great idea that would help us get out of this pickle ? This is getting too technical for me :-(

Thanks

Toitoinou aka addictedtoscreens
Find all posts by this user
Add Thank You Quote this message in a reply
12-27-2011, 12:07 PM (This post was last modified: 12-27-2011 11:07 PM by Jannyy.)
Post: #34
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
PM sent to bassie112 asking for remote login.

I think problem is solved.
Find all posts by this user
Add Thank You Quote this message in a reply
12-29-2011, 10:08 PM
Post: #35
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
New version released

Quote:How to report a problem?
Before post a problem in forum, please have a look to this file in your nmt device:
/share/Apps/TorrentExpander/.setupresult
It's a Windows hidden file and it contains a lot of debug information. You may find here the problem. Please add this file to your reports on the forum. Thank you.
Find all posts by this user
Add Thank You Quote this message in a reply
12-29-2011, 11:19 PM (This post was last modified: 12-29-2011 11:43 PM by bassie112.)
Post: #36
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Updated to 124. Still the script doesn't kick in with the "$TR_TORRENT_DIR/$TR_TORRENT_NAME" in the transmission config. Without it does kick in, but it doesn't unpack (again). It only copies a 0-bytes file without extension in the working dir, but sometimes nothing. Copying of non-packed files works but not as expected: it copies the output files under the working dir but also another copy in a subdirectory of the working dir. This is not really a problem, the failing unpacking however is Sad. Maybe there is something else wrong with my NMT, although I don't have any issues. I will test some more.

.setupresult:
Code:
Information: transmission is installed
Information: opkg is installed
Information: internet connection avaiable
Information: updating opkg
Downloading http://sourceforge.net/projects/c200ipkg/files/Packages.
Updated list of available packages in /share/Apps/local/lib/opkg/lists/c200local.
Information: unzip is already installed
Information: unrar is already installed
Information: wget is already installed
Information: busybox is already installed
Information: torrentexpander setup started
Found hardware type: Popcorn Hour C200


Application Initializer version 1.13
---------------------------------------
Checking for new version: up to date
Checking Application Initializer profile: Valid
Stopping Transmission: Done


</html>
Found hardware type: Popcorn Hour C200


Application Initializer version 1.13
---------------------------------------
Checking for new version: up to date
Checking Application Initializer profile: Valid
Disabling webserver: Done


</html>
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Waiting for php5server stop
Editing transmission config file
Found hardware type: Popcorn Hour C200


Application Initializer version 1.13
---------------------------------------
Checking for new version: up to date
Checking Application Initializer profile: Valid
Starting Transmission: Done


</html>
Found hardware type: Popcorn Hour C200


Application Initializer version 1.13
---------------------------------------
Checking for new version: up to date
Checking Application Initializer profile: Valid
Enabling webserver: Done


</html>
Find all posts by this user
Add Thank You Quote this message in a reply
12-29-2011, 11:40 PM (This post was last modified: 12-30-2011 12:17 AM by lukjod.)
Post: #37
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
I have tried to install script today and have such error messege:
Code:
Information: transmission is installed
Information: opkg is installed
Information: internet connection avaiable
Information: updating opkg
Downloading http://sourceforge.net/projects/c200ipkg/files/Packages.
Updated list of available packages in /share/Apps/local/lib/opkg/lists/c200local.
Information: unzip is not installed
Installing unzip
Installing unzip (6.0-1) to root...
Downloading http://sourceforge.net/projects/c200ipkg/files/unzip_6.0-1_mips.ipk.
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Broken pipe
Updating certificates in /share/Apps/local/etc/ssl/certs... /usr/local/bin/update-ca-certificates: /usr/local/bin/c_rehash: /usr/local/bin/perl: bad interpreter: No such file or directory
Configuring busybox.
Configuring ca-certificates.
Configuring unzip.
Collected errors:
* pkg_run_script: package "ca-certificates" postinst script returned status 126.
* opkg_configure: ca-certificates.postinst returned 126.
Information: unrar is already installed
Information: wget is already installed
Information: busybox is already installed
Error: torrentexpander setup aborted
then I tried to isstall manually via local unzip and started setup again
now I get such error:
Code:
Information: transmission is installed
Information: opkg is installed
Information: internet connection avaiable
Information: updating opkg
Downloading http://sourceforge.net/projects/c200ipkg/files/Packages.
Updated list of available packages in /share/Apps/local/lib/opkg/lists/c200local.
Information: unzip is already installed
Information: unrar is already installed
Information: wget is already installed
Information: busybox is already installed
Error: torrentexpander setup aborted
what can I do now?
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 12:36 AM (This post was last modified: 12-30-2011 12:39 AM by Jannyy.)
Post: #38
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(12-29-2011 11:40 PM)lukjod Wrote:  what can I do now?

There are some problems about opkg. Try run these commands:

Code:
opkg status unzip
opkg status unrar
opkg status wget
opkg status busybox

If commands returns nothing, then opkg did not worked well. Also please post your output of this command:

Code:
echo $PATH

(12-29-2011 11:19 PM)bassie112 Wrote:  Updated to 124. Still the script doesn't kick in with the "$TR_TORRENT_DIR/$TR_TORRENT_NAME" in the transmission config. Without it does kick in, but it doesn't unpack (again). It only copies a 0-bytes file without extension in the working dir, but sometimes nothing. Copying of non-packed files works but not as expected: it copies the output files under the working dir but also another copy in a subdirectory of the working dir. This is not really a problem, the failing unpacking however is Sad. Maybe there is something else wrong with my NMT, although I don't have any issues. I will test some more.

Before this last version, the script worked well?
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 01:21 AM (This post was last modified: 12-30-2011 01:24 AM by bassie112.)
Post: #39
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(12-30-2011 12:36 AM)Jannyy Wrote:  
(12-29-2011 11:40 PM)lukjod Wrote:  what can I do now?

There are some problems about opkg. Try run these commands:

Code:
opkg status unzip
opkg status unrar
opkg status wget
opkg status busybox

If commands returns nothing, then opkg did not worked well. Also please post your output of this command:

Code:
echo $PATH

(12-29-2011 11:19 PM)bassie112 Wrote:  Updated to 124. Still the script doesn't kick in with the "$TR_TORRENT_DIR/$TR_TORRENT_NAME" in the transmission config. Without it does kick in, but it doesn't unpack (again). It only copies a 0-bytes file without extension in the working dir, but sometimes nothing. Copying of non-packed files works but not as expected: it copies the output files under the working dir but also another copy in a subdirectory of the working dir. This is not really a problem, the failing unpacking however is Sad. Maybe there is something else wrong with my NMT, although I don't have any issues. I will test some more.

Before this last version, the script worked well?
No it did't although at some point it did unpack for a few hours. I tried some stuff with the config but nothing helps. I think everything is related to the extra commands (transmission) that are not working as I described the post before. Why it doesn't run is another thing...
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 01:48 AM
Post: #40
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
As i remember, you are using a specific set of folder to manage your download. Could you post your Transmission download dir path, your Torrentexpander default path, and all the other specific paths (Music, Film, series, ...).
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 07:48 AM
Post: #41
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
I don't see any errors on the installation. There was a previous installation leftout for ca-certificates, if perl has been installed, I think the issue will be solved.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 10:34 AM
Post: #42
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
(12-30-2011 01:48 AM)Jannyy Wrote:  As i remember, you are using a specific set of folder to manage your download. Could you post your Transmission download dir path, your Torrentexpander default path, and all the other specific paths (Music, Film, series, ...).
Yes I already posted them in this thread.

In short:
Transmission incomplete=/share/Download/Torrents/Incomplete
Transmission complete=/share/Download/Torrents/Complete
TorrentExpander: /share/Download/Torrents/Extracted
Specific files (doesn't work, I use it to test): /share/Download/Torrents/Ready

If there is a problem then it's the non-standard transmission path I presume. Also because the path specific commands of Torrentexpander don't work in the transmission config .
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 04:33 PM (This post was last modified: 12-30-2011 08:47 PM by lukjod.)
Post: #43
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
@Jannyy

The problem was unrar4 which I manually updated over local unrar 3.9. After revert back to original one all seems to be ok and torrentexpaner is installed. Now will try to downlad smtg via transmission and see how it works. I also added a line to download polish subtitles and convert them to srt to nmj update script which I was using till now with scan.sh script
Thanks for Yours help

btw
unrar 4 is 20% faster than 3.9, is there a possibility to update local unrar to newer version?

UPDATE
After some test I can say that script is working fine. The only problem I have that its instead of moving just copy movie files to Video\Movies (in options I choose move) and not all of my movies were copied say 70% were copied. Also script messed a lot with Boardwalk Empire series when it copied all but created 7 or 8 folders with the same name with 1 file in each. To delete them I had to change file permissions. All test I did using console so I don't know how it will work with transmission
Find all posts by this user
Add Thank You Quote this message in a reply
12-31-2011, 11:05 AM (This post was last modified: 12-31-2011 11:06 AM by toitoinou.)
Post: #44
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
Thank you Lukjod !
Jannyy and I have spend a lot of time trying to make sense of these installation issues.

Regarding your update, I think this needs clarifying :
If the third_party_log feature (useful with flex get, for example) is enabled or if you're running the script manually, the movies_post, tv_whows_post and music_post will switch to copy instead of move.
Why ? Only because I thought that if you're running the script manually to expand a torrent to a specific directory, you expect the file to appear in the selected directory, not only in the movies_post you defined earlier in your settings.ini

If you feel that the user should be able to alter this comportment within the "GUI", please create a new issue in the project page
http://code.google.com/p/torrentexpander/issues/list

Also, regarding the movies that were not copied, you need to know that torrentexpander.sh expects one of the following patterns to recognize the file as a movie : HDTV,DVDRip,BDRip,BRRip,DVDR,720p,1080p,HD1080p,TS,TVRip,DVDSCR,R5,Workprint,SCR​,Screener,HDRip,DVDScreener
If you notice some missing patterns, please add them to this issue page :
http://code.google.com/p/torrentexpander...tail?id=36

Finally, regarding Boardwalk Empire, please let me know what the initial filenames were. It looks like the script failed to recognize a series pattern but found a movie pattern
I've planned to extend the list of series patterns, but I experienced mixed results and false positives.

Toitoinou aka addictedtoscreens
Find all posts by this user
Add Thank You Quote this message in a reply
12-31-2011, 02:33 PM (This post was last modified: 12-31-2011 04:49 PM by lukjod.)
Post: #45
RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ
@ toitoinou

Thanks for all clarifications,
As I've just tested script for my existing library all my names were prepared earlier by using therenamer. So all my titles wer prepared as title (YYYY) (720p) and cleaned from additional info like The Scorpion King 3 Battle For Redemption (2012) . My Tv series folder name is Boardwalk Empire and content is formatted as Boardwalk Empire S02E01.avi or Boardwalk Empire S02E10 (720p).mkv. Now I will test torrentexpander more thoroughly when I will download some movies by transmission. Also I want to ask how it will react on transmission downloaded files with software inside when after unpack it will get iso or other image files?. I deleted in ini config file iso so it should not touch it and leave in download folder instead of moving it to expanded right?

UPDATE
There is something worng with rar packed files. Here is error info, beside this unpacked file content works ok.
Code:
<der.sh /share/Download/"Los Numeros (2011) [DVDRip.XviD.AC3] [PL] [MIX]rar" -c
----------------------------------------------------
----------------------------------------------------

WELCOME TO TORRENTEXPANDER

----------------------------------------------------
----------------------------------------------------
Select Destination Folder :

/share/Video/Movies

0  -  Select current folder
1  -  ..

Type the ID of the Destination Folder :
0

Your Destination Folder is /share/Video/Movies

Step 1 : Expanding / moving content of the torrent
find: unrecognized: -L
BusyBox v1.18.3 (2011-02-17 08:02:03 GMT-5) multi-call binary.

Usage: find [PATH]... [EXPRESSION]

Search for files. The default PATH is the current directory,
default EXPRESSION is '-print'

EXPRESSION may consist of:
        -follow         Follow symlinks
        -xdev           Don't descend directories on other filesystems
        -maxdepth N     Descend at most N levels. -maxdepth 0 applies
                        tests/actions to command line arguments only
        -mindepth N     Don't act on first N levels
        -name PATTERN   File name (w/o directory name) matches PATTERN
        -iname PATTERN  Case insensitive -name
        -path PATTERN   Path matches PATTERN
        -regex PATTERN  Path matches regex PATTERN
        -type X         File type is X (X is one of: f,d,l,b,c,...)
        -perm NNN       Permissions match any of (+NNN), all of (-NNN),
                        or exactly NNN
        -mtime DAYS     Modified time is greater than (+N), less than (-N),
                        or exactly N days
        -mmin MINS      Modified time is greater than (+N), less than (-N),
                        or exactly N minutes
        -newer FILE     Modified time is more recent than FILE's
        -inum N         File has inode number N
        -user NAME      File is owned by user NAME (numeric user ID allowed)
        -group NAME     File belongs to group NAME (numeric group ID allowed)
        -depth          Process directory name after traversing it
        -size N[bck]    File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
                        +/-N: file size is bigger/smaller than N
        -links N        Number of links is greater than (+N), less than (-N),
                        or exactly N
        -print          Print (default and assumed)
        -print0         Delimit output with null characters rather than
                        newlines
        -exec CMD ARG ; Run CMD with all instances of {} replaced by the
                        matching files
        -prune          Stop traversing current subtree
        -delete         Delete files, turns on -depth option
        (EXPR)          Group an expression

Step 2 : Deleting original torrent
Step 3 : Setting permissions
mv: can't rename '/share/Video/Movies/torrentexpander_temp/Los Numeros (2011) [DVDRip.XviD.AC3] [PL] [MIX]rar': No such file or directory
That's All Folks
sh-3.00#
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
  sickbeard and download folder help! naboull1 1 224 05-11-2013 06:41 PM
Last Post: naboull1
  Transmission. How to change download paths to other HDD connected to A300 ? djhifi 0 248 05-07-2013 01:05 AM
Last Post: djhifi
  Download to NAS or other networked storage. kerberosvx 1 439 04-09-2013 01:24 PM
Last Post: chris57
  NZBGet download x pars instead of one/all/none shazada 0 426 04-07-2013 03:46 PM
Last Post: shazada
  Single download at a time ? divine 1 404 03-28-2013 08:44 PM
Last Post: Willem53
  [nzbget] NZBget 0.7.0 download and discussion Ger Teunis 492 207,907 01-25-2013 10:02 AM
Last Post: Peige
  RSS feed auto download and start torrents votepsi 2 776 01-22-2013 05:47 AM
Last Post: ItsPopcornTime
  A400 NMT Apps and Torrent Download destination th14 6 1,386 01-06-2013 08:14 AM
Last Post: chris57
  A300 Firmware update + Transmission Torrent Download => NMT lock up Popcorn-300-549 3 1,154 01-03-2013 06:50 PM
Last Post: joserobleda
  [SCRIPT] Download nzb on your tv Alex59 12 3,390 11-29-2012 02:51 PM
Last Post: Alex59

Forum Jump: