It is currently Sat Nov 26, 2011 8:19 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Auto Move TV Shows Downladed from TED
PostPosted: Sun May 29, 2011 7:55 pm 
Offline

Joined: Sun May 29, 2011 7:50 pm
Posts: 9
In case anyone is interested, I created a script for mac that will auto move completed shows from the torrent downloads to folders of your choice. Since I am using Plex after the show is moved, Plex will auto update. Works great so far but editing for new shows is still manual.

I am still trying to find a way to read the clean_shows.xml for the show list and create the folder if the torrent file name matches.

tell application "Finder"
set this_folder to folder "Completed Torrents" of disk "Movies and Files"
set default_path to folder "TV Series" of folder "Movies" of disk "Movies and Files"
set this_list to entire contents of this_folder

repeat with i in this_list
try

if kind of i is not "folder" then

if (name of i) contains "House" then
my MoveMovies(i, "House", default_path)
end if

if (name of i) contains "South" then
my MoveMovies(i, "South Park", default_path)
end if

if (name of i) contains "Stargate" then
my MoveMovies(i, "Stargate Universe", default_path)
end if

if (name of i) contains "Dexter" then
my MoveMovies(i, "Dexter", default_path)
end if
else
--If item is a folder and it is empty move to trash! Cleanup from last run!
if (count items) of i is 0 then
delete i
end if

--skip as there is stuff in the folder.
end if

on error errText number errNum
if (errNum is equal to 0) then
-- file already moved.
end if

if (errNum is equal to -15267) then
delete i
end if
end try
end repeat
end tell

on MoveMovies(movie_name, show_name, default_path)
tell application "Finder"
set a to movie_name
set b to show_name
set c to default_path

if (exists folder b of c) then
move a to folder b of c
else
make new folder at c with properties {name:b}
move a to folder b of c
end if
end tell
end MoveMovies


Top
 Profile  
 
 Post subject: Re: Auto Move TV Shows Downladed from TED
PostPosted: Tue Nov 01, 2011 9:33 am 
Offline

Joined: Tue Nov 01, 2011 9:19 am
Posts: 1
Location: USA
Looks really great formula. Have you made it for Mac only. I mean i have windows 7 desktop and want play on windows.

_________________
Watch desperate housewives, justice league episodes and another famous TV show the girls next door episode with its reviews.


Top
 Profile  
 
 Post subject: Re: Auto Move TV Shows Downladed from TED
PostPosted: Tue Nov 01, 2011 1:20 pm 
Offline

Joined: Sun May 29, 2011 7:50 pm
Posts: 9
I can make one for windows give me a few days and I will post it here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group