Networked Media Tank
Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Printable Version

+- Networked Media Tank (http://www.networkedmediatank.com)
+-- Forum: NMT Software & Settings (/forumdisplay.php?fid=19)
+--- Forum: Torrent and Usenet (/forumdisplay.php?fid=64)
+--- Thread: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ (/showthread.php?tid=56777)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Jannyy - 11-26-2011 05:33 PM

What is torrentexpander?

As you know, NMT Jukebox doesn't like scene file naming. It won't recognize a movie named 'This.is.a.good.film.2012.Xvid-CREW.avi'. If you don't want to manually rename your files, then you need torrentexpander. It's a simple script for Transmission torrent client that do a lot of things for you.

Futures:
  • Automatically extract compressed archive
  • Rename Movie & Series as you like
  • Automatically copy or move your downloads in ordered directory
  • Automatically remove torrent from transmission list, if moved.
  • Build .nfo for each file (useful for NMJ & oversight)
  • Download Poster from imdb
  • Download Fanart from TheMovieDB
  • Put Movies, Series and Music in different folders
  • Automatically run updates of NMJ database
  • Automatically update itself
  • Many More

[Image: torrentexpander.th.jpg]

Download:
Transmissionbt & TorrentExpander Packages
Works on 200 & 300 series.
Use NMT Community Software Installer to install them.

Instructions:
  • Remove previous version of Transmission.
  • Install Transmission 2.42 package.
  • Install/upgrade 'local' package, if you have not done yet.
  • Install TorrentExpander package, NMT device must have an internet connection while install.
  • Mange Transmission through web interface, as usual.

Quote:In this release, when Transmission complete a download, the script should rename files, build .nfo, download poster, download fanart and move it all in a new directory under /share/Downloads/Expanded

How to configure:
Program comes preconfigured. If you want to change something, then open with a text editor (like Notepad++) the config file:
/share/Apps/TorrentExpander/bin/torrentexpander_settings.ini
Code:
# §§ TorrentExpander settings file preconfigured for NMT Appliances §§
# http://code.google.com/p/torrentexpander

# Do you want to keep program updated?
# Options are: no, daily, weekly
auto_update_script="daily"

# Set destination folder for processed files.
# If you don't use 'destructive mode', the directory must be different from client download directory.
destination_folder="/share/Download/Expanded"
# Delete original files?
destructive_mode="no"
# If yes, do you want to delete torrents also from client torrent list?
remove_torrent_from_client="yes"
# These are client data, you may add login informations.
torrent_daemon_bin="/share/Apps/Transmission/bin/transmission-daemon"
torrent_daemon_login=""
torrent_daemon_password=""
torrent_daemon_port="9091"
# Put in a subdirectory alone file?
force_single_file_movies_folder="yes"

# --&gt; SERIES <--
# Do you want to use a specific folder for series?
# Options are: no, copy, move
tv_shows_post="no"
# If yes, where is the folder?
tv_shows_post_path="/share/Video/Series"
# If yes, how do you want to rename series?
# Options are: s, ss, sss
#    /Series/Episode (s)
#    /Series/Season X/Episode (ss)
#    /Series/Season XX/Episode (sss)
tv_shows_post_path_mode="no"
# Try to correct series numbering?
tv_shows_fix_numbering="yes"
# Leave repack and similar tags?
repack_handling="no"

# --&gt; MOVIES <--
# Do you want to use a specific folder for movies?
# Options are: no, copy, move
movies_post="no"
# If yes, where is the folder?
movies_post_path="/share/Video/Movies"

# --&gt; MUSIC <--
# Do you want to use a specific folder for music?
# Options are: no, copy, move
music_post="no"
# If yes, where is the folder?
music_post_path="/share/Music/"

# § RENAMING §
# Rename files?
clean_up_filenames="yes"
# If yes, how to rename files?
#    type_1 : Movie (year).ext
#    type_2 : Movie Year (video_quality).ext
#    type_3 : Movie Year (audio_quality-video_quality).ext
movies_rename_schema="type_1"
# Programs uses a pattern list to remove common words (like DiVX, DVD-Rip, ...) from file names.
# If you want, you could add some patterns to the standard lists (comma separated).
user_defined_other_movies_patterns=""
user_defined_scene_patterns=""

# § Jukebox §
# These futures may help a lot NMT Jukebox.
# Produce .nfo?
imdb_nfo="yes"
# Download poster?
imdb_poster="yes"
# Which poster size?
# Options are: normal, large, small or full
imdb_poster_format="normal"
# Download fanart?
imdb_fanart="yes"
# Which fanart size?
# Options are: thumb, poster, w1280, original
imdb_fanart_format="w1280"
# Prevent NMJ scanning of unknown media? (yes is raccomanded)
disable_nmj_scan="yes"
# Enable debug report? (if unsure, leave no)
debug_mode="no"
# Enable NMJ database automatic updates?
post_run_script_enabled="yes"
post_run_script="/share/Apps/TorrentExpander/bin/nmj_update.sh"

# § Other §
# Never mind about these.
# They are not useful with NMT platform.
ccd2iso_bin="incorrect_or_not_set"
img_post="no"
mkvdts2ac3_bin="incorrect_or_not_set"
dts_post="no"
subtitles_handling="no"
wii_post="no"
third_party_log="no"
edit_perm_as_sudo="no"

# § Extensions §
supported_extensions="avi,mkv,divx,mp4,ts,iso,img,mp3,m4a,wav,srt,idx,sub,dvd"
tv_show_extensions="avi,mkv,divx,mp4,srt,idx,sub"
movies_extensions="avi,mkv,divx,mp4,ts,iso,img,srt,idx,sub"
music_extensions="mp3,m4a,wav"

# § Filesystem §
# Leave defaults if unsure.
user_perm_post="nmt"
group_perm_post="nmt"
files_perm_post="744"
folder_perm_post="755"
reset_timestamp="no"

# § Scripting §
# Advanced users can use these lines to implement their scripts.
all_files_script_enabled="no"
all_files_script="incorrect_or_not_set"
all_files_script_variable_1=""
all_files_script_variable_2=""
all_files_script_variable_3=""
all_files_script_variable_4=""
all_files_script_variable_5=""
processed_torrent_script_enabled="no"
processed_torrent_script="incorrect_or_not_set"
processed_torrent_script_variable_1=""
processed_torrent_script_variable_2=""
processed_torrent_script_variable_3=""
processed_torrent_script_variable_4=""
processed_torrent_script_variable_5=""

# § External programs paths §
# You may let program find them for you.
# At the end of this file you will find § Update Info §, don't touch it.

Developers & Feedback:
Please let me know if the program works for you. Reporting bug and suggestions may help me. Thanks

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.

How can i see if program works for me?
You can run program manually, using a command like this one:

Code:
/share/Apps/TorrentExpander/bin/torrentexpander.sh /share/Download/night.of.the.living.dead.1968

Please always use absolute path to run torrentexpander.


Testing

Quote:ACTUALLY IT DOES NOT WORK ON A100 SERIES. SORRY.
IF YOU ARE A GEEK, YOU COULD INSTALL THE PROGRAM ON YOUR A100 DEVICE AND TRY TO UNDERSTANT WHY. READ THIS.

Tested on PCH-A210 by Jannyy
Tested on PCH-C200 by toitoinou
Tested on PCH-A300 by yahavrave

Support
  • See this thread for transmission related problem.
  • Refer to main site for TorrentExpander related problem.

Say Thanks!

Quote:Adding a simple Thank You to this post from all users happy about torrentexpander will keep me going :-)

Toitoinou is the owner of TorrentExpander project, if you want you could write to him to tell why this program suits good for you.


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - lukjod - 11-29-2011 08:06 PM

Can You prepare some howto configure and make it work ?
Can this script work as the renamer http://www.therenamer.com/ to automaticaly change name of file , folder and purge it from adds as ripper name, ripper group etc based on imdb search?


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - chris57 - 11-29-2011 08:30 PM

I think you may get more interest in the Torrent/Usenet Section. Moved your thread there, if it doesn't pick up or you'd prefer it back in Development let me know.

Looks good, any plans to expand to usenet and/or use RSS feeds? Will it work with the A300, any plans for the 300?


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - DathRarhek - 11-29-2011 08:41 PM

Maybe you could build the package in such way that you don't include Transmission itself. This would allow people to use the different Transmission packages that are around and still use your script. You could also have it do the edit of settings.json automatically.

I'm not using your script completely, but borrowed some ideas from it for my own custom script regarding expanding rar files. I use Oversight, and Oversight does an excellent job of renaming itself already.


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Jannyy - 12-01-2011 07:11 PM

Thanks for all reply.


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - toitoinou - 12-03-2011 06:09 AM

Hi
This script is designed to be run on a wide range on devices.
I've been running this script it on the C200, Ubuntu 8.04 to ubuntu 11.10, Debian 5 and 6, Mac OS X, and some users told me that it runs smoothly on some NAS.
I haven't tried it yet on the A300, so your feedback will be more than welcome

You may want to try and run it manually (just chmod +x the script then launch it using only the command /path/to/torrentexpander.sh)
Thanks to Jannyy, torrentexpander has been through many improvements.
Version 0.17 is now outdated, so I suggest you try SVN revision r101

Toitoinou aka Addictedtoscreens


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Jannyy - 12-07-2011 06:58 PM

Application is working! Please try it! Thanks


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Sartaxi - 12-12-2011 10:52 PM

Hi, this looks great, thanks for sharing!

@Jannyy: Could you explain what you mean by 'local' package?

@DathRarhek: could you share your edits? (I use oversight too, like it a lot).


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Jannyy - 12-13-2011 12:02 PM

It's a program named 'local' on CSI. Simple


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Azatoth - 12-14-2011 08:10 AM

I get the below error when installing in CSI on A-110:

Found hardware type: Syabas A/B type
Found hardware type: Syabas A/B type


Application Initializer version 1.13
---------------------------------------
Checking for new version: up to date
Checking Application Initializer profile: Valid
Installing application from file /share/TorrentExpander.tar: /opt/sybhttpd/localhost.drives/HARD_DISK/Apps/AppInit/appinit.cgi: line 1: cannot open /share/Apps//appinfo.json: no such file
Failed


Had the same error with installing Transmission 2.42 before, but was fixed by DathRarhek in latest version.


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Jannyy - 12-14-2011 06:03 PM

Really thanks for report. I will solve it soon.

Edit. I hope that problem is solved now. Try latest CSI package. Let me know if it works for you.


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Azatoth - 12-14-2011 11:18 PM

Thanks for quick fix, installation worked with latest version.


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - bassie112 - 12-16-2011 06:00 PM

Works excellent. It only tries to unpack everything. Also non-packed files. Any idea how to fix this?

Like unpacking only zip/rar files (or whatever defined), but copying when something else:
movie.zip completed => unpack to /share/Download/Expanded/
movie.avi completed => copy (retain original file for sharing) to /share/Download/Expanded/


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - Jannyy - 12-16-2011 07:56 PM

(12-16-2011 06:00 PM)bassie112 Wrote:  Works excellent. It only tries to unpack everything. Also non-packed files. Any idea how to fix this?

Like unpacking only zip/rar files (or whatever defined), but copying when something else:
movie.zip completed => unpack to /share/Download/Expanded/
movie.avi completed => copy (retain original file for sharing) to /share/Download/Expanded/

Huh Huh
Please have a look to 'Here's what happens when you run Torrentexpander':
http://code.google.com/p/torrentexpander/wiki/Torrentexpander_in_depth


RE: Torrentexpander: automatic renamer | build .nfo | download poster & fanart | NMJ - bassie112 - 12-16-2011 09:26 PM

(12-16-2011 07:56 PM)Jannyy Wrote:  
(12-16-2011 06:00 PM)bassie112 Wrote:  Works excellent. It only tries to unpack everything. Also non-packed files. Any idea how to fix this?

Like unpacking only zip/rar files (or whatever defined), but copying when something else:
movie.zip completed => unpack to /share/Download/Expanded/
movie.avi completed => copy (retain original file for sharing) to /share/Download/Expanded/

Huh Huh
Please have a look to 'Here's what happens when you run Torrentexpander':
http://code.google.com/p/torrentexpander/wiki/Torrentexpander_in_depth
Reinstalled and configured the script. It's now running fine. maybe a formatting error when I edited it, not sure. Tnx!