SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) (/showthread.php?tid=75949) |
- Capt.Insano - 2011-03-13 First of All, excuse me for thinking out loud here; I am a user of this Script since the beginning and I have some thoughts Would it be possible to package this script as an xbmc add-on? I think it would have many benefits: Easier distribution of updates + Large increase in users (more donations + developments!!), by making it available in the official xbmc repo. Here were my thoughts: People have been asking for a GUI for settings, well an XBMC GUI would be cross-compatible, would allow easy set up of SortTV and would allow easy access to Scheduling of Script + Instant execution of the script through XBMC itself. Example: Trak.tv Addon Setting: (Start On Boot) Example: XBMC Auto-Updater: (Scheduled Execution) Example: Cinema Experience Script: (Easy Script Set-Up) I know that the script is written in perl and that XBMC addons are python, but there are two options that could make it work: 1. Calling the Perl Script from Python some articles are around explaining methods for this (Google) 2. Changing Script language a massive rewrite I know but it would leave possibly more options for developing the script to really tie in to XBMC. Anyway I think it would be a great progression for an already great script. Regards, The Capt. - cliffe - 2011-03-13 Capt.Insano Wrote:First of All, excuse me for thinking out loud here; Development on an xbmc front-end has started, developed thus far by foe83. The Python front-end calls the Perl script (1). Once the core features are working, the two scripts will be bundled together in SortTV releases. Perhaps some Python developers would like to get involved? - carmenm - 2011-03-14 What a great idea to do an XBMC plugin! Cant wait to see that. But if i may add my stone. The XBMC plugin should be able to connect to an already running SortTV addon. For example for me the computer running sortTV(file/download server) is not the same as the one running XBMC. And i dont want sorttv to run my XBMC machine as it would use CPU and mostly because moving files would be so much longer (over network) That s only my point of view anyway - cliffe - 2011-03-14 carmenm Wrote:What a great idea to do an XBMC plugin! Thanks to foe83 for taking the initiative to start working on the front-end. I imagine the first version will be straightforward: it will act as a place to start the script using a graphical interface, and configuration will still be manual editing of the config, although hopefully via a text-edit box on the front-end. Later versions will hopefully have nicer configuration via widgets (dropdown boxes etc). At that stage it might make sense to configure files for SortTV stored remotely, as you suggest, but I don't think that will be a high priority. If anyone has any experience with Python at all, please speak up and contribute some lines of code I expect foe83 will post the code that is in development soon. - foe83 - 2011-03-15 Hi All, I am indeed working on plugin for xbmc! Unfortunately, being new to python, the progress is quite slow. That said, the plugin has already almost all the basic features implemented (run the script locally, importing old script and configure script using virtual keyboard) but some bugs prevent them from functioning correctly. I am looking for people (preferably python developers, but also people whom might have dev experience and want to have a look at python) willing to help with the code, test, debug etc. If you are one, please pm me and I'll send you the code! - Gfei - 2011-03-15 Everything is working now, I think one of my video files was causing a problem. Just a thought: is there any way for SortTV to search the download location recursively at this time? - carmenm - 2011-03-15 @foe83. I can help you. and would love to test the XBMC plugin . Can you share the code? - newphreak - 2011-03-20 Hmm, at the moment non-episodes are moved, this does not work well for me, as i use place-symlink. Would it be possible to throw symlinks to the non-episodes specified dir instead? And, this line bugs me, even tho it doesn't seem to affect the script: could not find ParserDetails.ini in /usr/local/share/perl/5.10.1/XML/SAX How could i fix it? New version available - cliffe - 2011-03-20 Announcing SortTV version 1.25! This is a pretty big update.
I recommend everyone updates to the new version. You can download the new version from: https://sourceforge.net/projects/sorttv/ A lot of time has gone into developing SortTV. Remember this is free open source software. I welcome and really appreciate donations. Please consider a $5 paypal donation. Click for more information: http://sourceforge.net/donate/index.php?group_id=330009 Thanks again to farfromrefug for the GetOpt code. -- Justcop Wrote:My first go at using the script for a show called californication, This is fixed in the current version. Justcop Wrote:1. This file did not match This is also fixed. Justcop Wrote:When a file is unzipped can it be added to a folder? SortTV now includes a music directory, so that music is moved there. Also compressed archives are extracted to separate directories now. Justcop Wrote:an MP3 named Music can now be sorted to a specific directory. newphreak Wrote:Hmm, at the moment non-episodes are moved, this does not work well for me, as i use place-symlink. Would it be possible to throw symlinks to the non-episodes specified dir instead? Miscellaneous files are now sorted as configured (copy, symlink etc), rather than just moved. -- Enjoy! :) - gardz - 2011-03-21 First up, congrats on the new release!! Looking forward to testing some of the new features. I found a bit of a bug in the new getopts portion which assumes floating point numbers are being passed in for the filesize-range values, when it should be a string since the format is 150MB-350MB, etc. As such the file size checks don't occur. For reference to anybody who hits this issue in 1.25, if you enable the filesize-range checks you will hit an error such as this: Code: $ ./sorttv.pl I've put a fix in my local copy as below. I'm not sure if this is the correct "getopt" way to do it, but it seems to work well: Code: $ diff -u default-files/sorttv.pl sorttv.pl - cliffe - 2011-03-21 gardz Wrote:First up, congrats on the new release!! Looking forward to testing some of the new features. Thanks for noticing, reporting and fixing! Version 1.26 fixes this issue. https://sourceforge.net/projects/sorttv/ - foe83 - 2011-03-21 Hi everyone! We have an early preview version of the xbmc script up on github, and I need some people to test it and/or help with the development! NOTE: this is a very early dev version, it will most probably hang your xbmc machine during run and it may delete your sorttv.conf file. Please use only if you know what you are doing and have backed up everything! I highly suggest to read the README-XBMC-Script file first. That said, I have tested on my machine and beside freezing my machine while trying to run the script, it has not caused any demage, and seems to be able to import/edit the configuration correctly. Get it here: https://github.com/foe83/sorttv/tree/xbmc_frontend Click on the big "download" button and save it as a .zip file. Then use the addon installer on xbmc to find the file and install it. If installation fails, try to extract the content and chuck it in a folder named "script.sorttv" in your addons forder. Enjoy! - newphreak - 2011-03-21 cliffe Wrote:Glad you got it working. I notice that you were trying to install modules that SortTV doesn’t use any more (capitalize). Check the README file for an up-to-date list. ahem. From the newest readme from .26: Quote:sudo cpan File::Copy::Recursive File::Glob LWP::Simple TVDB::API Text::Capitalize - compcentral - 2011-03-21 Forgive my ignorance, but doesn't SickBeard already serve the same purpose as this app? I haven't had a chance to read all 30 pages yet, but I'm just curious how this compares to SickBeard. - cliffe - 2011-03-22 compcentral Wrote:Forgive my ignorance, but doesn't SickBeard already serve the same purpose as this app? I haven't had a chance to read all 30 pages yet, but I'm just curious how this compares to SickBeard. There is some overlap in features. SortTV has more options for sorting, and I suspect detects more naming schemes (more episode naming formats, music etc). SortTV doesn't actually download anything, but can be used with any of the plethora of applications that does that. For example, it can be used with Vuze's built in subscriptions, or with torrent episode downloader (TED), or any of the downloaders and schedulers that others have mentioned in this thread. (You could even combine SortTV with Sick Beard, although that might be overkill.) Once SortTV is setup you can just have any file transfer programs place new files in a directory SortTV sorts, and it will all happen automatically, the files will be moved/copied/symlinked and renamed into a very organised directory structure, images will be downloaded, and xbmc will be notified of the new files. Development of SortTV has progressed by adding the features requested by its users. There is a lot of control available through the options to specify exactly how SortTV behaves. (Although, hopefully the default behaviour is perfect for most users.) Development of an xbmc front-end has started, which will make configuration easier. Anyway, if you want lots of control over what happens to your files try out SortTV. |