| Issue 23: | Transmission + Torrentexpander NMT CSI Package | |
| 1 person starred this issue and may be notified of changes. | Back to list |
This is the complete CSI (http://www.nmtinstaller.com/) packages for NMT Platform (ALFA)
Nov 26, 2011
Project Member
#1
addicted...@gmail.com
Nov 26, 2011
True, it' hard to decide what's the best default config. I have choose to use /share/Download/ to avoid permission problem/strange problem that it's difficoult to solve. The clean_up_filename=yes it may cause exception (not sure: ISSUE 18 ) I will open a forum thred on nmt, and asking for some beta-tester. This is only an ALFA package. I'm testing every day, every future, then i will, change default config.
Nov 26, 2011
Handling permissions is an issue and I'll have to deal with it one day or another. Regarding ISSUE 18 , I think I got this out of the way. Also, I've decided that the /share/Downloads/Expanded would be the default destination folder for NMT if none is defined in the settings.ini file BTW I think the default NMT Transmission download folder is /share/Downloads, not /share/Download Give it a try Thanks
Nov 27, 2011
Transmission default direcory is /share/Download. It's written in daemon.sh inside CSI pack.
Nov 27, 2011
This is last version!
Nov 27, 2011
NMT PCH A210 I'm collecting information.. cat: /bin/cat (busybox required) chmod: /bin/chmod (busybox required) chown: /bin/chown (busybox required) cp: /bin/cp (busybox required) ls: /bin/ls (busybox required) mkdir: /bin/mkdir (busybox required) mv: /bin/mkdir (busybox required) nice: /bin/nice (included) rm: /bin/rm (busybox required) rmdir: /bin/rmdir (busybox required) sed: /bin/sed (busybox required) touch: /bin/touch (busybox required) wget: /bin/wget (busybox required) wget: /opt/syb/app/bin/wget (included) curl: /usr/local/bin/curl (opkg required) grep: /bin/grep (busybox required) egrep: /bin/grep (busybox required) unrar: /usr/local/bin/unrar (opkg required) unzip: /usr/local/bin/unzip (opkg required) find: /bin/find (busybox required) without busybox (http://www.networkedmediatank.com/showthread.php?tid=29068) program never works. It's better to use wget, avaiable in two path (busybox wget it's better)
Nov 27, 2011
this is correct: unzip: /usr/bin/unzip (busybox required)
Nov 27, 2011
New build committed to SVN I suggest you don't input binary path in the settings file. The script should be able to guess path to unzip, unrar, wget... Assuming the used has installed busy box of course
Nov 27, 2011
Switched to label Type-Other
Labels:
-Type-Defect Type-Other
Nov 27, 2011
About comment 9: I have tryed, but the script plots errors. I think the best way to resolve depandancies problems is this: unrar_bin=/usr/local/bin/unrar unzip_bin=/usr/local/bin/unzip wget_curl=/usr/local/bin/wget path /usr/local/bin means 'the program it was installed by opkg'. I prefer to use opkg bin because they are updated better.
Nov 27, 2011
Can you send me the settings.ini file generated on first run on the NMT so that I can understand where the issue comes from. torrentexpander is supposed to search for binaries in $PATH, /Applications, /nmt/apps, /bin, /usr/bin and /usr/local/bin I don't understand why I cannot find the right path to the binaries
Nov 27, 2011
Yes, right, i didn't know this. If i run program without these config lines, torrentexpander produces correct path.
Nov 27, 2011
These are default permission set on PCH for user created things: files: 744 folder: 755 owner user: nmt owner group: nmt I have set: files_perm_post=744 folder_perm_post=755 I'm not able to set owner user & group. sudo is not avaiable, transmission run as a root.
Nov 28, 2011
This is the defualt config i made for CSI package. Look if all are good.
Nov 28, 2011
(No comment was entered for this change.)
Nov 28, 2011
I could not to make movies_post and similar works.
Nov 28, 2011
Yes, because if i use type_1 schema, then program are not able to decide if file is a film or not. We should use original filename to get this info.
Nov 28, 2011
It not exists 'Chown directory if run as at user level and no user interaction is available' section'.
Nov 28, 2011
Take a look to the comments like this: # Chown directory if run as sudo of if user interaction is available Comments say Chown but in fact do Chmod.
Nov 28, 2011
You're right, I changed this comment, along with a few others Try to add edit_perm_as_sudo=yes to your settings file and let me know what happens If sudo is unavailable, then I have no idea how to set user and group. Give the latest SVN build a try and let me know how this works. --- Regarding movie_post, this is true, It cannot work with type_1 filenames. Looks like some refactoring is in order. I'm thinking about a using the $quality variable, a bit like with the imdb routine, as only the last line from the log_file is necessary for movies. Try replacing lines 1024 to 1030 by the code attached and let me know if it works. I probably won't have time to try it for the next few days. Thanks
Nov 28, 2011
I've taken a look at your torrentexpander_settings.ini.2 and it's really great, very easy to read In the future, we may need to see if mkvdts2ac3 can be run on the NMT (alas it relies on many dependencies). People without a home theater may find it extremely useful If it works, we'll contact the developer if he's interested in collaborating to our project
Nov 29, 2011
I forget to say that i get cp error, i'm using movie_post="copy" Step 4 : Taking care of TV Shows, Music and Movie files - Copying Come Ammazzare Il Capo E Vivere Felici 2011 (-BRRip).avi to /share/Prova/Come Ammazzare Il Capo E Vivere Felici 2011 (-BRRip)/ cp: cannot stat '/share/Download/Expanded/torrentexpander_temp/Come Ammazzare Il Capo E Vivere Felici 2011 (-BRRip).avi': No such file or directory
Nov 29, 2011
Of course, with IMDB plugin all movie are in their subdirectory.
Nov 29, 2011
@Comment 23. It seems to work, exept copy error. Step 1 : Expanding / moving content of the torrent Step 2 : Cleaning up filenames - Renaming Come.Ammazzare.Il.Capo.E.Vivere.Felici.2011.iTALiAN.BRRip.XviD-CRiME.avi to Come Ammazzare Il Capo E Vivere Felici (2011).avi Step 3 : Generating NFO and downloading Poster Step 4 : Taking care of TV Shows, Music and Movie files - Copying Come Ammazzare Il Capo E Vivere Felici (2011).avi to Come Ammazzare Il Capo E Vivere Felici (2011)/ cp: cannot stat '/share/Download/Expanded/torrentexpander_temp/Come Ammazzare Il Capo E Vivere Felici (2011).avi': No such file or directory Step 5 : Setting permissions That's All Folks
Nov 29, 2011
@'If sudo is unavailable, then I have no idea how to set user and group.' ?? chown -R nmt $folder chown nmt $file chgrp -R nmt $folder chgrp nmt $file
Nov 29, 2011
Regarding permissions, according to your comment #23 and #28, it should work fine now. Regarding cp error in movies post, I think I solved it. Let me know how build 100 (Wow, 100 already !) works for you. I think we made great progress for the past few days. Thanks
Nov 30, 2011
Correct 1093 line: if [[ -f "$item" && "$edit_perm_as_sudo" == "no" && "$user_perm_post" != "no" && "$group_perm_post" != "no" && $(id -u) -eq 0 ]] || [[ -f "$item" && "$edit_perm_as_sudo" == "no" && "$user_perm_post" != "no" && "$group_perm_post" != "no" && "$has_display" == "yes" ]] || [[ -d "$item" && "$edit_perm_as_sudo" == "no" && "$user_perm_post" != "no" && "$group_perm_post" != "no" && $(id -u) -eq 0 ]] || [[ -d "$item" && "$edit_perm_as_sudo" == "no" && "$user_perm_post" != "no" && "$group_perm_post" != "no" && "$has_display" == "yes" ]]; then chown "$user_perm_post":"$group_perm_post" "$item"; fi
Nov 30, 2011
We only miss one thing, the program do this: Step 5 : Setting permissions chown nmt:nmt /share/Prova/Abduction (2011)/Abduction (2011).avi chown nmt:nmt /share/Prova/Abduction (2011)/Abduction (2011).nfo chown nmt:nmt /share/Prova/Abduction (2011)/Abduction (2011).jpg chown nmt:nmt /share/Prova/Abduction (2011)/Abduction (2011).fanart.jpg That's All Folks There are NO line that do this: chown nmt:nmt /share/Prova/Abduction (2011)/
Dec 1, 2011
Could you enable me download section? I will upload CSI and a repo.
Dec 1, 2011
Latest SVN build seems to work fine with permissions /share/Prova/Abduction (2011)/ should now be chowned correctly
Dec 4, 2011
With the latest CSI package on the C200, I got : Your Unrar path is incorrect please edit your torrentexpander_settings.ini file Your Unzip path is incorrect please edit your torrentexpander_settings.ini file Path to wget or curl is incorrect - IMDB features will be disabled If I remove the corresponding lines, and let the script find the binaries, the program runs successfully
Dec 4, 2011
Here are the paths on the C200 unrar_bin="/nmt/apps/bin/unrar" unzip_bin="/usr/bin/unzip" wget_curl="/bin/wget" I replaced torrentexpander.sh by a fresh copy of the script with an additional line in order to make sure the update works It worked once, seemed to update correctly Then every time I try to run it, I get random errors, even after a reboot I've switched this download to deprecated, until we edit the settings.ini file and find a solution to this issue I'll rewrite the update procedure to use a file instead of a variable to store the latest version of the script. Maybe this huge $tex_cont variable caused the issue
Dec 4, 2011
New CSI package released. auto_update set to no, because i have strange problem with this future. After updating, i see that the program runs without my own config. I have moved some comments at the end of file, so it's not possible to have § Update History § at the end of config files.
Dec 4, 2011
Could you confirm that opkg path in your device is '/usr/local/bin/opkg' ?
Dec 4, 2011
New build is out.
Dec 4, 2011
opkg is nowhere to be found What should I install on the NMT-C200 ? Thanks
Dec 5, 2011
opkg is named 'local' on CSI.
My package use opkg to install torrentexpander required software. Look setup.sh:
if [ -f "/usr/local/bin/opkg" ]; then
if [ ! -f "/usr/local/bin/unzip" ]; then
opkg install unzip;
wait;
fi
if [ ! -f "/usr/local/bin/unrar" ]; then
opkg install unrar;
wait;
fi
if [ ! -f "/usr/local/bin/wget" ]; then
opkg install wget;
wait;
fi
if [ ! -f "/usr/local/bin/busybox" ]; then
opkg install busybox;
wait;
fi
fi
Dec 6, 2011
Hi Sorry I didn't have time to answer sooner On the C200, opkg is located here : /usr/local/bin/opkg I see you've been really busy lately. Thanks for all the work you're putting into this project
Dec 7, 2011
All ok. See http://www.networkedmediatank.com/showthread.php?tid=56513 update. I can close.
Status:
Fixed
|