Media Companion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 TV Show Mover (Autocataloger)

Go down 
4 posters
AuthorMessage
bigh
New User
New User



Posts : 6
Join date : 2009-11-11

TV Show Mover (Autocataloger) Empty
PostSubject: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitimeWed Nov 11, 2009 12:35 pm

At StormyKnight's request i'm posting the script I wrote to help organise shows.

What this program does:

Lets say you download your shows to a downloads directory (current directory), and you have your organised tv shows in various places (maybe multiple drives etc). This program is designed to automate you moving the show from the download directory into the correct season directory of the tv show.

It requires that your tv shows are organised something like this:

basedirectory\Two and a Half Men\Season 1

The reason for this is thats the way I organise my shows.
You will most likely need a knowledge of java pattern matching syntax (regular expressions) to be able to modify the patterns.xml.

Note:
I won't currently uncompress shows, or look for shows in subdirectories of your downloads folder. I have found that using TED still picks up torrents that are not really the show. So before i run the script to file everything away, I manually uncompress the files and check the episode is not one of those fake episodes. Then I run media companion to check for new shows - downloading the new info.

Ok how to use it:
1. download it, and move the .jar, .bat, and two .xml files into your download directory.
2. edit the settings.xml file to contain the base directories under which all of your shows are contained.
3. edit patterns.xml to match the directory names ( a guide can be found here: java pattern guide
4. edit patterns as you encounter new shows that don't get moved or get new shows.

I've included the java source in the zip file, so if there are any problems with my code (i'm expecting a lot, as i really didn't wanna spend very much time on this)

Features that might be implemented in the future, depending on how much time I have and how lazy i get:
1. have the script automatically run media companion to update tv shows minimised ie: "Basic command line option "sq" has been added to version 3.031 - see announcements."
2. automatically unzip / unrar files in directories in the downloads directory (this could be dangerous though as my downloads directory is not regularly cleaned out of non tv stuff.
3. somehow determine if files are fake or not.


basically my dream is this:
xbmc running in the foreground
ted running in the background scraping RSS to torrents
utorrent (with webui) running to d/l shows
the ability to invoke the tvshow mover remotely or even better get utorrent to run the script to uncompress etc.
and mediacompanion running in the background automatically scraping info for the tv shows.

oh and maybe a little bit of home automation built in there too Wink (I work in home automation currently)

So that the process is 100% human intervention free Smile

Linkies to DOWNLOAD


Last edited by bigh on Wed Nov 11, 2009 12:39 pm; edited 1 time in total
Back to top Go down
bigh
New User
New User



Posts : 6
Join date : 2009-11-11

TV Show Mover (Autocataloger) Empty
PostSubject: Re: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitimeWed Nov 11, 2009 12:38 pm

Oh btw - there are no warranties on this if it deletes everything on your computer, turns it into a robot or tries to mate with your cat, i'm not responsible.
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

TV Show Mover (Autocataloger) Empty
PostSubject: Re: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitimeWed Nov 11, 2009 12:51 pm

This sounds useful

Does it monitor the folders. If so I can see a way to make the whole process seamless.

1)Using Auto Extract to extract files to a specified folder
2)Your program moves the media files to the specified folder
3)MC then scrapes the information

There are a couple of things I can do to further the process, a commandline for scraping tv shows will be added, I will also be looking at the folder monitor, this would allow MC to detect new episodes automatically and add them.

I do have to ask how your program discerns what show a particular episdode belongs to. These can on occasion have quite strange filenames, in addition to this, if a file already exists, say for example the wrong show folder is selected, is the file overritten, moved elsewhere, or just ignored.
Back to top Go down
http://billyad2000.co.uk
bigh
New User
New User



Posts : 6
Join date : 2009-11-11

TV Show Mover (Autocataloger) Empty
PostSubject: Re: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitimeWed Nov 11, 2009 2:10 pm

billyad2000 wrote:
This sounds useful

Does it monitor the folders. If so I can see a way to make the whole process seamless.

1)Using Auto Extract to extract files to a specified folder
2)Your program moves the media files to the specified folder
3)MC then scrapes the information

There are a couple of things I can do to further the process, a commandline for scraping tv shows will be added, I will also be looking at the folder monitor, this would allow MC to detect new episodes automatically and add them.

I do have to ask how your program discerns what show a particular episdode belongs to. These can on occasion have quite strange filenames, in addition to this, if a file already exists, say for example the wrong show folder is selected, is the file overritten, moved elsewhere, or just ignored.

At the moment its a straight script that is run - there is no monitoring done as such.

I simply put the files in the directory and run the program, it moves them (if appropriate) then quits. If it can't match a file it won't copy it - it just leaves it there. If it already exists it shouldn't move it (but i haven't tested this).


Thats where the patterns.xml file is important. By updating what file patterns match the show, and keeping it up to date it picks up ~95% of the shows i download. eg:

<show id="Two and a Half Men">
<directorypattern>two\Wand\Wa\Whalf\Wmen</directorypattern>
<pattern>two\Wand\Wa\Whalf\Wmen.s</pattern>
<pattern>2.5\Wmen</pattern>
</show>

I just manually add patterns as they are required.

You have a point with new filenames, but i have found this isn't as much of a problem as you might think. Normally the filenames correspond reasonably well. The only problem exists when you have tv shows that also contain the show name ie:

House s03e69 - Desperate Housewives CSI edition.avi

Thats something that isn't handled. However the logic that you could apply to this isn't too bad if you think about it. usually the show name comes first, then the season identifier/episode then the name.

I can foresee a program that went one step further. Splitting the patterns.xml into one for local directories, and one for the filenames which would be stored on a central server with some wiki style updating method so that everyone gets the benefit.

My program is just a very rough program at the moment. feel free to use the idea and incorporate something similar into MC.
Back to top Go down
StormyKnight
VIP
VIP



Posts : 556
Join date : 2008-10-08
Location : Australia

TV Show Mover (Autocataloger) Empty
PostSubject: Re: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitimeThu Nov 12, 2009 12:58 am

Thanks Bigh for posting Smile
Back to top Go down
Johnson75
Senior Member
Senior Member



Posts : 81
Join date : 2011-05-09

TV Show Mover (Autocataloger) Empty
PostSubject: Re: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitimeWed May 18, 2011 6:05 am

Outstanding good quality along with discriminating patterns are generally precisely what Windsor Manner gives. Delivering a new assorted number of 2010 prom clothes as well as each of our reasonably priced 2010 prom dresses under $200. it can be his or her notion that will his or her consumers determine what these are looking for while the idea visit prom 2010 along with prom nighttime. Windsor also provides movie star encouraged 2010 prom clothes at the small percentage in the price tag!
Windsor Manner also provides an economical distinctive line of 2010 prom dress under $200 while his or her young patrons speedily strategies the key celebration with their small existence. Windsor Manner offers an all-inclusive site that will permits you to discover aspects, program plans along with coloring possibilities. In Windsor the idea is centered on being fashionable pertaining to prom nighttime along with they need to always be your current merely origin pertaining to big day clothes along with 2010 prom clothes. Keeping the excellent prom costume makes sure that you'll have terrific time for your prom nighttime and yes it turns into best of all if you never commit the supply and also a knee correctly!
Back to top Go down
Sponsored content





TV Show Mover (Autocataloger) Empty
PostSubject: Re: TV Show Mover (Autocataloger)   TV Show Mover (Autocataloger) Icon_minitime

Back to top Go down
 
TV Show Mover (Autocataloger)
Back to top 
Page 1 of 1
 Similar topics
-
» nfo files created properly, but show doesnt show in the main browser.
» nfo files created properly, but show doesnt show in the main browser.
» TV Show Rename
» Cant add TV-show
» TV Show - Californication

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: General Discussion-
Jump to: