Permalink
Browse files

first commit

  • Loading branch information...
Christopher Stott
Christopher Stott committed Nov 8, 2010
0 parents commit fdb6fd80e98dde77b4bc1656352de8d34d2bf207
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 README
No changes.
@@ -0,0 +1,71 @@
+#!/usr/bin/ruby
+
+# Need to give mention to thetvdb.com
+
+# Required gems :
+# gem install xml-simple
+
+require 'net/http'
+require 'rubygems'
+require 'xmlsimple'
+require 'cgi'
+
+def CreateFile(filename)
+ File.open(filename, 'w') {|f| f.write('h') }
+end
+
+def CreateDummyFiles
+ dir =`pwd`
+ if dir.index("FakeDownloaded") == nil
+ puts "CREATING DUMMY EPISODES CAN ONLY BE RUN INSIDE A dir called Testing"
+ exit
+ end
+ puts "Creating Dummy Episodes"
+ `rm -r -f -d *`
+ `mkdir 'Blackadder'`
+ `mkdir 'Blackadder/1'`
+ `mkdir 'Blackadder/Season 1'`
+ `mkdir 'Blackadder/Season 2'`
+ `mkdir 'Blackadder/s3'`
+ `mkdir 'Blackadder/Season3'`
+ `mkdir 'blackadder_s03'`
+ `mkdir 'Blackadder/Series 4'`
+ `mkdir 'Blackadder/Series4'`
+ `mkdir 'Blackadder Season 4'`
+ Dir::mkdir('Ocean\'s.11[2001]DvDrip[Eng]-aXXo')
+ `mkdir 'Point Break.1991-DvDRiP[x]'`
+ `mkdir 'Mr And Mrs Smith 2005 BRRip [A Release Lounge H264]'`
+ `echo h > 'Blackadder/Blackadder 1x1.avi'`
+ `echo h > 'Blackadder/1/Blackadder S01E02.avi'`
+ `echo h > 'Blackadder/Season 1/Blackadder S01E03.avi'`
+ `echo h > 'Blackadder/Blackadder S01-E04.avi'`
+ `echo h > 'Blackadder/Blackadder 02x01.avi'`
+ `echo h > 'Blackadder/Blackadder S02-E02.avi'`
+ `echo h > 'Blackadder/Season 2/Blackadder S02E03.avi'`
+ `echo h > 'Blackadder/Season 2/Blackadder S02E04.avi'`
+ `echo h > 'Blackadder/Blackadder 205.avi'`
+ `echo h > 'Blackadder/Blackadder 3x01.avi'`
+ `echo h > 'Blackadder/s3/Blackadder S03E02.avi'`
+ `echo h > 'blackadder_s03/Blackadder S03E03.avi'`
+ `echo h > 'Blackadder/Blackadder S03E04.avi'`
+ `echo h > 'Blackadder/Season3/Blackadder S03E05.avi'`
+ `echo h > 'Blackadder/Series 4/Blackadder S04E01.avi'`
+ `echo h > 'Blackadder/Series 4/Blackadder 02.avi'`
+ `echo h > 'Blackadder/Series4/Blackadder 3.avi'`
+ `echo h > 'Blackadder/Blackadder Season 4 Episode 4.avi'`
+ `echo h > 'Blackadder Season 4/Blackadder Series 4 Ep 5.avi'`
+ `echo h > 'Blackadder/Blackadder S05E01.avi'`
+ `echo h > 'Blackadder/Blackadder S05E02.avi'`
+ `echo h > 'Blackadder/Blackadder S05E03.avi'`
+ `echo h > 'Blackadder/Blackadder S05E04.avi'`
+ `echo h > 'Blackadder/Blackadder S05E05.avi'`
+ `echo h > 'Blackadder/Blackadder S07E05.avi'`
+ CreateFile('Ocean\'s.11[2001]DvDrip[Eng]-aXXo/Ocean\'s.11[2001]DvDrip[Eng]-aXXo.avi')
+ CreateFile('Ocean\'s.11[2001]DvDrip[Eng]-aXXo/ocean\'s.11-aXXo.nfo')
+ CreateFile('Ocean\'s.11[2001]DvDrip[Eng]-aXXo/IMPORTANT.Read carefully before enjoy this movie.txt')
+ `echo h > 'Point Break.1991-DvDRiP[x]/Point Break.1991-DvDRiP[x].avi'`
+ `echo h > 'Point Break.1991-DvDRiP[x]/xRiPp3d.txt'`
+ `echo h > 'Mr And Mrs Smith 2005 BRRip [A Release Lounge H264]/Mr And Mrs Smith 2005 BRRip [A Release Lounge H264].mp4'`
+end
+
+CreateDummyFiles()
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+$: << File.dirname( __FILE__)
+require 'renamer'
+
+####################################################################
+#
+
+if ARGV.count != 1
+ puts "Must enter a directory to process"
+ exit
+end
+
+directory = ARGV[0]
+
+Dir[directory+'/**/*.*'].each do |f|
+ RenameAndMove(f)
+end
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+$: << File.dirname( __FILE__)
+require 'renamer'
+
+####################################################################
+#
+
+if ARGV.count != 1
+ puts "Must enter a directory to process"
+ exit
+end
+
+directory = ARGV[0]
+
+Dir[directory+'/**/*.*'].each do |f|
+ Rename(f)
+end
Oops, something went wrong.

0 comments on commit fdb6fd8

Please sign in to comment.