Code Monkey home page Code Monkey logo

tvdb-scraper's Introduction

Ruby TV Show Xml Scraper

This is a public domain script I wrote for scraping TV episode information from The TV DB.

Do with it what you will, pretend you wrote it I don’t care.

The TV DB scraper will query the The TV DB web services and try to find the best metadata for your television shows. If it finds any information it will create a hidden folder called metadata beneath the video files and place an XML file and optionally an image which describes the show
Installation

1. Download a copy of Ruby and install on your machine
2. Run “ruby tvdb_scraper.rb PATH” where PATH represents the path containing tv shows

Keys to getting this to work

1. Ensure your directory structure follows the pattern \showname\seasonx
  So Extras\Season 1\01.avi is a good starting point
2. Ensure the TV show name matches the exact same tv show name in TheTVDB
  So it’s 24 not “Twenty Four”
3. Ensure you have a Season directory
  Eg. place the first seasons episodes in the “Season 1” folder
4. The script runs recursively, so start small, with a folder containing only a few files.

What file names does it recognize?

1. 201 – blablbl.avi means Season 2 Episode 
2. s02e01 – another episode.avi means season 2 episode 1

How do I rename my files to something a bit nicer than 2.avi

The script has a special option called —fixnames, when specified it will rename your files to a nicer format –

Careful with this option, it renames your files! Ensure all the metadata is 100% correct before using this.

What about specials? 

Not supported yet in the script, contributions are welcome. 

tvdb-scraper's People

Contributors

tafkas avatar samsaffron avatar

Watchers

James Cloos avatar Jonny Dubowsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.