2012-07-21, 04:05
Itachi46 after the replacement I got:
All tests complete:
77 tests passed
0 tests failed
Regards.
All tests complete:
77 tests passed
0 tests failed
Regards.
(2012-07-19, 12:46)itachi46 Wrote: Hey Cliffe,
I've swapped over to Strawberry Perl rather than active perl (they have issues with getting cpan working on a windows 64-bit)
and the only drama i had was the module File::Glob had to be replaced with File::Glob:Windows there were a few others but Windows made the most sense to me and it seems to be working...
So the tutorial is literally this.
Install Strawberry Perl from here : http://strawberryperl.com/
Open up command line and type this: cpan File::Copy::Recursive File::Glob::Windows LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple
and to run the script: Perl SortTv.pl or simply double click on the script
edit: @ozp1 I just tested your problem with the downloading season image on ubuntu (this feature is disabled on windows) and i am confident in saying that it is a bug in TVDB::API
specifically $tvdb->getSeasonBanner and $tvdb->getSeasonBannerWide . They are not returning from their call. I have tried getSeasonBanners which returns an array of banner names but to no avail.
if you don't mind letting xbmc parse for the season banners, then find these two lines in sorttv.pl
Code:my $banner = $tvdb->getSeasonBanner($fetchname, $season);
my $bannerwide = $tvdb->getSeasonBannerWide($fetchname, $season);
and replace them with
Code:my $banner ="";# $tvdb->getSeasonBanner($fetchname, $season);
my $bannerwide ="";# $tvdb->getSeasonBannerWide($fetchname, $season);
This will stop sorttv.pl from trying to download the season banners but it will not "freeze" anymore
(2012-07-19, 15:11)itachi46 Wrote: Hey again Cliffe,
I've finished implementing the states... i called them --run-state and --current-state i have also updated the help message.
I know i said i will be using this for personal use but if you think others may want to use this feature then simply ask and i'll give you the source (bear in mind this is my first time developing on perl so its probably not the prettiest of code).
(2012-07-17, 15:26)ozp1 Wrote: hello. Is there any way to prevent sorttv to take out the file extension from the videos?
The problem is that when I run it, I have to remember what movies were at the original folder and then go to the respective folder (tv or movies) and then find the movie and change the file name in order to get the extension back
My computer can play the files with no extension, but XBMC does not recognize them as video files and they dont show up at the movies/tv list.
regards
(2012-07-17, 15:26)ozp1 Wrote: hello. Is there any way to prevent sorttv to take out the file extension from the videos?
The problem is that when I run it, I have to remember what movies were at the original folder and then go to the respective folder (tv or movies) and then find the movie and change the file name in order to get the extension back
My computer can play the files with no extension, but XBMC does not recognize them as video files and they dont show up at the movies/tv list.
regards
#my $ext = $3;
my ($ext) = $filename =~ /(\.[^.]+)$/;
(2012-08-13, 14:17)hkon Wrote:(2012-07-17, 15:26)ozp1 Wrote: hello. Is there any way to prevent sorttv to take out the file extension from the videos?
The problem is that when I run it, I have to remember what movies were at the original folder and then go to the respective folder (tv or movies) and then find the movie and change the file name in order to get the extension back
My computer can play the files with no extension, but XBMC does not recognize them as video files and they dont show up at the movies/tv list.
regards
I have the same problem and I also use Ubuntu.
I think theres a problem in the script in function "is_movie". When I try'd to print out the content of the variable $ext, it was empty. So I added my own regex line to the $ext and then I got the file extention on my files.
Code:#my $ext = $3;
my ($ext) = $filename =~ /(\.[^.]+)$/;
I dont understand regex or perl very good, but this seems to fix my problem temporary.
I dont know if this solution are going to mess up any other functions in SortTV.
(2012-07-08, 13:35)cliffe Wrote: If cpan modules are not passing the tests, you can force cpan to install them anyway. Run sudo cpan (or just "cpan" on Windows), then type "force install Switch", where Switch is the name of the module you are trying to install.
(2012-08-25, 01:00)Holdengts Wrote:(2012-07-08, 13:35)cliffe Wrote: If cpan modules are not passing the tests, you can force cpan to install them anyway. Run sudo cpan (or just "cpan" on Windows), then type "force install Switch", where Switch is the name of the module you are trying to install.
Could you please give an example of this force install, as I have run the cpan on windows and then tried running the force but I just get not a recognized command.
I am new to this so do not fully understand what to do.
Quote:Install the modules the script uses:
To do so, run this command on Linux or Mac OS X:
sudo cpan File::Copy::Recursive File::Glob LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple
On Windows run this via the command prompt:
cpan File::Copy::Recursive File::Glob::Windows LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple
When prompted, you can select the recommended options by pressing Enter (see the FAQ if you encounter problems)
(2012-09-05, 13:23)arthedain Wrote: Hi Cliffe,
First of all great job on this wonderful piece of scripting.
However I am wondering if it would be possible to delete directories that have been successfully sorted? To me, where I only have a /incoming folder it's rather pointless to keep the original there when it's sorted into /media/tv/sorted every hour. I don't need both copies. Is this possible? I read through the documentation, and tested a few things, but to my knowledge I wasn't able to configure it to work like that.
Looking forward to be hearing from you!